First Commit
[librecmc/package-feed.git] / net / coova-chilli / patches / 300-fix-compile-with-cyassl.patch
1 --- a/src/md5.h
2 +++ b/src/md5.h
3 @@ -28,6 +28,14 @@
4  #define MD5Update MD5_Update
5  #define MD5Final MD5_Final
6  
7 +#elif HAVE_CYASSL
8 +#include <cyassl/openssl/md5.h>
9 +
10 +#define MD5Init MD5_Init
11 +#define MD5Update MD5_Update
12 +#define MD5Final MD5_Final
13 +
14 +typedef struct CYASSL_MD5_CTX MD5_CTX;
15  #else
16  
17  struct MD5Context {
18 --- a/src/md5.c
19 +++ b/src/md5.c
20 @@ -18,7 +18,7 @@
21  #include <string.h>            /* for memcpy() */
22  #include "md5.h"
23  
24 -#ifndef HAVE_OPENSSL
25 +#if !defined(HAVE_OPENSSL) && !defined(HAVE_CYASSL)
26  
27  void byteReverse(unsigned char *buf, size_t longs);
28