diff options
Diffstat (limited to 'src/lib/libcrypto/asn1')
| -rw-r--r-- | src/lib/libcrypto/asn1/x_req.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/x_req.c b/src/lib/libcrypto/asn1/x_req.c index 5ffa11e2dd..38a6ec885c 100644 --- a/src/lib/libcrypto/asn1/x_req.c +++ b/src/lib/libcrypto/asn1/x_req.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x_req.c,v 1.15 2015/02/11 04:00:39 jsing Exp $ */ | 1 | /* $OpenBSD: x_req.c,v 1.16 2018/02/20 17:06:19 jsing 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 | * |
| @@ -225,3 +225,13 @@ X509_REQ_dup(X509_REQ *x) | |||
| 225 | { | 225 | { |
| 226 | return ASN1_item_dup(&X509_REQ_it, x); | 226 | return ASN1_item_dup(&X509_REQ_it, x); |
| 227 | } | 227 | } |
| 228 | |||
| 229 | void | ||
| 230 | X509_REQ_get0_signature(const X509_REQ *req, const ASN1_BIT_STRING **psig, | ||
| 231 | const X509_ALGOR **palg) | ||
| 232 | { | ||
| 233 | if (psig != NULL) | ||
| 234 | *psig = req->signature; | ||
| 235 | if (palg != NULL) | ||
| 236 | *palg = req->sig_alg; | ||
| 237 | } | ||
