diff options
author | tb <> | 2018-08-24 19:55:58 +0000 |
---|---|---|
committer | tb <> | 2018-08-24 19:55:58 +0000 |
commit | 639852fb1f51e535a9915f82b8bd5ca3cdd9bbbc (patch) | |
tree | 43973edb20204a6046f729ce0a80ed7b0b283066 /src/lib/libcrypto/asn1 | |
parent | cc6f997ad1f6d8f8ede2e77bed15e3a35ef160aa (diff) | |
download | openbsd-639852fb1f51e535a9915f82b8bd5ca3cdd9bbbc.tar.gz openbsd-639852fb1f51e535a9915f82b8bd5ca3cdd9bbbc.tar.bz2 openbsd-639852fb1f51e535a9915f82b8bd5ca3cdd9bbbc.zip |
Turn a number of #defines into proper functions with prototypes matching
those that OpenSSL has had for ages.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/asn1')
-rw-r--r-- | src/lib/libcrypto/asn1/x_crl.c | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/x_crl.c b/src/lib/libcrypto/asn1/x_crl.c index 890623c47c..0837ec15be 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.32 2018/04/23 13:10:19 tb Exp $ */ | 1 | /* $OpenBSD: x_crl.c,v 1.33 2018/08/24 19:55:58 tb 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 | * |
@@ -706,18 +706,48 @@ X509_CRL_get0_extensions(const X509_CRL *crl) | |||
706 | return crl->crl->extensions; | 706 | return crl->crl->extensions; |
707 | } | 707 | } |
708 | 708 | ||
709 | long | ||
710 | X509_CRL_get_version(const X509_CRL *crl) | ||
711 | { | ||
712 | return ASN1_INTEGER_get(crl->crl->version); | ||
713 | } | ||
714 | |||
709 | const ASN1_TIME * | 715 | const ASN1_TIME * |
710 | X509_CRL_get0_lastUpdate(const X509_CRL *crl) | 716 | X509_CRL_get0_lastUpdate(const X509_CRL *crl) |
711 | { | 717 | { |
712 | return crl->crl->lastUpdate; | 718 | return crl->crl->lastUpdate; |
713 | } | 719 | } |
714 | 720 | ||
721 | ASN1_TIME * | ||
722 | X509_CRL_get_lastUpdate(X509_CRL *crl) | ||
723 | { | ||
724 | return crl->crl->lastUpdate; | ||
725 | } | ||
726 | |||
715 | const ASN1_TIME * | 727 | const ASN1_TIME * |
716 | X509_CRL_get0_nextUpdate(const X509_CRL *crl) | 728 | X509_CRL_get0_nextUpdate(const X509_CRL *crl) |
717 | { | 729 | { |
718 | return crl->crl->nextUpdate; | 730 | return crl->crl->nextUpdate; |
719 | } | 731 | } |
720 | 732 | ||
733 | ASN1_TIME * | ||
734 | X509_CRL_get_nextUpdate(X509_CRL *crl) | ||
735 | { | ||
736 | return crl->crl->nextUpdate; | ||
737 | } | ||
738 | |||
739 | X509_NAME * | ||
740 | X509_CRL_get_issuer(const X509_CRL *crl) | ||
741 | { | ||
742 | return crl->crl->issuer; | ||
743 | } | ||
744 | |||
745 | STACK_OF(X509_REVOKED) * | ||
746 | X509_CRL_get_REVOKED(X509_CRL *crl) | ||
747 | { | ||
748 | return crl->crl->revoked; | ||
749 | } | ||
750 | |||
721 | void | 751 | void |
722 | X509_CRL_get0_signature(const X509_CRL *crl, const ASN1_BIT_STRING **psig, | 752 | X509_CRL_get0_signature(const X509_CRL *crl, const ASN1_BIT_STRING **psig, |
723 | const X509_ALGOR **palg) | 753 | const X509_ALGOR **palg) |