diff mbox series

hs20: client: ifdef DEFINE_STACK_OF in est.c

Message ID 20221205104238.10626-1-andrei.otcheretianski@intel.com
State Accepted
Headers show
Series hs20: client: ifdef DEFINE_STACK_OF in est.c | expand

Commit Message

Andrei Otcheretianski Dec. 5, 2022, 10:42 a.m. UTC
From: Ilan Peer <ilan.peer@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@intel.com>
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
---
 hs20/client/est.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jouni Malinen Dec. 16, 2022, 9:26 p.m. UTC | #1
On Mon, Dec 05, 2022 at 12:42:38PM +0200, Andrei Otcheretianski wrote:
> 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.

Thanks, applied.
diff mbox series

Patch

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;