[PATCH] hs20: client: ifdef DEFINE_STACK_OF in est.c

Andrei Otcheretianski andrei.otcheretianski at intel.com
Mon Dec 5 02:42:38 PST 2022


From: Ilan Peer <ilan.peer at intel.com>

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.

Signed-off-by: Ilan Peer <ilan.peer at intel.com>
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
 hs20/client/est.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hs20/client/est.c b/hs20/client/est.c
index c3f27e1e95..5c6e2f67dd 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;
-- 
2.25.1




More information about the Hostap mailing list