summaryrefslogtreecommitdiff
path: root/examples/example-ssl.c
diff options
context:
space:
mode:
authorvalentino <valentino@redislabs.com>2018-12-20 16:26:24 +0200
committerMark Nunberg <mnunberg@haskalah.org>2019-02-20 09:10:10 -0500
commit58222c26f4889c3f83c453bd7ec87e387459fd0c (patch)
treecf07f0fefd55a3ea381f1d26567252c4899ada12 /examples/example-ssl.c
parent389e694abe6bb9ed6e5a44674d89a866c5231422 (diff)
Support SNI
Diffstat (limited to 'examples/example-ssl.c')
-rw-r--r--examples/example-ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example-ssl.c b/examples/example-ssl.c
index 28489e4..a90b78a 100644
--- a/examples/example-ssl.c
+++ b/examples/example-ssl.c
@@ -30,7 +30,7 @@ int main(int argc, char **argv) {
exit(1);
}
- if (redisSecureConnection(c, ca, cert, key) != REDIS_OK) {
+ if (redisSecureConnection(c, ca, cert, key, "sni") != REDIS_OK) {
printf("Couldn't initialize SSL!\n");
printf("Error: %s\n", c->errstr);
redisFree(c);