certificates: Use shared destructor for x509_cdp_t

This commit is contained in:
Tobias Brunner
2017-09-18 10:54:19 +02:00
parent e7276f78aa
commit 4e7b7db62f
6 changed files with 22 additions and 46 deletions
@@ -25,3 +25,12 @@ ENUM_NEXT(x509_flag_names, X509_ANY, X509_ANY, X509_OCSP_SIGNER,
"ANY");
ENUM_END(x509_flag_names, X509_ANY);
/*
* Described in header
*/
void x509_cdp_destroy(x509_cdp_t *this)
{
free(this->uri);
DESTROY_IF(this->issuer);
free(this);
}
@@ -210,8 +210,11 @@ struct x509_t {
* @return enumerator over x509_policy_mapping
*/
enumerator_t* (*create_policy_mapping_enumerator)(x509_t *this);
};
/**
* Destroy an x509_cdp_t instance.
*/
void x509_cdp_destroy(x509_cdp_t *this);
#endif /** X509_H_ @}*/