diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/asn1/x_req.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/x_req.c b/src/lib/libcrypto/asn1/x_req.c index 38a6ec885c..eb5210aef6 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.16 2018/02/20 17:06:19 jsing Exp $ */ | 1 | /* $OpenBSD: x_req.c,v 1.17 2018/02/22 16:50:30 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 | * |
| @@ -226,6 +226,12 @@ X509_REQ_dup(X509_REQ *x) | |||
| 226 | return ASN1_item_dup(&X509_REQ_it, x); | 226 | return ASN1_item_dup(&X509_REQ_it, x); |
| 227 | } | 227 | } |
| 228 | 228 | ||
| 229 | int | ||
| 230 | X509_REQ_get_signature_nid(const X509_REQ *req) | ||
| 231 | { | ||
| 232 | return OBJ_obj2nid(req->sig_alg->algorithm); | ||
| 233 | } | ||
| 234 | |||
| 229 | void | 235 | void |
| 230 | X509_REQ_get0_signature(const X509_REQ *req, const ASN1_BIT_STRING **psig, | 236 | X509_REQ_get0_signature(const X509_REQ *req, const ASN1_BIT_STRING **psig, |
| 231 | const X509_ALGOR **palg) | 237 | const X509_ALGOR **palg) |
