diff options
author | 2018-02-22 16:50:30 +0000 | |
---|---|---|
committer | 2018-02-22 16:50:30 +0000 | |
commit | d8b3f393308b39e8a5b7e1587377aff9435ff754 (patch) | |
tree | 9cf2b861b0ab353669b6cd6ecdb78a31342ce69c /lib/libcrypto/asn1/x_req.c | |
parent | Provide X509_REVOKED_get0_extensions(), X509_REVOKED_get0_revocationDate() (diff) | |
download | wireguard-openbsd-d8b3f393308b39e8a5b7e1587377aff9435ff754.tar.xz wireguard-openbsd-d8b3f393308b39e8a5b7e1587377aff9435ff754.zip |
Provide X509_REQ_get_signature_nid().
Diffstat (limited to 'lib/libcrypto/asn1/x_req.c')
-rw-r--r-- | lib/libcrypto/asn1/x_req.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libcrypto/asn1/x_req.c b/lib/libcrypto/asn1/x_req.c index 38a6ec885cf..eb5210aef6c 100644 --- a/lib/libcrypto/asn1/x_req.c +++ b/lib/libcrypto/asn1/x_req.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x_req.c,v 1.16 2018/02/20 17:06:19 jsing Exp $ */ +/* $OpenBSD: x_req.c,v 1.17 2018/02/22 16:50:30 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -226,6 +226,12 @@ X509_REQ_dup(X509_REQ *x) return ASN1_item_dup(&X509_REQ_it, x); } +int +X509_REQ_get_signature_nid(const X509_REQ *req) +{ + return OBJ_obj2nid(req->sig_alg->algorithm); +} + void X509_REQ_get0_signature(const X509_REQ *req, const ASN1_BIT_STRING **psig, const X509_ALGOR **palg) |