Check for TLSv1.3 in OpenSSL

This PR adds a missing check for local TLSv1.3 support in cipher_pref_check(). If the "--ssl-native" mode is being used and $OPENSSL does not support TLSv1.3, then a warning should be displayed indicating that TLSv1.3 cannot be checked rather than displaying the same results as if the server did not support TLSv1.3.
This commit is contained in:
David Cooper 2018-03-15 11:58:11 -04:00 committed by GitHub
parent 107d2dd12e
commit 2c1c9f33aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5597,6 +5597,10 @@ cipher_pref_check() {
out "\n SSLv3: "; pr_local_problem "$OPENSSL doesn't support \"s_client -ssl3\"";
continue
fi
if [[ $p == tls1_3 ]] && ! "$HAS_TLS13" && ! "$using_sockets"; then
out "\n TLSv1.3 "; pr_local_problem "$OPENSSL doesn't support \"s_client -tls1_3\"";
continue
fi
[[ $(has_server_protocol "$p") -eq 1 ]] && continue