diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-09-22 15:19:32 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-09-22 21:15:55 +0100 |
commit | d19a50c9fbd5750f6e75dcca508034e558df7276 (patch) | |
tree | ff97c1c3848f9edf761c67d2970fcc0963848196 /crypto/x509v3 | |
parent | 2c81e476fab0e3e0b6140652b4577bf6f3b827be (diff) |
New function X509_get0_subject_key_id()
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/x509v3')
-rw-r--r-- | crypto/x509v3/v3_purp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/x509v3/v3_purp.c b/crypto/x509v3/v3_purp.c index 61d97726dc..43f355100b 100644 --- a/crypto/x509v3/v3_purp.c +++ b/crypto/x509v3/v3_purp.c @@ -62,6 +62,7 @@ #include "internal/numbers.h" #include <openssl/x509v3.h> #include <openssl/x509_vfy.h> +#include "internal/x509_int.h" static void x509v3_cache_extensions(X509 *x); @@ -868,3 +869,9 @@ uint32_t X509_get_extended_key_usage(X509 *x) return x->ex_xkusage; return UINT32_MAX; } + +const ASN1_OCTET_STRING *X509_get0_subject_key_id(X509 *x) +{ + X509_check_purpose(x, -1, -1); + return x->skid; +} |