Fixed checking for TLSv1.3 support

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2021-08-13 20:49:27 +02:00
parent cd86c86fe8
commit fcaa841da0

View File

@ -152,7 +152,7 @@ int get_tls_protocol_number(char *protocol){
{ "TLSv1", TLS1_VERSION },
{ "TLSv1.1", TLS1_1_VERSION },
{ "TLSv1.2", TLS1_2_VERSION },
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
#ifdef TLS1_3_VERSION
{ "TLSv1.3", TLS1_3_VERSION },
#endif
};