Commit 936a9ce283 for openssl.org

commit 936a9ce2838f75ca64d45ee7a89ec8cf84d6e335
Author: Eugene Syromiatnikov <esyr@openssl.org>
Date:   Sat Jun 27 12:32:52 2026 +0200

    demos/sslecho/echecho.c: use <stdbool.h>

    ...instead of defining it (incorrectly).

    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:18:58 2026
    (Merged from https://github.com/openssl/openssl/pull/31751)

diff --git a/demos/sslecho/echecho.c b/demos/sslecho/echecho.c
index 44fe11e4ce..3977f6756e 100644
--- a/demos/sslecho/echecho.c
+++ b/demos/sslecho/echecho.c
@@ -7,6 +7,7 @@
  *  https://www.openssl.org/source/license.html
  */

+#include <stdbool.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <string.h>
@@ -29,10 +30,6 @@ static const char echprivbuf[]
       "AQALZXhhbXBsZS5jb20AAA==\n"
       "-----END ECHCONFIG-----\n";

-typedef unsigned char bool;
-#define true 1
-#define false 0
-
 /*
  * This flag won't be useful until both accept/read (TCP & SSL) methods
  * can be called with a timeout. TBD.