mirror of
https://github.com/openssl/openssl.git
synced 2024-11-28 04:25:31 +08:00
ensure that a ec key is used
PR: 1476
This commit is contained in:
parent
82bf227e91
commit
feaaf1dbea
@ -2129,7 +2129,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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user