diff mbox series

[v2] Let options.h be the first wolfSSL include

Message ID 20240708165618.28442-1-bage@debian.org
State Accepted
Headers show
Series [v2] Let options.h be the first wolfSSL include | expand

Commit Message

Bastian Germann July 8, 2024, 4:56 p.m. UTC
cbceee179d (Fix build error when WolfSSL is used) included
wolfssl/ssl.h in front of wolfssl/options.h, which has to be the first
wolfSSL include. The compilation will error on the X509 type with this.

Change the include order.

Signed-off-by: Bastian Germann <bage@debian.org>
---
 include/sslapi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/sslapi.h b/include/sslapi.h
index 64640184..36762b93 100644
--- a/include/sslapi.h
+++ b/include/sslapi.h
@@ -41,8 +41,8 @@ 
 #include <openssl/opensslv.h>
 #include <openssl/cms.h>
 #elif defined(CONFIG_SSL_IMPL_WOLFSSL)
-#include <wolfssl/ssl.h>
 #include <wolfssl/options.h>
+#include <wolfssl/ssl.h>
 #include <wolfssl/openssl/bio.h>
 #include <wolfssl/openssl/objects.h>
 #include <wolfssl/openssl/err.h>