Mercurial > hg > nginx
comparison auto/lib/md5/conf @ 3895:b659514a3948
an internal MD5 implemenation
patch by Maxim Dounin
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 15 Apr 2011 15:58:06 +0000 |
parents | 4d47a0658e7d |
children | ec8dfac68f41 |
comparison
equal
deleted
inserted
replaced
3894:4d4b5770616f | 3895:b659514a3948 |
---|---|
12 else | 12 else |
13 # rsaref md5 | 13 # rsaref md5 |
14 OPENSSL_MD5=NO | 14 OPENSSL_MD5=NO |
15 fi | 15 fi |
16 | 16 |
17 have=NGX_HAVE_MD5 . auto/have | |
17 CORE_INCS="$CORE_INCS $MD5" | 18 CORE_INCS="$CORE_INCS $MD5" |
18 | 19 |
19 case "$NGX_CC_NAME" in | 20 case "$NGX_CC_NAME" in |
20 | 21 |
21 msvc* | owc* | bcc) | 22 msvc* | owc* | bcc) |
49 MD5=NO | 50 MD5=NO |
50 | 51 |
51 # FreeBSD, Solaris 10 | 52 # FreeBSD, Solaris 10 |
52 | 53 |
53 ngx_feature="system md library" | 54 ngx_feature="system md library" |
54 ngx_feature_name= | 55 ngx_feature_name=NGX_HAVE_MD5 |
55 ngx_feature_run=no | 56 ngx_feature_run=no |
56 ngx_feature_incs="#include <md5.h>" | 57 ngx_feature_incs="#include <md5.h>" |
57 ngx_feature_path= | 58 ngx_feature_path= |
58 ngx_feature_libs="-lmd" | 59 ngx_feature_libs="-lmd" |
59 ngx_feature_test="MD5_CTX md5; MD5Init(&md5)" | 60 ngx_feature_test="MD5_CTX md5; MD5Init(&md5)" |
95 MD5=YES | 96 MD5=YES |
96 MD5_LIB=$ngx_md5_lib | 97 MD5_LIB=$ngx_md5_lib |
97 fi | 98 fi |
98 fi | 99 fi |
99 | 100 |
100 if [ $MD5 != YES ]; then | |
101 cat << END | |
102 | |
103 $0: error: the HTTP cache module requires md5 functions | |
104 from OpenSSL library. You can either disable the module by using | |
105 --without-http-cache option, or install the OpenSSL library into the system, | |
106 or build the OpenSSL library statically from the source with nginx by using | |
107 --with-http_ssl_module --with-openssl=<path> options. | |
108 | |
109 END | |
110 exit 1 | |
111 fi | |
112 | |
113 fi | 101 fi |