Skip to content

Commit b49cd10

Browse files
committed
bugfix: ngx.sha1_bin() was always disabled with nginx 1.11.2+ due to incompatible changes in nginx 1.11.2+.
1 parent 52d5dd5 commit b49cd10

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎src/ngx_stream_lua_common.h‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@
3939
#endif
4040

4141

42+
#ifndef NGX_HAVE_SHA1
43+
# if (nginx_version >= 1011002)
44+
# define NGX_HAVE_SHA1 1
45+
# endif
46+
#endif
47+
48+
4249
#ifndef MD5_DIGEST_LENGTH
4350
#define MD5_DIGEST_LENGTH 16
4451
#endif

0 commit comments

Comments
 (0)