-/* $OpenBSD: ssl_ciphers.c,v 1.13 2022/02/05 18:18:18 tb Exp $ */
+/* $OpenBSD: ssl_ciphers.c,v 1.14 2022/06/29 08:38:01 tb Exp $ */
/*
* Copyright (c) 2015-2017 Doug Hogan <doug@openbsd.org>
* Copyright (c) 2015-2018, 2020 Joel Sing <jsing@openbsd.org>
if (!ssl_cipher_allowed_in_tls_version_range(cipher, min_vers,
max_vers))
continue;
+ if (!ssl_security(s, SSL_SECOP_CIPHER_CHECK,
+ cipher->strength_bits, 0, cipher))
+ continue;
if (!CBB_add_u16(cbb, ssl3_cipher_get_value(cipher)))
return 0;