Commit 518b6ab081 for openssl.org
commit 518b6ab081467ac9b477ded776affd6c598cb8f8
Author: Bob Beck <beck@openssl.org>
Date: Sun Feb 22 12:47:59 2026 -0700
Fix being hoist on my own petard by my kind Irish friend.
(Use the now non-deprecated function)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
MergeDate: Tue Feb 24 14:05:18 2026
(Merged from https://github.com/openssl/openssl/pull/29612)
diff --git a/ssl/statem/statem_clnt.c b/ssl/statem/statem_clnt.c
index 79fa092f59..18a08ca399 100644
--- a/ssl/statem/statem_clnt.c
+++ b/ssl/statem/statem_clnt.c
@@ -1899,7 +1899,7 @@ MSG_PROCESS_RETURN tls_process_server_hello(SSL_CONNECTION *s, PACKET *pkt)
SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
goto err;
}
- if (SSL_set1_host(ssl, s->ext.ech.outer_hostname) != 1) {
+ if (SSL_set1_dnsname(ssl, s->ext.ech.outer_hostname) != 1) {
SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
goto err;
}