diff options
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
| -rw-r--r-- | src/lib/libssl/ssl_lib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index 6f8a14bca4..2879b198d5 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.222 2020/09/11 13:20:32 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_lib.c,v 1.223 2020/09/11 15:28:08 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 | * |
| @@ -1298,7 +1298,8 @@ SSL_get1_supported_ciphers(SSL *s) | |||
| 1298 | for (i = 0; i < sk_SSL_CIPHER_num(ciphers); i++) { | 1298 | for (i = 0; i < sk_SSL_CIPHER_num(ciphers); i++) { |
| 1299 | if ((cipher = sk_SSL_CIPHER_value(ciphers, i)) == NULL) | 1299 | if ((cipher = sk_SSL_CIPHER_value(ciphers, i)) == NULL) |
| 1300 | goto err; | 1300 | goto err; |
| 1301 | if (!ssl_cipher_is_permitted(cipher, min_vers, max_vers)) | 1301 | if (!ssl_cipher_allowed_in_version_range(cipher, min_vers, |
| 1302 | max_vers)) | ||
| 1302 | continue; | 1303 | continue; |
| 1303 | if (!sk_SSL_CIPHER_push(supported_ciphers, cipher)) | 1304 | if (!sk_SSL_CIPHER_push(supported_ciphers, cipher)) |
| 1304 | goto err; | 1305 | goto err; |
