summaryrefslogtreecommitdiffstats
path: root/crypto/x509/x509cset.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2015-09-07 23:32:58 +0100
committerDr. Stephen Henson <steve@openssl.org>2015-09-22 12:28:45 +0100
commitdc29030ab67880440ec8fcff3a35b5c7bdca5c6b (patch)
tree40d968699e5cf92d1ffbe9439134935aed41f2f9 /crypto/x509/x509cset.c
parenta9732d04fa4ace9b4d86218e0818c47c68c08d4d (diff)
Add accessors for X509_REVOKED.
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Emilia Käsper <emilia@openssl.org>
Diffstat (limited to 'crypto/x509/x509cset.c')
-rw-r--r--crypto/x509/x509cset.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/x509/x509cset.c b/crypto/x509/x509cset.c
index 4dbe6d087f..1543588139 100644
--- a/crypto/x509/x509cset.c
+++ b/crypto/x509/x509cset.c
@@ -177,6 +177,11 @@ int X509_CRL_get_signature_nid(const X509_CRL *crl)
return OBJ_obj2nid(crl->sig_alg.algorithm);
}
+ASN1_TIME *X509_REVOKED_get0_revocationDate(X509_REVOKED *x)
+{
+ return x->revocationDate;
+}
+
int X509_REVOKED_set_revocationDate(X509_REVOKED *x, ASN1_TIME *tm)
{
ASN1_TIME *in;
@@ -194,6 +199,11 @@ int X509_REVOKED_set_revocationDate(X509_REVOKED *x, ASN1_TIME *tm)
return (in != NULL);
}
+ASN1_INTEGER *X509_REVOKED_get0_serialNumber(X509_REVOKED *x)
+{
+ return x->serialNumber;
+}
+
int X509_REVOKED_set_serialNumber(X509_REVOKED *x, ASN1_INTEGER *serial)
{
ASN1_INTEGER *in;