From da4752206df316b9d5b3a44483f2e75b435b9cc6 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 23 Oct 2021 11:56:10 +0000 Subject: Prepare to provide X509_re_X509*_tbs() ok beck jsing --- src/lib/libcrypto/x509/x509_req.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/x509/x509_req.c') diff --git a/src/lib/libcrypto/x509/x509_req.c b/src/lib/libcrypto/x509/x509_req.c index fe20b1c70d..c81fe4a3a9 100644 --- a/src/lib/libcrypto/x509/x509_req.c +++ b/src/lib/libcrypto/x509/x509_req.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_req.c,v 1.22 2021/10/22 16:42:13 tb Exp $ */ +/* $OpenBSD: x509_req.c,v 1.23 2021/10/23 11:56:10 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -349,3 +349,10 @@ X509_REQ_add1_attr_by_txt(X509_REQ *req, const char *attrname, int type, return 1; return 0; } + +int +i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp) +{ + req->req_info->enc.modified = 1; + return i2d_X509_REQ_INFO(req->req_info, pp); +} -- cgit v1.2.3-55-g6feb