]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
demos/sslecho/echecho.c: use SSL_set1_ipaddr() instead of SSL_set1_host()
authorEugene Syromiatnikov <esyr@openssl.org>
Sat, 27 Jun 2026 10:42:27 +0000 (12:42 +0200)
committerNorbert Pocs <norbertp@openssl.org>
Mon, 20 Jul 2026 11:18:33 +0000 (13:18 +0200)
As the latter was deprecated in commit f584ae959cbc "Let's support
multiple names for certificate verification".

Complements: 50580382caca "Documents initial agreed APIs for Encrypted Client Hello (ECH) and includes a minimal demo for some of those APIs."
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Bob Beck <beck@openssl.org>
MergeDate: Mon Jul 20 11:19:00 2026
(Merged from https://github.com/openssl/openssl/pull/31751)

demos/sslecho/echecho.c

index 2e300b95a1e565bf620f1508f7bd4b8a023a3051..c8dc57b2631ae39a9eaacda4ee53a7318bf7064e 100644 (file)
@@ -336,7 +336,7 @@ int main(int argc, char **argv)
         /* Set hostname for SNI */
         SSL_set_tlsext_host_name(ssl, rem_server_ip);
         /* Configure server hostname check */
-        SSL_set1_host(ssl, rem_server_ip);
+        SSL_set1_ipaddr(ssl, rem_server_ip);
 
         /* Now do SSL connect with server */
         if (SSL_connect(ssl) == 1) {