Add more accessors.
authorBen Laurie <ben@links.org>
Sat, 1 Feb 2014 18:29:26 +0000 (18:29 +0000)
committerBen Laurie <ben@links.org>
Sat, 1 Feb 2014 18:30:23 +0000 (18:30 +0000)
crypto/x509/x509.h

index 6261232449b40f4061e77a3bf4f78c8392e742ee..852fab6ce8aff7bc673c107086e33c0dbe214feb 100644 (file)
@@ -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),