diff options
author | tb <> | 2021-10-23 11:56:10 +0000 |
---|---|---|
committer | tb <> | 2021-10-23 11:56:10 +0000 |
commit | da4752206df316b9d5b3a44483f2e75b435b9cc6 (patch) | |
tree | 6b06b84ca5800ece374ceb1200b750564e91c1c8 /src/lib/libcrypto/x509/x509_req.c | |
parent | c5d933b73b08738de0850281b4f0a6fb9ae942c2 (diff) | |
download | openbsd-da4752206df316b9d5b3a44483f2e75b435b9cc6.tar.gz openbsd-da4752206df316b9d5b3a44483f2e75b435b9cc6.tar.bz2 openbsd-da4752206df316b9d5b3a44483f2e75b435b9cc6.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 | } | ||