Merge pull request #2026 from dcooper16/speedup_cipher_pref_check

Speedup cipher_pref_check()
This commit is contained in:
Dirk Wetter 2021-10-27 10:04:13 +02:00 committed by GitHub
commit 1dc858dc90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -6957,7 +6957,8 @@ cipher_pref_check() {
fi
if ( [[ $proto != tls1_3 ]] || "$HAS_TLS13" ) && ( [[ $proto != ssl3 ]] || "$HAS_SSL3" ); then
if [[ $proto == tls1_2 ]] && "$SERVER_SIZE_LIMIT_BUG"; then
if [[ $proto == tls1_2 ]] && "$SERVER_SIZE_LIMIT_BUG" && \
[[ "$(count_ciphers "$(actually_supported_osslciphers "ALL:COMPLEMENTOFALL" "" "")")" -gt 127 ]]; then
order="$(check_tls12_pref "$wide")"
[[ "${order:0:1}" == \ ]] && order="${order:1}"
ciphers_found="$order"