summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
authortb <>2022-07-02 16:00:12 +0000
committertb <>2022-07-02 16:00:12 +0000
commitf7fed9455632a5807e76bd3a28879f5a87857c53 (patch)
tree9d374c62eeff973ee0b7721a87b5f66c56832f1e /src/lib/libssl/s3_lib.c
parentc757fe9bb6c16f47a415034b69dda698116160ba (diff)
downloadopenbsd-f7fed9455632a5807e76bd3a28879f5a87857c53.tar.gz
openbsd-f7fed9455632a5807e76bd3a28879f5a87857c53.tar.bz2
openbsd-f7fed9455632a5807e76bd3a28879f5a87857c53.zip
Rename uses 'curve' to 'group' and rework tls1 group API.
This reworks various tls1_ curve APIs to indicate success via a boolean return value and move the output to an out parameter. This makes the caller code easier and more consistent. Based on a suggestion by jsing ok jsing
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