From 1747118e379623d86b5f53dcc99d185f9868ce43 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Mon, 5 Nov 2018 03:49:44 +0000 Subject: Mop up ecdh_tmp, since it is no longer used. ok bluhm@ tb@ --- src/lib/libssl/ssl_cert.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/lib/libssl/ssl_cert.c') diff --git a/src/lib/libssl/ssl_cert.c b/src/lib/libssl/ssl_cert.c index a01f484578..567d8ea21f 100644 --- a/src/lib/libssl/ssl_cert.c +++ b/src/lib/libssl/ssl_cert.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_cert.c,v 1.67 2018/04/25 07:10:39 tb Exp $ */ +/* $OpenBSD: ssl_cert.c,v 1.68 2018/11/05 03:49:44 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -234,14 +234,6 @@ ssl_cert_dup(CERT *cert) ret->dh_tmp_cb = cert->dh_tmp_cb; ret->dh_tmp_auto = cert->dh_tmp_auto; - if (cert->ecdh_tmp) { - ret->ecdh_tmp = EC_KEY_dup(cert->ecdh_tmp); - if (ret->ecdh_tmp == NULL) { - SSLerrorx(ERR_R_EC_LIB); - goto err; - } - } - for (i = 0; i < SSL_PKEY_NUM; i++) { if (cert->pkeys[i].x509 != NULL) { ret->pkeys[i].x509 = cert->pkeys[i].x509; @@ -297,7 +289,6 @@ ssl_cert_dup(CERT *cert) err: DH_free(ret->dh_tmp); - EC_KEY_free(ret->ecdh_tmp); for (i = 0; i < SSL_PKEY_NUM; i++) { X509_free(ret->pkeys[i].x509); @@ -321,7 +312,6 @@ ssl_cert_free(CERT *c) return; DH_free(c->dh_tmp); - EC_KEY_free(c->ecdh_tmp); for (i = 0; i < SSL_PKEY_NUM; i++) { X509_free(c->pkeys[i].x509); -- cgit v1.2.3-55-g6feb