void z_proxy_ssl_host_iface_free_method(ZObject *s) { ZProxySslHostIface *self = Z_CAST(s, ZProxySslHostIface); X509_free(self->server_cert); z_object_free_method(s); }
static void z_certificate_chain_free_method(ZObject *s) { ZCertificateChain *self = Z_CAST(s, ZCertificateChain); if (self->cert) X509_free(self->cert); sk_X509_pop_free(self->chain, X509_free); z_object_free_method(s); }