summaryrefslogtreecommitdiffstats
path: root/ssl/s3_srvr.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-12-26 16:17:40 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-12-26 16:17:40 +0000
commitccf6a19e2d825f4039163393023bd15670aee946 (patch)
treedd5bb510651fbdaf23fdcef6c4cbf55489dfb7c4 /ssl/s3_srvr.c
parent28fbbe3b1bc89cd5dba6a0d9e74a3cf24d341002 (diff)
Add three Suite B modes to TLS code, supporting RFC6460.
(backport from HEAD)
Diffstat (limited to 'ssl/s3_srvr.c')
-rw-r--r--ssl/s3_srvr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c
index 8a15af6dd1..ed7d34f724 100644
--- a/ssl/s3_srvr.c
+++ b/ssl/s3_srvr.c
@@ -1707,8 +1707,8 @@ int ssl3_send_server_key_exchange(SSL *s)
ecdhp=cert->ecdh_tmp;
if (s->cert->ecdh_tmp_auto)
{
- /* Get NID of first shared curve */
- int nid = tls1_shared_curve(s, 0);
+ /* Get NID of appropriate shared curve */
+ int nid = tls1_shared_curve(s, -2);
if (nid != NID_undef)
ecdhp = EC_KEY_new_by_curve_name(nid);
}