From: Nils Larsch Date: Wed, 7 Feb 2007 20:36:40 +0000 (+0000) Subject: ensure that a ec key is used X-Git-Tag: OpenSSL_0_9_8e~23 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f4182658654d48625371f6220cb17fe6891d1a99;p=oweals%2Fopenssl.git ensure that a ec key is used PR: 1476 --- diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index a74e541acb..9414cf09fb 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -2063,7 +2063,7 @@ int ssl3_get_client_key_exchange(SSL *s) if (l & SSL_kECDH) { /* use the certificate */ - tkey = s->cert->key->privatekey->pkey.ec; + tkey = s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec; } else {