blob: 57f9668b270e7cae38a82839d616af8d43251174 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/usr/bin/perl
use strict;
use warnings;
use Test::More;
use FindBin qw($Bin);
use lib "$Bin/lib";
use MemcachedTest;
use Cwd;
if (!enabled_tls_testing()) {
plan skip_all => 'SSL testing is not enabled';
exit 0;
}
my $server = new_memcached();
my $settings = mem_stats($server->sock, ' settings');
my $cert = getcwd ."/t/". MemcachedTest::SRV_CRT;
my $key = getcwd ."/t/". MemcachedTest::SRV_KEY;
is($settings->{'ssl_enabled'}, 'yes');
is($settings->{'ssl_chain_cert'}, $cert);
is($settings->{'ssl_key'}, $key);
is($settings->{'ssl_verify_mode'}, 0);
is($settings->{'ssl_keyformat'}, 1);
is($settings->{'ssl_ciphers'}, 'NULL');
is($settings->{'ssl_ca_cert'}, 'NULL');
is($settings->{'ssl_wbuf_size'}, 16384);
$server->DESTROY();
$server = new_memcached("-o ssl_wbuf_size=64");
$settings = mem_stats($server->sock, ' settings');
is($settings->{'ssl_wbuf_size'},65536);
done_testing();
|