diff mbox series

[05/16] Makefile.flags: Add missing wolfSSL definitions

Message ID 20200916135825.40367-6-bage@linutronix.de
State Accepted
Headers show
Series wolfssl SSL impl, PKCS#11 AES, AES key len | expand

Commit Message

Bastian Germann Sept. 16, 2020, 1:58 p.m. UTC
From: Bastian Germann <bage@linutronix.de>

The openssl compatibility layer is located in the openssl subdirectory of
the wolfssl include dir. OPENSSL_ALL is needed to enable some of the
compatibility layer's optional definitions.

WOLFSSL_APACHE_HTTPD is needed to circumvent a wolfSSL memory bug (?)
that is triggered if OPENSSL_VERSION_NUMBER is < 0x10100000L.
WOLFSSL_APACHE_HTTPD makes it raise the number. With image encryption
enabled and this undefined the bug can be triggered by running `make test`.

Signed-off-by: Bastian Germann <bage@linutronix.de>
Reviewed-by: Torben Hohn <torben.hohn@linutronix.de>
---
 Makefile.flags | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/Makefile.flags b/Makefile.flags
index a5d3b0e..0ccd841 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -150,7 +150,7 @@  LDLIBS += crypto ssl
 endif
 
 ifeq ($(CONFIG_SSL_IMPL_WOLFSSL),y)
-KBUILD_CPPFLAGS += -I/usr/include/wolfssl
+KBUILD_CPPFLAGS += -I/usr/include/wolfssl -DOPENSSL_ALL -DWOLFSSL_APACHE_HTTPD
 LDLIBS += wolfssl
 endif