diff options
author | valentino <valentino@redislabs.com> | 2018-12-20 16:26:24 +0200 |
---|---|---|
committer | Mark Nunberg <mnunberg@haskalah.org> | 2019-02-20 09:10:10 -0500 |
commit | 58222c26f4889c3f83c453bd7ec87e387459fd0c (patch) | |
tree | cf07f0fefd55a3ea381f1d26567252c4899ada12 /examples/example-libevent-ssl.c | |
parent | 389e694abe6bb9ed6e5a44674d89a866c5231422 (diff) |
Support SNI
Diffstat (limited to 'examples/example-libevent-ssl.c')
-rw-r--r-- | examples/example-libevent-ssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example-libevent-ssl.c b/examples/example-libevent-ssl.c index f780e3e..562e1a1 100644 --- a/examples/example-libevent-ssl.c +++ b/examples/example-libevent-ssl.c @@ -57,7 +57,7 @@ int main (int argc, char **argv) { printf("Error: %s\n", c->errstr); return 1; } - if (redisSecureConnection(&c->c, caCert, cert, certKey) != REDIS_OK) { + if (redisSecureConnection(&c->c, caCert, cert, certKey, "sni") != REDIS_OK) { printf("SSL Error!\n"); exit(1); } |