From: Hugo Landau Date: Mon, 16 Oct 2023 13:58:36 +0000 (+0100) Subject: Add SNI X-Git-Tag: openssl-3.2.0-beta1~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f92d4a07ccdcce9c446db26e8ad01e880f007f39;p=thirdparty%2Fopenssl.git Add SNI Reviewed-by: Matt Caswell Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/22369) --- diff --git a/demos/http3/ossl-nghttp3.c b/demos/http3/ossl-nghttp3.c index 20d814c90e2..2b2259f34fb 100644 --- a/demos/http3/ossl-nghttp3.c +++ b/demos/http3/ossl-nghttp3.c @@ -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)