fix for curl with wolfssl

pull/100/head
night1rider 2025-04-16 16:54:28 -06:00
parent 978c9ee0c9
commit 8e2ce192f8
4 changed files with 39 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
.vscode/
.vscode/*
.vscode/*
recipes-wolfssl/wolfssl/commercial/files/wolfssl*

View File

@ -6,3 +6,8 @@ CPPFLAGS += "-I${STAGING_DIR_HOST}${prefix}/include/wolfssl"
# Uncomment the line below if you're targeting FIPS compliance. NTLM uses MD5,
# which isn't a FIPS-approved algorithm.
# EXTRA_OECONF += "--disable-ntlm"
# Add the directory where the patch is located to the search path
FILESEXTRAPATHS_prepend := "${THISDIR}/patches:"
SRC_URI += "file://wolfssl-m4-options-fix.patch"

View File

@ -8,3 +8,8 @@ CPPFLAGS:class-target += "-I${STAGING_DIR_HOST}${prefix}/include/wolfssl"
# Uncomment the line below if you're targeting FIPS compliance. NTLM uses MD5,
# which isn't a FIPS-approved algorithm.
# EXTRA_OECONF:class-target += "--disable-ntlm"
# Add the directory where the patch is located to the search path
FILESEXTRAPATHS:prepend := "${THISDIR}/../patches:"
SRC_URI += "file://wolfssl-m4-options-fix.patch"

View File

@ -0,0 +1,27 @@
From 6657602f504e49d27b5aa667a5ed04076ac2c4f6 Mon Sep 17 00:00:00 2001
From: Rosen Penev <rosenp@gmail.com>
Date: Tue, 19 Jul 2022 19:22:20 -0700
Subject: [PATCH] curl-wolfssl.m4: add options header when building test code
Needed for certain configurations of wolfSSL. Otherwise, missing header
error may occur.
Tested with OpenWrt.
Closes #9187
---
m4/curl-wolfssl.m4 | 1 +
1 file changed, 1 insertion(+)
diff --git a/m4/curl-wolfssl.m4 b/m4/curl-wolfssl.m4
index 1f732e348ac2..9d6f561d803a 100644
--- a/m4/curl-wolfssl.m4
+++ b/m4/curl-wolfssl.m4
@@ -95,6 +95,7 @@ if test "x$OPT_WOLFSSL" != xno; then
They are set up properly later if it is detected. */
#undef SIZEOF_LONG
#undef SIZEOF_LONG_LONG
+#include <wolfssl/options.h>
#include <wolfssl/ssl.h>
]],[[
return wolfSSL_Init();