coova-chilli: fix compile error with cyassl
authorJaehoon You <redacted>
Mon, 16 Mar 2015 04:01:24 +0000 (13:01 +0900)
committerJaehoon You <redacted>
Tue, 7 Apr 2015 06:30:39 +0000 (15:30 +0900)
Signed-off-by: Jaehoon You <redacted>
net/coova-chilli/patches/300-fix-compile-with-cyassl.patch [new file with mode: 0644]

diff --git a/net/coova-chilli/patches/300-fix-compile-with-cyassl.patch b/net/coova-chilli/patches/300-fix-compile-with-cyassl.patch
new file mode 100644 (file)
index 0000000..3b61d49
--- /dev/null
@@ -0,0 +1,28 @@
+--- a/src/md5.h
++++ b/src/md5.h
+@@ -28,6 +28,14 @@
+ #define MD5Update MD5_Update
+ #define MD5Final MD5_Final
++#elif HAVE_CYASSL
++#include <cyassl/openssl/md5.h>
++
++#define MD5Init MD5_Init
++#define MD5Update MD5_Update
++#define MD5Final MD5_Final
++
++typedef struct CYASSL_MD5_CTX MD5_CTX;
+ #else
+ struct MD5Context {
+--- a/src/md5.c
++++ b/src/md5.c
+@@ -18,7 +18,7 @@
+ #include <string.h>           /* for memcpy() */
+ #include "md5.h"
+-#ifndef HAVE_OPENSSL
++#if !defined(HAVE_OPENSSL) && !defined(HAVE_CYASSL)
+ void byteReverse(unsigned char *buf, size_t longs);
git clone https://git.99rst.org/PROJECT