diff options
author | Ben Laurie <ben@openssl.org> | 2006-11-27 14:18:05 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2006-11-27 14:18:05 +0000 |
commit | 96ea4ae91c7fda9fd28a013182b0e8dc67b7ac7d (patch) | |
tree | 364aa21990f695348601d6f4a8774fe7d861e26e /crypto/asn1/x_x509.c | |
parent | 7af5726108188e4e4e4ca1a95cea43801ec19905 (diff) |
Add RFC 3779 support.
Diffstat (limited to 'crypto/asn1/x_x509.c')
-rw-r--r-- | crypto/asn1/x_x509.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/asn1/x_x509.c b/crypto/asn1/x_x509.c index 73f61e1eb9..b6110d2d60 100644 --- a/crypto/asn1/x_x509.c +++ b/crypto/asn1/x_x509.c @@ -95,6 +95,10 @@ static int x509_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, ret->ex_pathlen = -1; ret->skid = NULL; ret->akid = NULL; +#ifdef OPENSSL_RFC3779 + ret->rfc3779_addr = NULL; + ret->rfc3779_asid = NULL; +#endif ret->aux = NULL; ret->crldp = NULL; CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data); @@ -112,6 +116,10 @@ static int x509_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, AUTHORITY_KEYID_free(ret->akid); CRL_DIST_POINTS_free(ret->crldp); policy_cache_free(ret->policy_cache); +#ifdef OPENSSL_RFC3779 + sk_IPAddressFamily_pop_free(ret->rfc3779_addr, IPAddressFamily_free); + ASIdentifiers_free(ret->rfc3779_asid); +#endif if (ret->name != NULL) OPENSSL_free(ret->name); break; |