diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libssl/ssl_ciph.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_ciph.c b/src/lib/libssl/ssl_ciph.c index 0e9941bc0b..643d668d7c 100644 --- a/src/lib/libssl/ssl_ciph.c +++ b/src/lib/libssl/ssl_ciph.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_ciph.c,v 1.124 2021/07/03 16:06:44 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_ciph.c,v 1.125 2021/11/23 18:26:23 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 | * |
| @@ -681,7 +681,10 @@ ssl_cipher_collect_ciphers(const SSL_METHOD *ssl_method, int num_of_ciphers, | |||
| 681 | co_list_num = 0; /* actual count of ciphers */ | 681 | co_list_num = 0; /* actual count of ciphers */ |
| 682 | for (i = 0; i < num_of_ciphers; i++) { | 682 | for (i = 0; i < num_of_ciphers; i++) { |
| 683 | c = ssl_method->get_cipher(i); | 683 | c = ssl_method->get_cipher(i); |
| 684 | /* drop those that use any of that is not available */ | 684 | /* |
| 685 | * Drop any invalid ciphers and any which use unavailable | ||
| 686 | * algorithms. | ||
| 687 | */ | ||
| 685 | if ((c != NULL) && c->valid && | 688 | if ((c != NULL) && c->valid && |
| 686 | !(c->algorithm_mkey & disabled_mkey) && | 689 | !(c->algorithm_mkey & disabled_mkey) && |
| 687 | !(c->algorithm_auth & disabled_auth) && | 690 | !(c->algorithm_auth & disabled_auth) && |
