Mercurial > hg > nginx-vendor-current
comparison src/event/ngx_event_openssl.c @ 570:8246d8a2c2be NGINX_0_8_37
nginx 0.8.37
*) Feature: the ngx_http_split_clients_module.
*) Feature: the "map" directive supports keys more than 255 characters.
*) Bugfix: nginx ignored the "private" and "no-store" values in the
"Cache-Control" backend response header line.
*) Bugfix: a "stub" parameter of an "include" SSI directive was not
used, if empty response has 200 status code.
*) Bugfix: if a proxied or FastCGI request was internally redirected to
another proxied or FastCGI location, then a segmentation fault might
occur in a worker process; the bug had appeared in 0.8.33.
Thanks to Yichun Zhang.
*) Bugfix: IMAP connections may hang until they timed out while talking
to Zimbra server.
Thanks to Alan Batie.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 17 May 2010 00:00:00 +0400 |
parents | be4f34123024 |
children | 09d5f308901f |
comparison
equal
deleted
inserted
replaced
569:19b134bf21c0 | 570:8246d8a2c2be |
---|---|
2232 ngx_ssl_get_client_verify(ngx_connection_t *c, ngx_pool_t *pool, ngx_str_t *s) | 2232 ngx_ssl_get_client_verify(ngx_connection_t *c, ngx_pool_t *pool, ngx_str_t *s) |
2233 { | 2233 { |
2234 X509 *cert; | 2234 X509 *cert; |
2235 | 2235 |
2236 if (SSL_get_verify_result(c->ssl->connection) != X509_V_OK) { | 2236 if (SSL_get_verify_result(c->ssl->connection) != X509_V_OK) { |
2237 s->len = sizeof("FAILED") - 1; | 2237 ngx_str_set(s, "FAILED"); |
2238 s->data = (u_char *) "FAILED"; | |
2239 | |
2240 return NGX_OK; | 2238 return NGX_OK; |
2241 } | 2239 } |
2242 | 2240 |
2243 cert = SSL_get_peer_certificate(c->ssl->connection); | 2241 cert = SSL_get_peer_certificate(c->ssl->connection); |
2244 | 2242 |
2245 if (cert) { | 2243 if (cert) { |
2246 s->len = sizeof("SUCCESS") - 1; | 2244 ngx_str_set(s, "SUCCESS"); |
2247 s->data = (u_char *) "SUCCESS"; | |
2248 | 2245 |
2249 } else { | 2246 } else { |
2250 s->len = sizeof("NONE") - 1; | 2247 ngx_str_set(s, "NONE"); |
2251 s->data = (u_char *) "NONE"; | |
2252 } | 2248 } |
2253 | 2249 |
2254 X509_free(cert); | 2250 X509_free(cert); |
2255 | 2251 |
2256 return NGX_OK; | 2252 return NGX_OK; |