summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r--src/lib/libssl/ssl_lib.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index d8415bcf6d..3c4d116919 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_lib.c,v 1.189 2018/09/05 16:58:59 jsing Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.190 2018/11/07 01:53:36 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 *
@@ -1424,6 +1424,11 @@ ssl_cipher_list_to_bytes(SSL *s, STACK_OF(SSL_CIPHER) *ciphers, CBB *cbb)
1424 if ((cipher = sk_SSL_CIPHER_value(ciphers, i)) == NULL) 1424 if ((cipher = sk_SSL_CIPHER_value(ciphers, i)) == NULL)
1425 return 0; 1425 return 0;
1426 1426
1427 /* Skip TLS v1.3 only ciphersuites if lower than v1.3 */
1428 if ((cipher->algorithm_ssl & SSL_TLSV1_3) &&
1429 (TLS1_get_client_version(s) < TLS1_3_VERSION))
1430 continue;
1431
1427 /* Skip TLS v1.2 only ciphersuites if lower than v1.2 */ 1432 /* Skip TLS v1.2 only ciphersuites if lower than v1.2 */
1428 if ((cipher->algorithm_ssl & SSL_TLSV1_2) && 1433 if ((cipher->algorithm_ssl & SSL_TLSV1_2) &&
1429 (TLS1_get_client_version(s) < TLS1_2_VERSION)) 1434 (TLS1_get_client_version(s) < TLS1_2_VERSION))