Welcome! Log In Create A New Profile

Advanced

Re: nginx-1.0.3

Wendal Chen
May 25, 2011 10:48PM
I think there is the point:

in ngx_crypt.c
ngx_int_t
ngx_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted)
{
if (ngx_strncmp(salt, "$apr1$", sizeof("$apr1$") - 1) == 0) {
return ngx_crypt_apr1(pool, key, salt, encrypted);
} else if (ngx_strncmp(salt, "{PLAIN}", sizeof("{PLAIN}") - 1) == 0) {
return ngx_crypt_plain(pool, key, salt, encrypted);

#if (NGX_HAVE_SHA1)
} else if (ngx_strncmp(salt, "{SSHA}", sizeof("{SSHA}") - 1) == 0) {
return ngx_crypt_ssha(pool, key, salt, encrypted);
#endif
}

/* fallback to libc crypt() */
return ngx_libc_crypt(pool, key, salt, encrypted);
}

and there is no libc crypt in my system.

So , I think is a bug .

2011/5/26 Wendal Chen <wendal1985@gmail.com>

> It has a bug!
>
> Build with :
> ./configure --without-http_auth_basic_module && make
>
> objs/src/core/ngx_crypt.o: In function `ngx_crypt':
> ngx_crypt.c:(.text+0x7b): undefined reference to `ngx_libc_crypt'
> collect2: ld returned 1 exit status
> make[1]: *** [objs/nginx] Error 1
> make[1]: Leaving directory `/root/nginx-1.0.3'
> make: *** [build] Error 2
>
>
> But ok when:
> ./configure && make
>
>
> 2011/5/25 Igor Sysoev <igor@sysoev.ru>
>
>> Changes with nginx 1.0.3 25 May
>> 2011
>>
>> *) Feature: the "auth_basic_user_file" directive supports "$apr1",
>> "{PLAIN}", and "{SSHA}" password encryption methods.
>> Thanks to Maxim Dounin.
>>
>> *) Feature: the "geoip_org" directive and $geoip_org variable.
>> Thanks to Alexander Uskov, Arnaud Granal, and Denis F. Latypoff.
>>
>> *) Feature: ngx_http_geo_module and ngx_http_geoip_module support IPv4
>> addresses mapped to IPv6 addresses.
>>
>> *) Bugfix: a segmentation fault occurred in a worker process during
>> testing IPv4 address mapped to IPv6 address, if access or deny rules
>> were defined only for IPv6; the bug had appeared in 0.8.22.
>>
>> *) Bugfix: a cached reponse may be broken if proxy/fastcgi/scgi/
>> uwsgi_cache_bypass and proxy/fastcgi/scgi/uwsgi_no_cache directive
>> values were different; the bug had appeared in 0.8.46.
>>
>>
>> --
>> Igor Sysoev
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://nginx.org/mailman/listinfo/nginx
>>
>
>
>
> --
> Wendal Chen
> http://t.sina.com.cn/1068040557?s=6uyXnP
>
>


--
Wendal Chen
http://t.sina.com.cn/1068040557?s=6uyXnP
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx-1.0.3

Igor Sysoev May 25, 2011 11:26AM

Re: nginx-1.0.3

Wendal Chen May 25, 2011 10:10PM

Re: nginx-1.0.3

Wendal Chen May 25, 2011 10:48PM

Re: nginx-1.0.3

Maxim Dounin May 26, 2011 03:48AM

Re: nginx-1.0.3

umesh chaudhari March 01, 2012 07:34AM

Re: nginx-1.0.3

umesh chaudhari March 01, 2012 07:34AM

Re: nginx-1.0.3

Maxim Dounin March 01, 2012 07:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready