diff options
Diffstat (limited to 'sample')
-rw-r--r-- | sample/https-client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sample/https-client.c b/sample/https-client.c index eea61e5d..fbd5de8c 100644 --- a/sample/https-client.c +++ b/sample/https-client.c @@ -353,8 +353,10 @@ main(int argc, char **argv) die_openssl("SSL_new()"); } + #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME // Set hostname for SNI extension SSL_set_tlsext_host_name(ssl, host); + #endif if (strcasecmp(scheme, "http") == 0) { bev = bufferevent_socket_new(base, -1, BEV_OPT_CLOSE_ON_FREE); |