]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Add SNI
authorHugo Landau <hlandau@openssl.org>
Mon, 16 Oct 2023 13:58:36 +0000 (14:58 +0100)
committerHugo Landau <hlandau@openssl.org>
Thu, 19 Oct 2023 07:28:59 +0000 (08:28 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22369)

demos/http3/ossl-nghttp3.c

index 20d814c90e24d9a113df6334fd8dc67ac647b64a..2b2259f34fb16884a54d0291bf9e2113eb3d016f 100644 (file)
@@ -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)