-/* $OpenBSD: tls.c,v 1.63 2017/05/07 01:59:34 jsing Exp $ */
+/* $OpenBSD: tls.c,v 1.64 2017/06/22 17:47:56 jsing Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
struct tls_keypair *keypair, int required)
{
EVP_PKEY *pkey = NULL;
- X509 *cert = NULL;
BIO *bio = NULL;
if (!required &&
}
if (tls_keypair_cert_hash(keypair, &keypair->cert_hash) == -1)
goto err;
- cert = NULL;
}
if (keypair->key_mem != NULL) {
err:
EVP_PKEY_free(pkey);
- X509_free(cert);
BIO_free(bio);
return (1);