ensure that a ec key is used
authorNils Larsch <nils@openssl.org>
Wed, 7 Feb 2007 20:28:19 +0000 (20:28 +0000)
committerNils Larsch <nils@openssl.org>
Wed, 7 Feb 2007 20:28:19 +0000 (20:28 +0000)
PR: 1476

ssl/s3_srvr.c

index f776dc0625925d64677a023878951209c6aaee62..11828d396cbcb8e753f845b00b52f02e9f3a403c 100644 (file)
@@ -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
                        {