From: Ben Laurie Date: Sat, 1 Feb 2014 18:29:26 +0000 (+0000) Subject: Add more accessors. X-Git-Tag: OpenSSL_1_0_2-beta1~81 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cacdfcb2479984d9bfcc79b623118d8af6fea169;p=oweals%2Fopenssl.git Add more accessors. --- diff --git a/crypto/x509/x509.h b/crypto/x509/x509.h index 6261232449..852fab6ce8 100644 --- a/crypto/x509/x509.h +++ b/crypto/x509/x509.h @@ -612,7 +612,7 @@ extern "C" { /* #define X509_get_serialNumber(x) ((x)->cert_info->serialNumber) */ #define X509_get_notBefore(x) ((x)->cert_info->validity->notBefore) #define X509_get_notAfter(x) ((x)->cert_info->validity->notAfter) -#define X509_get_cinf(x) ((x)->cert_info) +#define X509_get_cert_info(x) ((x)->cert_info) #define X509_extract_key(x) X509_get_pubkey(x) /*****/ #define X509_REQ_get_version(x) ASN1_INTEGER_get((x)->req_info->version) #define X509_REQ_get_subject_name(x) ((x)->req_info->subject) @@ -626,6 +626,13 @@ extern "C" { #define X509_CRL_get_issuer(x) ((x)->crl->issuer) #define X509_CRL_get_REVOKED(x) ((x)->crl->revoked) +#define X509_CINF_set_modified(c) ((c)->enc.modified = 1) +#define X509_CINF_get_issuer(c) (&(c)->issuer) +#define X509_CINF_get_extensions(c) ((c)->extensions) +#define X509_CINF_get_signature(c) ((c)->signature) + +#define X509_ALGOR_get_algorithm(a) ((a)->algorithm) + void X509_CRL_set_default_method(const X509_CRL_METHOD *meth); X509_CRL_METHOD *X509_CRL_METHOD_new( int (*crl_init)(X509_CRL *crl),