From: tb Date: Tue, 23 Nov 2021 18:26:23 +0000 (+0000) Subject: Transform a mangled comment into something intelligible. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=242bbb914c3b9e34783c84ccd568e11c9d2eb3b2;p=openbsd Transform a mangled comment into something intelligible. from beck --- diff --git a/lib/libssl/ssl_ciph.c b/lib/libssl/ssl_ciph.c index 0e9941bc0b4..643d668d7c7 100644 --- a/lib/libssl/ssl_ciph.c +++ b/lib/libssl/ssl_ciph.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_ciph.c,v 1.124 2021/07/03 16:06:44 jsing Exp $ */ +/* $OpenBSD: ssl_ciph.c,v 1.125 2021/11/23 18:26:23 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -681,7 +681,10 @@ ssl_cipher_collect_ciphers(const SSL_METHOD *ssl_method, int num_of_ciphers, co_list_num = 0; /* actual count of ciphers */ for (i = 0; i < num_of_ciphers; i++) { c = ssl_method->get_cipher(i); - /* drop those that use any of that is not available */ + /* + * Drop any invalid ciphers and any which use unavailable + * algorithms. + */ if ((c != NULL) && c->valid && !(c->algorithm_mkey & disabled_mkey) && !(c->algorithm_auth & disabled_auth) &&