Commit ef6f59329d for openssl.org
commit ef6f59329d8e795d5a09ff784bf6e0aae2d2f123
Author: Eugene Syromiatnikov <esyr@openssl.org>
Date: Fri Jun 26 19:23:21 2026 +0200
demos: wire up echecho
Complements: 50580382caca "Documents initial agreed APIs for Encrypted Client Hello (ECH) and includes a minimal demo for some of those APIs."
Reported-by: Frederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>
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:04 2026
(Merged from https://github.com/openssl/openssl/pull/31751)
diff --git a/demos/README.txt b/demos/README.txt
index ff42e4f037..9caafcad77 100644
--- a/demos/README.txt
+++ b/demos/README.txt
@@ -84,4 +84,5 @@ rsa_pss_hash.c Compute and verify an RSA-PSS signature over a buffer
smime: Demonstrations related to S/MIME
sslecho:
+echecho.c Simple SSL/TLS echo client/server that uses ECH.
main.c Simple SSL/TLS echo client/server.
diff --git a/demos/sslecho/build.info b/demos/sslecho/build.info
index d42716cd51..7784357ed6 100644
--- a/demos/sslecho/build.info
+++ b/demos/sslecho/build.info
@@ -6,6 +6,15 @@
PROGRAMS{noinst} = sslecho
+
INCLUDE[sslecho]=../../include
SOURCE[sslecho]=main.c
DEPEND[sslecho]=../../libcrypto ../../libssl
+
+IF[{- !$disabled{"ech"} -}]
+ PROGRAMS{noinst} = echecho
+
+ INCLUDE[echecho]=../../include
+ SOURCE[echecho]=echecho.c
+ DEPEND[echecho]=../../libcrypto ../../libssl
+ENDIF