diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2018-02-22 16:58:46 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2018-02-22 16:58:46 +0000 |
commit | 338c479494814f4926fefa45985bbfad1e5aea1c (patch) | |
tree | 43e83099f811528ac2b0169ecf959d310ee65b92 /lib/libcrypto/asn1 | |
parent | 21cdcc32c43b934e609b1e7780f897667d3f7564 (diff) |
Provide X509_CRL_get0_extensions() and X509_CRL_get_signature_nid().
Diffstat (limited to 'lib/libcrypto/asn1')
-rw-r--r-- | lib/libcrypto/asn1/x_crl.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libcrypto/asn1/x_crl.c b/lib/libcrypto/asn1/x_crl.c index 0da2e9572b3..b8f517d8735 100644 --- a/lib/libcrypto/asn1/x_crl.c +++ b/lib/libcrypto/asn1/x_crl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x_crl.c,v 1.28 2018/02/20 17:04:58 jsing Exp $ */ +/* $OpenBSD: x_crl.c,v 1.29 2018/02/22 16:58:45 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -686,6 +686,18 @@ X509_CRL_get_meth_data(X509_CRL *crl) return crl->meth_data; } +int +X509_CRL_get_signature_nid(const X509_CRL *crl) +{ + return OBJ_obj2nid(crl->sig_alg->algorithm); +} + +const STACK_OF(X509_EXTENSION) * +X509_CRL_get0_extensions(const X509_CRL *crl) +{ + return crl->crl->extensions; +} + const ASN1_TIME * X509_CRL_get0_lastUpdate(const X509_CRL *crl) { |