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

ssl/s3_srvr.c

index a74e541acb9c7b1395df48aaf5e884d453fdb46e..9414cf09fb6405d52ccba280b2116716e31c28dc 100644 (file)
@@ -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
                        {