Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 2123:9697407e9ecb
*) ssl_verify_client ask
*) test ssl_client_certificate for ssl_verify_client
*) $ssl_client_cert adds TAB before each line except first one
*) $ssl_client_raw_cert contains certificate as is
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 29 Jul 2008 14:29:02 +0000 |
parents | 479440385e35 |
children | 8c6521eedf84 |
comparison
equal
deleted
inserted
replaced
2122:d090fa684433 | 2123:9697407e9ecb |
---|---|
1444 X509 *cert; | 1444 X509 *cert; |
1445 ngx_http_ssl_srv_conf_t *sscf; | 1445 ngx_http_ssl_srv_conf_t *sscf; |
1446 | 1446 |
1447 sscf = ngx_http_get_module_srv_conf(r, ngx_http_ssl_module); | 1447 sscf = ngx_http_get_module_srv_conf(r, ngx_http_ssl_module); |
1448 | 1448 |
1449 if (sscf->verify) { | 1449 if (sscf->verify == 1) { |
1450 rc = SSL_get_verify_result(c->ssl->connection); | 1450 rc = SSL_get_verify_result(c->ssl->connection); |
1451 | 1451 |
1452 if (rc != X509_V_OK) { | 1452 if (rc != X509_V_OK) { |
1453 ngx_log_error(NGX_LOG_INFO, c->log, 0, | 1453 ngx_log_error(NGX_LOG_INFO, c->log, 0, |
1454 "client SSL certificate verify error: (%l:%s)", | 1454 "client SSL certificate verify error: (%l:%s)", |