}
SSL_use_certificate (ssl, srvcert);
BIO_free (cert_bio);
+ X509_free (srvcert);
cert_bio = BIO_new (BIO_s_mem ());
BIO_write (cert_bio, ckpair->key, vec_len (ckpair->key));
}
SSL_use_PrivateKey (ssl, pkey);
BIO_free (cert_bio);
+ EVP_PKEY_free (pkey);
TLS_DBG (1, "TLS client using ckpair index: %d", ckpair_index);
return 0;
}
}
BIO_free (cert_bio);
+ X509_free (srvcert);
cert_bio = BIO_new (BIO_s_mem ());
if (!cert_bio)
}
BIO_free (cert_bio);
+ EVP_PKEY_free (pkey);
if (lctx->alpn_list)
SSL_CTX_set_alpn_select_cb (ssl_ctx, openssl_alpn_select_cb,
olc_index = lctx->tls_ssl_ctx;
olc = openssl_lctx_get (olc_index);
- X509_free (olc->srvcert);
- EVP_PKEY_free (olc->pkey);
-
SSL_CTX_free (olc->ssl_ctx);
openssl_listen_ctx_free (olc);