File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 11USE_MD5=YES
22USE_SHA1=YES
3+ USE_OPENSSL=YES
34ngx_addon_name=ngx_http_upload_module
45HTTP_MODULES="$HTTP_MODULES ngx_http_upload_module"
56NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_upload_module.c"
Original file line number Diff line number Diff line change 88#include <ngx_http.h>
99#include <nginx.h>
1010
11+ #if nginx_version >= 1011002
12+
13+ #include <ngx_md5.h>
14+
15+ typedef ngx_md5_t MD5_CTX ;
16+
17+ #define MD5Init ngx_md5_init
18+ #define MD5Update ngx_md5_update
19+ #define MD5Final ngx_md5_final
20+
21+ #define MD5_DIGEST_LENGTH 16
22+
23+ #include <openssl/sha.h>
24+
25+ #else
26+
1127#if (NGX_HAVE_OPENSSL_MD5_H )
1228#include <openssl/md5.h>
1329#else
2642#include <sha.h>
2743#endif
2844
45+
46+ #endif
47+
2948#define MULTIPART_FORM_DATA_STRING "multipart/form-data"
3049#define BOUNDARY_STRING "boundary="
3150#define CONTENT_DISPOSITION_STRING "Content-Disposition:"
You can’t perform that action at this time.
0 commit comments