summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/x_crl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/x_crl.c')
-rw-r--r--src/lib/libcrypto/asn1/x_crl.c24
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
689const ASN1_TIME *
690X509_CRL_get0_lastUpdate(const X509_CRL *crl)
691{
692 return crl->crl->lastUpdate;
693}
694
695const ASN1_TIME *
696X509_CRL_get0_nextUpdate(const X509_CRL *crl)
697{
698 return crl->crl->nextUpdate;
699}
700
701void
702X509_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}