Add missing 'case' statement that causes TLSv1.3 implementation to be unreachable.

This commit is contained in:
Muzaffar Auhammud 2018-07-12 21:41:54 +04:00
parent e3077ba65c
commit adf8806ab9

View File

@ -1092,6 +1092,7 @@ main(int argc, char **argv)
#if (OPENSSL_VERSION_NUMBER >= 0x10101000L) #if (OPENSSL_VERSION_NUMBER >= 0x10101000L)
/* 7/TLSv1.3 */ /* 7/TLSv1.3 */
case 7:
ssl_ctx = SSL_CTX_new (TLS_client_method ()); ssl_ctx = SSL_CTX_new (TLS_client_method ());
SSL_CTX_set_min_proto_version(ssl_ctx, TLS1_3_VERSION); SSL_CTX_set_min_proto_version(ssl_ctx, TLS1_3_VERSION);
SSL_CTX_set_max_proto_version(ssl_ctx, TLS1_3_VERSION); SSL_CTX_set_max_proto_version(ssl_ctx, TLS1_3_VERSION);