diff options
author | Tobias Brunner <tobias@strongswan.org> | 2017-09-07 11:45:23 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-09-18 10:54:19 +0200 |
commit | 4e7b7db62faa92373af7d763e5b96cf2ecb2dd1b (patch) | |
tree | 5c026b4985a7c1563936a868c1492edab444ff00 /src/libstrongswan/plugins/openssl/openssl_x509.c | |
parent | e7276f78aae95905d9dfe7ded485d6771c4fcaa0 (diff) | |
download | strongswan-4e7b7db62faa92373af7d763e5b96cf2ecb2dd1b.tar.bz2 strongswan-4e7b7db62faa92373af7d763e5b96cf2ecb2dd1b.tar.xz |
certificates: Use shared destructor for x509_cdp_t
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_x509.c')
-rw-r--r-- | src/libstrongswan/plugins/openssl/openssl_x509.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_x509.c b/src/libstrongswan/plugins/openssl/openssl_x509.c index e03a4255d..c04dbfaba 100644 --- a/src/libstrongswan/plugins/openssl/openssl_x509.c +++ b/src/libstrongswan/plugins/openssl/openssl_x509.c @@ -189,16 +189,6 @@ struct private_openssl_x509_t { }; /** - * Destroy a CRL URI struct - */ -static void crl_uri_destroy(x509_cdp_t *this) -{ - free(this->uri); - DESTROY_IF(this->issuer); - free(this); -} - -/** * Convert a GeneralName to an identification_t. */ static identification_t *general_name2id(GENERAL_NAME *name) @@ -549,7 +539,8 @@ METHOD(certificate_t, destroy, void, offsetof(identification_t, destroy)); this->issuerAltNames->destroy_offset(this->issuerAltNames, offsetof(identification_t, destroy)); - this->crl_uris->destroy_function(this->crl_uris, (void*)crl_uri_destroy); + this->crl_uris->destroy_function(this->crl_uris, + (void*)x509_cdp_destroy); this->ocsp_uris->destroy_function(this->ocsp_uris, free); this->ipAddrBlocks->destroy_offset(this->ipAddrBlocks, offsetof(traffic_selector_t, destroy)); |