certificates: Use shared destructor for x509_cdp_t
This commit is contained in:
@@ -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_ @}*/
|
||||
|
||||
Reference in New Issue
Block a user