diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-08-31 21:30:13 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-09-02 21:26:17 +0100 |
commit | e3e571925c40f4d9e0adfc7704e5df2057a13a19 (patch) | |
tree | 77221e5e693880f49b88e1396206f8d4879c586d /crypto/x509/x509cset.c | |
parent | cf170f558b6051a66b5e182ac447b7b8ce85c8d2 (diff) |
make X509_CRL opaque
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/x509/x509cset.c')
-rw-r--r-- | crypto/x509/x509cset.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/crypto/x509/x509cset.c b/crypto/x509/x509cset.c index c6873240af..ca3f6968af 100644 --- a/crypto/x509/x509cset.c +++ b/crypto/x509/x509cset.c @@ -63,6 +63,7 @@ #include <openssl/objects.h> #include <openssl/evp.h> #include <openssl/x509.h> +#include "internal/x509_int.h" int X509_CRL_set_version(X509_CRL *x, long version) { @@ -137,6 +138,40 @@ void X509_CRL_up_ref(X509_CRL *crl) CRYPTO_add(&crl->references, 1, CRYPTO_LOCK_X509_CRL); } +long X509_CRL_get_version(X509_CRL *crl) +{ + return ASN1_INTEGER_get(crl->crl->version); +} + +ASN1_TIME *X509_CRL_get_lastUpdate(X509_CRL *crl) +{ + return crl->crl->lastUpdate; +} + +ASN1_TIME *X509_CRL_get_nextUpdate(X509_CRL *crl) +{ + return crl->crl->nextUpdate; +} + +X509_NAME *X509_CRL_get_issuer(X509_CRL *crl) +{ + return crl->crl->issuer; +} + +STACK_OF(X509_REVOKED) *X509_CRL_get_REVOKED(X509_CRL *crl) +{ + return crl->crl->revoked; +} + +void X509_CRL_get0_signature(ASN1_BIT_STRING **psig, X509_ALGOR **palg, + const X509_CRL *crl) +{ + if (psig) + *psig = crl->signature; + if (palg) + *palg = crl->sig_alg; +} + int X509_REVOKED_set_revocationDate(X509_REVOKED *x, ASN1_TIME *tm) { ASN1_TIME *in; |