diff options
author | Kevin Lin <developer@kevinlin.info> | 2021-11-08 16:27:11 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2021-11-23 16:07:04 -0800 |
commit | 3723c2a8b853c46511227c8afb6174205d94a39e (patch) | |
tree | 0d8eef0e478b5044b0dde03b36feea90ab9bcf98 /tls.c | |
parent | 32eab461f58ce5949baa7ffd47b0c6cefbbb1bd4 (diff) | |
download | memcached-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |