diff options
author | Jaehoon You <teslamint@gmail.com> | 2015-03-16 13:01:24 +0900 |
---|---|---|
committer | Jaehoon You <teslamint@gmail.com> | 2015-04-07 15:30:39 +0900 |
commit | 3e722343999382ff6ff7b6abe4a4f3c0b76a6fd9 (patch) | |
tree | 8a5c9e237fb3ac67e1ff03d96dff14fd48052b84 /net/coova-chilli/patches | |
parent | 16fa9c0ff62c089ca17a4ea649c42e260ca27427 (diff) |
coova-chilli: fix compile error with cyassl
Signed-off-by: Jaehoon You <teslamint@gmail.com>
Diffstat (limited to 'net/coova-chilli/patches')
-rw-r--r-- | net/coova-chilli/patches/300-fix-compile-with-cyassl.patch | 28 |
1 files changed, 28 insertions, 0 deletions
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 index 000000000..3b61d49ca --- /dev/null +++ b/net/coova-chilli/patches/300-fix-compile-with-cyassl.patch @@ -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); + |