diff options
| author | jsing <> | 2018-02-20 17:04:58 +0000 |
|---|---|---|
| committer | jsing <> | 2018-02-20 17:04:58 +0000 |
| commit | 0bc1bcf003a1773d998c80c68abda6117ebce089 (patch) | |
| tree | 70bd1e62d1474d96275fe17c8618067056f83bc6 /src/lib/libcrypto/asn1 | |
| parent | b647d28a68beee37f49a7301d01f2895030f0682 (diff) | |
| download | openbsd-0bc1bcf003a1773d998c80c68abda6117ebce089.tar.gz openbsd-0bc1bcf003a1773d998c80c68abda6117ebce089.tar.bz2 openbsd-0bc1bcf003a1773d998c80c68abda6117ebce089.zip | |
Provide X509_CRL_get0_{last,next}Update() and X509_CRL_get0_signature().
Diffstat (limited to 'src/lib/libcrypto/asn1')
| -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 | } | ||
