I think there is the point:<br><br>in ngx_crypt.c<br>ngx_int_t<br>ngx_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted)<br>{<br>    if (ngx_strncmp(salt, &quot;$apr1$&quot;, sizeof(&quot;$apr1$&quot;) - 1) == 0) {<br>
        return ngx_crypt_apr1(pool, key, salt, encrypted);<br>    } else if (ngx_strncmp(salt, &quot;{PLAIN}&quot;, sizeof(&quot;{PLAIN}&quot;) - 1) == 0) {<br>        return ngx_crypt_plain(pool, key, salt, encrypted);<br>
<br><span style="color: rgb(255, 0, 0);">#if (NGX_HAVE_SHA1)</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">    } else if (ngx_strncmp(salt, &quot;{SSHA}&quot;, sizeof(&quot;{SSHA}&quot;) - 1) == 0) {</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">        return ngx_crypt_ssha(pool, key, salt, encrypted);</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">#endif</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">    }</span><br style="color: rgb(255, 0, 0);"><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">    /* fallback to libc crypt() */</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">    return ngx_libc_crypt(pool, key, salt, encrypted);</span><br>}<br><br>and there is no <span style="color: rgb(255, 0, 0);">libc crypt <font color="#000000">in my system.<br><br>So , I think is a bug .<br>
</font></span><br><div class="gmail_quote">2011/5/26 Wendal Chen <span dir="ltr">&lt;<a href="mailto:wendal1985@gmail.com">wendal1985@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
It has a bug!<br><br>Build with :<br>./configure --without-http_auth_basic_module &amp;&amp; make<br><br>objs/src/core/ngx_crypt.o: In function `ngx_crypt&#39;:<br>ngx_crypt.c:(.text+0x7b): undefined reference to `ngx_libc_crypt&#39;<br>

collect2: ld returned 1 exit status<br>make[1]: *** [objs/nginx] Error 1<br>make[1]: Leaving directory `/root/nginx-1.0.3&#39;<br>make: *** [build] Error 2<br><br><br>But ok when:<br>./configure &amp;&amp; make<div><div>
</div><div class="h5"><br><br><div class="gmail_quote">
2011/5/25 Igor Sysoev <span dir="ltr">&lt;<a href="mailto:igor@sysoev.ru" target="_blank">igor@sysoev.ru</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Changes with nginx 1.0.3                                         25 May 2011<br>

<br>
    *) Feature: the &quot;auth_basic_user_file&quot; directive supports &quot;$apr1&quot;,<br>
       &quot;{PLAIN}&quot;, and &quot;{SSHA}&quot; password encryption methods.<br>
       Thanks to Maxim Dounin.<br>
<br>
    *) Feature: the &quot;geoip_org&quot; directive and $geoip_org variable.<br>
       Thanks to Alexander Uskov, Arnaud Granal, and Denis F. Latypoff.<br>
<br>
    *) Feature: ngx_http_geo_module and ngx_http_geoip_module support IPv4<br>
       addresses mapped to IPv6 addresses.<br>
<br>
    *) Bugfix: a segmentation fault occurred in a worker process during<br>
       testing IPv4 address mapped to IPv6 address, if access or deny rules<br>
       were defined only for IPv6; the bug had appeared in 0.8.22.<br>
<br>
    *) Bugfix: a cached reponse may be broken if proxy/fastcgi/scgi/<br>
       uwsgi_cache_bypass and proxy/fastcgi/scgi/uwsgi_no_cache directive<br>
       values were different; the bug had appeared in 0.8.46.<br>
<font color="#888888"><br>
<br>
--<br>
Igor Sysoev<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</font></blockquote></div><br><br clear="all"><br></div></div>-- <br><font color="#888888">Wendal Chen<br><a href="http://t.sina.com.cn/1068040557?s=6uyXnP" target="_blank"><img alt="" src="http://service.t.sina.com.cn/widget/qmd/1068040557/e0a18d12/3.png?rnd=1302310535458" border="0"></a><br>

<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Wendal Chen<br><a href="http://t.sina.com.cn/1068040557?s=6uyXnP" target="_blank"><img alt="" src="http://service.t.sina.com.cn/widget/qmd/1068040557/e0a18d12/3.png?rnd=1302310535458" border="0"></a><br>
<br>