Skip to content

Commit

Permalink
Add SNI
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from #22369)
  • Loading branch information
hlandau committed Oct 19, 2023
1 parent 17b8f40 commit f92d4a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demos/http3/ossl-nghttp3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
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,
settings, user_data);
if (conn == NULL)
Expand Down

0 comments on commit f92d4a0

Please sign in to comment.