summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
-rw-r--r--src/lib/libssl/s3_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c
index 4575a141cf..cfd50e66be 100644
--- a/src/lib/libssl/s3_lib.c
+++ b/src/lib/libssl/s3_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_lib.c,v 1.233 2022/06/29 21:18:04 tb Exp $ */ 1/* $OpenBSD: s3_lib.c,v 1.234 2022/07/02 16:00:12 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -2494,13 +2494,13 @@ ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt,
2494 STACK_OF(SSL_CIPHER) *prio, *allow; 2494 STACK_OF(SSL_CIPHER) *prio, *allow;
2495 SSL_CIPHER *c, *ret = NULL; 2495 SSL_CIPHER *c, *ret = NULL;
2496 int can_use_ecc; 2496 int can_use_ecc;
2497 int i, ii, ok; 2497 int i, ii, nid, ok;
2498 SSL_CERT *cert; 2498 SSL_CERT *cert;
2499 2499
2500 /* Let's see which ciphers we can support */ 2500 /* Let's see which ciphers we can support */
2501 cert = s->cert; 2501 cert = s->cert;
2502 2502
2503 can_use_ecc = (tls1_get_shared_curve(s) != NID_undef); 2503 can_use_ecc = tls1_get_supported_group(s, &nid);
2504 2504
2505 /* 2505 /*
2506 * Do not set the compare functions, because this may lead to a 2506 * Do not set the compare functions, because this may lead to a