mirror of https://github.com/openssl/openssl.git
Add SNI
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22369)
This commit is contained in:
parent
17b8f405a2
commit
f92d4a07cc
|
|
@ -421,6 +421,10 @@ OSSL_DEMO_H3_CONN *OSSL_DEMO_H3_CONN_new_for_addr(SSL_CTX *ctx, const char *addr
|
||||||
if (SSL_set1_host(qconn, bare_hostname) <= 0)
|
if (SSL_set1_host(qconn, bare_hostname) <= 0)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
/* Configure SNI */
|
||||||
|
if (!SSL_set_tlsext_host_name(qconn, bare_hostname))
|
||||||
|
goto err;
|
||||||
|
|
||||||
conn = OSSL_DEMO_H3_CONN_new_for_conn(qconn_bio, callbacks,
|
conn = OSSL_DEMO_H3_CONN_new_for_conn(qconn_bio, callbacks,
|
||||||
settings, user_data);
|
settings, user_data);
|
||||||
if (conn == NULL)
|
if (conn == NULL)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue