diff options
author | Rob Austein <sra@hactrn.net> | 2006-09-13 03:50:51 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2006-09-13 03:50:51 +0000 |
commit | ad0cb33f63fce6a1c4b9a8364b6ddbac92953f4e (patch) | |
tree | e1fdb4a537c2e1f5a252a3ae120f2d409b0232ad /openssl/trunk/crypto/x509v3/v3_purp.c | |
parent | f3a285df3d9376236f42d64a88f01c00ad0907a3 (diff) |
Compile time conditionals, per Ben.
svn path=/openssl/trunk/Configure; revision=269
Diffstat (limited to 'openssl/trunk/crypto/x509v3/v3_purp.c')
-rw-r--r-- | openssl/trunk/crypto/x509v3/v3_purp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl/trunk/crypto/x509v3/v3_purp.c b/openssl/trunk/crypto/x509v3/v3_purp.c index 5ad2047e..717c2f3b 100644 --- a/openssl/trunk/crypto/x509v3/v3_purp.c +++ b/openssl/trunk/crypto/x509v3/v3_purp.c @@ -287,8 +287,10 @@ int X509_supported_extension(X509_EXTENSION *ex) NID_basic_constraints, /* 87 */ NID_certificate_policies, /* 89 */ NID_ext_key_usage, /* 126 */ +#ifdef OPENSSL_RFC3779 NID_sbgp_ipAddrBlock, /* 290 */ NID_sbgp_autonomousSysNum, /* 291 */ +#endif NID_proxyCertInfo /* 661 */ }; @@ -413,9 +415,11 @@ static void x509v3_cache_extensions(X509 *x) } x->skid =X509_get_ext_d2i(x, NID_subject_key_identifier, NULL, NULL); x->akid =X509_get_ext_d2i(x, NID_authority_key_identifier, NULL, NULL); +#ifdef OPENSSL_RFC3779 x->rfc3779_addr =X509_get_ext_d2i(x, NID_sbgp_ipAddrBlock, NULL, NULL); x->rfc3779_asid =X509_get_ext_d2i(x, NID_sbgp_autonomousSysNum, NULL, NULL); +#endif for (i = 0; i < X509_get_ext_count(x); i++) { ex = X509_get_ext(x, i); |