coova-chilli: Fix WolfSSL support
authorFederico Capoano <f.capoano@openwisp.io>
Thu, 23 Jan 2025 20:58:34 +0000 (17:58 -0300)
committerRosen Penev <rosenp@gmail.com>
Fri, 24 Jan 2025 23:27:31 +0000 (15:27 -0800)
Signed-off-by: Federico Capoano <f.capoano@openwisp.io>
net/coova-chilli/Makefile
net/coova-chilli/patches/030-cyassl-renamed-to-wolfssl.patch [new file with mode: 0644]

index fe65b29a5b829fa454a48d50ba1adc268226c587..b1a8f38d2f14cadafcaff0aa30e00e2c4ce9e9a6 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=coova-chilli
 PKG_VERSION:=1.6
-PKG_RELEASE:=11
+PKG_RELEASE:=12
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/coova/coova-chilli/tar.gz/$(PKG_VERSION)?
diff --git a/net/coova-chilli/patches/030-cyassl-renamed-to-wolfssl.patch b/net/coova-chilli/patches/030-cyassl-renamed-to-wolfssl.patch
new file mode 100644 (file)
index 0000000..3b60475
--- /dev/null
@@ -0,0 +1,34 @@
+--- a/src/md5.h
++++ b/src/md5.h
+@@ -29,7 +29,7 @@
+ #define MD5Final MD5_Final
+ #elif HAVE_CYASSL
+-#include <cyassl/openssl/md5.h>
++#include <wolfssl/openssl/md5.h>
+ #define MD5Init MD5_Init
+ #define MD5Update MD5_Update
+--- a/src/ssl.h
++++ b/src/ssl.h
+@@ -49,13 +49,13 @@ typedef struct {
+ #include <string.h>
+ #define OPENSSL_NO_ENGINE
+-#include <cyassl/options.h>
+-#include <cyassl/ssl.h>
+-#include <cyassl/openssl/bio.h>
+-#include <cyassl/openssl/crypto.h>
+-#include <cyassl/openssl/x509.h>
+-#include <cyassl/openssl/ssl.h>
+-#include <cyassl/openssl/pem.h>
++#include <wolfssl/options.h>
++#include <wolfssl/ssl.h>
++#include <wolfssl/openssl/bio.h>
++#include <wolfssl/openssl/crypto.h>
++#include <wolfssl/openssl/x509.h>
++#include <wolfssl/openssl/ssl.h>
++#include <wolfssl/openssl/pem.h>
+ #endif
+ #define OPENSSL_TMPKEY_MAX      4