summaryrefslogtreecommitdiff
path: root/memcached.h
diff options
context:
space:
mode:
authorKevin Lin <developer@kevinlin.info>2021-05-31 13:33:48 -0700
committerdormando <dormando@rydia.net>2021-09-27 12:54:20 -0700
commit3a8ca319b35a3b3533b1f1ca55e904cfcb71962c (patch)
tree6a61bc3c9481e8fcbc4d6e3314613cccb63c06cc /memcached.h
parentf8a55c4731ab38b8c1a88cb7bf10fadc209fd78f (diff)
downloadmemcached-3a8ca319b35a3b3533b1f1ca55e904cfcb71962c.tar.gz
Configurable minimum supported TLS protocol version
`-o ssl_min_version` can be used to configure the server to only accept handshakes from clients with a minimum TLS protocol version. Currently supported options are TLS v1.0, TLS v1.1, TLS v1.2, and TLS v1.3 (OpenSSL 1.1.1+ only).
Diffstat (limited to 'memcached.h')
-rw-r--r--memcached.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/memcached.h b/memcached.h
index 7b06bb3..3289bdb 100644
--- a/memcached.h
+++ b/memcached.h
@@ -496,6 +496,7 @@ struct settings {
rel_time_t ssl_last_cert_refresh_time; /* time of the last server certificate refresh */
unsigned int ssl_wbuf_size; /* size of the write buffer used by ssl_sendmsg method */
bool ssl_session_cache; /* enable SSL server session caching */
+ int ssl_min_version; /* minimum SSL protocol version to accept */
#endif
int num_napi_ids; /* maximum number of NAPI IDs */
char *memory_file; /* warm restart memory file path */