diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/x_crl.c')
-rw-r--r-- | src/lib/libcrypto/asn1/x_crl.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/x_crl.c b/src/lib/libcrypto/asn1/x_crl.c index d8f24ca10b..0da2e9572b 100644 --- a/src/lib/libcrypto/asn1/x_crl.c +++ b/src/lib/libcrypto/asn1/x_crl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x_crl.c,v 1.27 2017/01/29 17:49:22 beck Exp $ */ | 1 | /* $OpenBSD: x_crl.c,v 1.28 2018/02/20 17:04:58 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 | * |
@@ -685,3 +685,25 @@ X509_CRL_get_meth_data(X509_CRL *crl) | |||
685 | { | 685 | { |
686 | return crl->meth_data; | 686 | return crl->meth_data; |
687 | } | 687 | } |
688 | |||
689 | const ASN1_TIME * | ||
690 | X509_CRL_get0_lastUpdate(const X509_CRL *crl) | ||
691 | { | ||
692 | return crl->crl->lastUpdate; | ||
693 | } | ||
694 | |||
695 | const ASN1_TIME * | ||
696 | X509_CRL_get0_nextUpdate(const X509_CRL *crl) | ||
697 | { | ||
698 | return crl->crl->nextUpdate; | ||
699 | } | ||
700 | |||
701 | void | ||
702 | X509_CRL_get0_signature(const X509_CRL *crl, const ASN1_BIT_STRING **psig, | ||
703 | const X509_ALGOR **palg) | ||
704 | { | ||
705 | if (psig != NULL) | ||
706 | *psig = crl->signature; | ||
707 | if (palg != NULL) | ||
708 | *palg = crl->sig_alg; | ||
709 | } | ||