diff options
author | tb <> | 2021-10-23 11:56:10 +0000 |
---|---|---|
committer | tb <> | 2021-10-23 11:56:10 +0000 |
commit | bf6dd8bcaa14738fab93e42c56cd3d5fa528a000 (patch) | |
tree | 6b06b84ca5800ece374ceb1200b750564e91c1c8 /src/lib/libcrypto/x509/x509_req.c | |
parent | ba30a4d75af81331ebf8ba376dadfd472d5d74e1 (diff) | |
download | openbsd-bf6dd8bcaa14738fab93e42c56cd3d5fa528a000.tar.gz openbsd-bf6dd8bcaa14738fab93e42c56cd3d5fa528a000.tar.bz2 openbsd-bf6dd8bcaa14738fab93e42c56cd3d5fa528a000.zip |
Prepare to provide X509_re_X509*_tbs()
ok beck jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_req.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_req.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 @@ | |||
1 | /* $OpenBSD: x509_req.c,v 1.22 2021/10/22 16:42:13 tb Exp $ */ | 1 | /* $OpenBSD: x509_req.c,v 1.23 2021/10/23 11:56:10 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -349,3 +349,10 @@ X509_REQ_add1_attr_by_txt(X509_REQ *req, const char *attrname, int type, | |||
349 | return 1; | 349 | return 1; |
350 | return 0; | 350 | return 0; |
351 | } | 351 | } |
352 | |||
353 | int | ||
354 | i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp) | ||
355 | { | ||
356 | req->req_info->enc.modified = 1; | ||
357 | return i2d_X509_REQ_INFO(req->req_info, pp); | ||
358 | } | ||