diff options
| author | jsing <> | 2018-02-20 17:06:19 +0000 |
|---|---|---|
| committer | jsing <> | 2018-02-20 17:06:19 +0000 |
| commit | b59ba4d49141733859e03cd63517f1b9d60391cf (patch) | |
| tree | cf09b6e42a2c0f78c8d22a16aa04b3d0a69fcec2 /src/lib/libcrypto/asn1 | |
| parent | 0bc1bcf003a1773d998c80c68abda6117ebce089 (diff) | |
| download | openbsd-b59ba4d49141733859e03cd63517f1b9d60391cf.tar.gz openbsd-b59ba4d49141733859e03cd63517f1b9d60391cf.tar.bz2 openbsd-b59ba4d49141733859e03cd63517f1b9d60391cf.zip | |
Provide X509_REQ_get0_signature()
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 | } | ||
