diff options
author | jsing <> | 2018-02-20 17:06:19 +0000 |
---|---|---|
committer | jsing <> | 2018-02-20 17:06:19 +0000 |
commit | 3c06749399ec9bdbbde802f1c5aef85cfd04c42e (patch) | |
tree | cf09b6e42a2c0f78c8d22a16aa04b3d0a69fcec2 /src/lib/libcrypto/asn1/x_req.c | |
parent | cc1f0bce1bf038cad010ba68450bb20f3fd0c6eb (diff) | |
download | openbsd-3c06749399ec9bdbbde802f1c5aef85cfd04c42e.tar.gz openbsd-3c06749399ec9bdbbde802f1c5aef85cfd04c42e.tar.bz2 openbsd-3c06749399ec9bdbbde802f1c5aef85cfd04c42e.zip |
Provide X509_REQ_get0_signature()
Diffstat (limited to 'src/lib/libcrypto/asn1/x_req.c')
-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 | } | ||