summaryrefslogtreecommitdiff
path: root/t/ssl_settings.t
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 /t/ssl_settings.t
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 't/ssl_settings.t')
-rw-r--r--t/ssl_settings.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/ssl_settings.t b/t/ssl_settings.t
index c4d5b33..0a3bf94 100644
--- a/t/ssl_settings.t
+++ b/t/ssl_settings.t
@@ -28,10 +28,11 @@ is($settings->{'ssl_keyformat'}, 1);
is($settings->{'ssl_ciphers'}, 'NULL');
is($settings->{'ssl_ca_cert'}, 'NULL');
is($settings->{'ssl_wbuf_size'}, 16384);
+is($settings->{'ssl_min_version'}, 'tlsv1.2');
$server->DESTROY();
$server = new_memcached("-o ssl_wbuf_size=64");
$settings = mem_stats($server->sock, ' settings');
-is($settings->{'ssl_wbuf_size'},65536);
+is($settings->{'ssl_wbuf_size'}, 65536);
done_testing();