aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorEugene Syromiatnikov <[email protected]>2026-06-27 12:42:27 +0200
committerNorbert Pocs <[email protected]>2026-07-20 13:18:33 +0200
commit7a4522bf2607f6fa9136273d375c71d78e6e8cbc (patch)
tree4958872187d3fcbfd8a1da56b97bdfd50e5e0181 /demos
parentdemos/sslecho/echecho.c: declare locally used functions as static (diff)
downloadopenssl-7a4522bf2607f6fa9136273d375c71d78e6e8cbc.tar.gz
openssl-7a4522bf2607f6fa9136273d375c71d78e6e8cbc.zip
demos/sslecho/echecho.c: use SSL_set1_ipaddr() instead of SSL_set1_host()
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 <[email protected]> Reviewed-by: Neil Horman <[email protected]> Reviewed-by: Bob Beck <[email protected]> MergeDate: Mon Jul 20 11:19:00 2026 (Merged from https://github.com/openssl/openssl/pull/31751)
Diffstat (limited to 'demos')
-rw-r--r--demos/sslecho/echecho.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/sslecho/echecho.c b/demos/sslecho/echecho.c
index 2e300b95a1e..c8dc57b2631 100644
--- a/demos/sslecho/echecho.c
+++ b/demos/sslecho/echecho.c
@@ -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) {