diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-09-22 23:40:43 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-11-14 00:13:08 +0000 |
commit | 748118a838bcb7b920c5e0bf389773544becc71b (patch) | |
tree | 2c7f58b281dd0239cbe127d90af33933a5cd66db /crypto/x509/x509_set.c | |
parent | bf24ac9b54170c9060079c3f7a040162361c8e5e (diff) | |
download | openssl-748118a838bcb7b920c5e0bf389773544becc71b.tar.gz |
Add new X509 accessors
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/x509/x509_set.c')
-rw-r--r-- | crypto/x509/x509_set.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/crypto/x509/x509_set.c b/crypto/x509/x509_set.c index 38ec0dbc54..dbd9057f2a 100644 --- a/crypto/x509/x509_set.c +++ b/crypto/x509/x509_set.c @@ -176,3 +176,21 @@ X509_PUBKEY *X509_get_X509_PUBKEY(const X509 *x) { return x->cert_info.key; } + +STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x) +{ + return x->cert_info.extensions; +} + +void X509_get0_uids(ASN1_BIT_STRING **piuid, ASN1_BIT_STRING **psuid, X509 *x) +{ + if (piuid != NULL) + *piuid = x->cert_info.issuerUID; + if (psuid != NULL) + *psuid = x->cert_info.subjectUID; +} + +X509_ALGOR *X509_get0_tbs_sigalg(X509 *x) +{ + return &x->cert_info.signature; +} |