summaryrefslogtreecommitdiff
path: root/src/lib/libssl
diff options
context:
space:
mode:
authorjsing <>2026-07-15 13:56:38 +0000
committerjsing <>2026-07-15 13:56:38 +0000
commit67e537385476e1b11b775ac95776aab10f730fcf (patch)
treeadf0ea0ec7226ee50589b4b9130501216fc5f1a3 /src/lib/libssl
parentda61f1ba976ebd03378a4bfb12bd36aa7005ac6a (diff)
downloadopenbsd-67e537385476e1b11b775ac95776aab10f730fcf.tar.gz
openbsd-67e537385476e1b11b775ac95776aab10f730fcf.tar.bz2
openbsd-67e537385476e1b11b775ac95776aab10f730fcf.zip
Remove check for use of TLSv1.2 ciphersuites with TLSv1.1 and earlier.
We no longer negotiate any TLS version lower than TLSv1.2, so this is now redundant. ok tb@
Diffstat (limited to 'src/lib/libssl')
-rw-r--r--src/lib/libssl/ssl_clnt.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/libssl/ssl_clnt.c b/src/lib/libssl/ssl_clnt.c
index c7db7257b5..d9fdfff2a3 100644
--- a/src/lib/libssl/ssl_clnt.c
+++ b/src/lib/libssl/ssl_clnt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_clnt.c,v 1.173 2026/06/06 15:24:26 jsing Exp $ */ 1/* $OpenBSD: ssl_clnt.c,v 1.174 2026/07/15 13:56:38 jsing 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 *
@@ -1003,14 +1003,6 @@ ssl3_get_server_hello(SSL *s)
1003 goto fatal_err; 1003 goto fatal_err;
1004 } 1004 }
1005 1005
1006 /* TLS v1.2 only ciphersuites require v1.2 or later. */
1007 if ((cipher->algorithm_ssl & SSL_TLSV1_2) &&
1008 s->s3->hs.negotiated_tls_version < TLS1_2_VERSION) {
1009 al = SSL_AD_ILLEGAL_PARAMETER;
1010 SSLerror(s, SSL_R_WRONG_CIPHER_RETURNED);
1011 goto fatal_err;
1012 }
1013
1014 if (!ssl_cipher_in_list(SSL_get_ciphers(s), cipher)) { 1006 if (!ssl_cipher_in_list(SSL_get_ciphers(s), cipher)) {
1015 /* we did not say we would use this cipher */ 1007 /* we did not say we would use this cipher */
1016 al = SSL_AD_ILLEGAL_PARAMETER; 1008 al = SSL_AD_ILLEGAL_PARAMETER;