summaryrefslogtreecommitdiff
path: root/tls.c
diff options
context:
space:
mode:
authorKevin Lin <developer@kevinlin.info>2021-11-08 16:27:11 -0800
committerdormando <dormando@rydia.net>2021-11-23 16:07:04 -0800
commit3723c2a8b853c46511227c8afb6174205d94a39e (patch)
tree0d8eef0e478b5044b0dde03b36feea90ab9bcf98 /tls.c
parent32eab461f58ce5949baa7ffd47b0c6cefbbb1bd4 (diff)
downloadmemcached-3723c2a8b853c46511227c8afb6174205d94a39e.tar.gz
Replace OPENSSL_VERSION_NUMBER check with defined(TLS1_3_VERSION) check for TLS v1.3 compatibility
This provides compatibility with other SSL libraries like LibreSSL with different semantics of OPENSSL_VERSION_NUMBER.
Diffstat (limited to 'tls.c')
-rw-r--r--tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tls.c b/tls.c
index dcd7435..db3aaa7 100644
--- a/tls.c
+++ b/tls.c
@@ -257,7 +257,7 @@ const char *ssl_proto_text(int version) {
return "tlsv1.1";
case TLS1_2_VERSION:
return "tlsv1.2";
-#if OPENSSL_VERSION_NUMBER >= 0x10101000L
+#if defined(TLS1_3_VERSION)
case TLS1_3_VERSION:
return "tlsv1.3";
#endif