From 909864ab1eea75d9058efef166ae87a26ee07973 Mon Sep 17 00:00:00 2001 From: Ilan Peer Date: Mon, 5 Dec 2022 12:42:38 +0200 Subject: [PATCH] HS 2.0: Restore ifdef for DEFINE_STACK_OF in est.c DEFINE_STACK_OF() was only introduced in OpenSSL 1.1.0 and newer, but the ifdef directive that wrapped it was wrongly removed when cleaning some BoringSSL definitions. Use ifdef confistently for defining and using AttrOrOID. Fixes: faf9c04cb51c ("Remove a host of unnecessary OPENSSL_IS_BORINGSSL ifdefs") Signed-off-by: Ilan Peer Signed-off-by: Andrei Otcheretianski --- hs20/client/est.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hs20/client/est.c b/hs20/client/est.c index c3f27e1e9..5c6e2f67d 100644 --- a/hs20/client/est.c +++ b/hs20/client/est.c @@ -218,7 +218,9 @@ typedef struct { } d; } AttrOrOID; +#if OPENSSL_VERSION_NUMBER >= 0x10100000L DEFINE_STACK_OF(AttrOrOID) +#endif typedef struct { int type;