]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
demos/sslecho/echecho.c: use <stdbool.h>
authorEugene Syromiatnikov <esyr@openssl.org>
Sat, 27 Jun 2026 10:32:52 +0000 (12:32 +0200)
committerNorbert Pocs <norbertp@openssl.org>
Mon, 20 Jul 2026 11:18:33 +0000 (13:18 +0200)
...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)

demos/sslecho/echecho.c

index 44fe11e4ce3adfdc5d8b67a83c0351615a2f3c84..3977f6756e68084edfb7c5b162a2ef15528fb2a9 100644 (file)
@@ -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.