Browse Source

[md5] fix md5 includes if openssl is not available (#2269)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2790 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.29
Stefan Bühler 11 years ago
parent
commit
c66d21bc2b
  1. 6
      src/http_auth_digest.c
  2. 6
      src/mod_cml_funcs.c
  3. 6
      src/mod_cml_lua.c
  4. 6
      src/mod_secure_download.c
  5. 6
      src/mod_usertrack.c

6
src/http_auth_digest.c

@ -6,6 +6,12 @@
#ifndef USE_OPENSSL
# include "md5.h"
typedef li_MD5_CTX MD5_CTX;
#define MD5_Init li_MD5_Init
#define MD5_Update li_MD5_Update
#define MD5_Final li_MD5_Final
#endif
void CvtHex(IN HASH Bin, OUT HASHHEX Hex) {

6
src/mod_cml_funcs.c

@ -21,6 +21,12 @@
# include <openssl/md5.h>
#else
# include "md5.h"
typedef li_MD5_CTX MD5_CTX;
#define MD5_Init li_MD5_Init
#define MD5_Update li_MD5_Update
#define MD5_Final li_MD5_Final
#endif
#define HASHLEN 16

6
src/mod_cml_lua.c

@ -15,6 +15,12 @@
# include <openssl/md5.h>
#else
# include "md5.h"
typedef li_MD5_CTX MD5_CTX;
#define MD5_Init li_MD5_Init
#define MD5_Update li_MD5_Update
#define MD5_Final li_MD5_Final
#endif
#define HASHLEN 16

6
src/mod_secure_download.c

@ -12,6 +12,12 @@
# include <openssl/md5.h>
#else
# include "md5.h"
typedef li_MD5_CTX MD5_CTX;
#define MD5_Init li_MD5_Init
#define MD5_Update li_MD5_Update
#define MD5_Final li_MD5_Final
#endif
#define HASHLEN 16

6
src/mod_usertrack.c

@ -12,6 +12,12 @@
# include <openssl/md5.h>
#else
# include "md5.h"
typedef li_MD5_CTX MD5_CTX;
#define MD5_Init li_MD5_Init
#define MD5_Update li_MD5_Update
#define MD5_Final li_MD5_Final
#endif
/* plugin config for all request/connections */

Loading…
Cancel
Save