]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS 2.0: Restore ifdef for DEFINE_STACK_OF in est.c
authorIlan Peer <ilan.peer@intel.com>
Mon, 5 Dec 2022 10:42:38 +0000 (12:42 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 16 Dec 2022 20:42:16 +0000 (22:42 +0200)
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 <ilan.peer@intel.com>
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
hs20/client/est.c

index c3f27e1e95a2dd5fe65e3b6dec6fa8ce38f2e197..5c6e2f67dda9ccdc3600a14f90007ceb4985fa3a 100644 (file)
@@ -218,7 +218,9 @@ typedef struct {
        } d;
 } AttrOrOID;
 
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
 DEFINE_STACK_OF(AttrOrOID)
+#endif
 
 typedef struct {
        int type;