void tls_free(rdpTls* tls) { if (tls) { if (tls->ssl) { SSL_free(tls->ssl); tls->ssl = NULL; } if (tls->ctx) { SSL_CTX_free(tls->ctx); tls->ctx = NULL; } if (tls->PublicKey) { free(tls->PublicKey); tls->PublicKey = NULL; } if (tls->Bindings) { free(tls->Bindings->Bindings); free(tls->Bindings); tls->Bindings = NULL; } certificate_store_free(tls->certificate_store); tls->certificate_store = NULL; free(tls); } }
void tls_free(rdpTls* tls) { if (!tls) return; if (tls->ctx) { SSL_CTX_free(tls->ctx); tls->ctx = NULL; } if (tls->PublicKey) { free(tls->PublicKey); tls->PublicKey = NULL; } if (tls->Bindings) { free(tls->Bindings->Bindings); free(tls->Bindings); tls->Bindings = NULL; } if (tls->certificate_store) { certificate_store_free(tls->certificate_store); tls->certificate_store = NULL; } free(tls); }
void tls_free(rdpTls* tls) { if (tls != NULL) { if (tls->ssl) SSL_free(tls->ssl); if (tls->ctx) SSL_CTX_free(tls->ctx); certificate_store_free(tls->certificate_store); xfree(tls); } }
void tls_free(rdpTls* tls) { if (tls != NULL) { if (tls->ssl) SSL_free(tls->ssl); if (tls->ctx) SSL_CTX_free(tls->ctx); freerdp_blob_free(&tls->public_key); certificate_store_free(tls->certificate_store); xfree(tls); } }
void tls_free(rdpTls* tls) { if (tls != NULL) { if (tls->ssl) SSL_free(tls->ssl); if (tls->ctx) SSL_CTX_free(tls->ctx); if (tls->PublicKey) free(tls->PublicKey); if (tls->Bindings) { free(tls->Bindings->Bindings); free(tls->Bindings); } certificate_store_free(tls->certificate_store); free(tls); } }