Mercurial > hg > nginx
comparison src/http/modules/ngx_http_ssl_module.c @ 970:35f98a8e275f
style fix
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 02 Jan 2007 23:41:54 +0000 |
parents | 065b39794fff |
children | 948acd940145 |
comparison
equal
deleted
inserted
replaced
969:065b39794fff | 970:35f98a8e275f |
---|---|
341 | 341 |
342 cln->handler = ngx_ssl_cleanup_ctx; | 342 cln->handler = ngx_ssl_cleanup_ctx; |
343 cln->data = &conf->ssl; | 343 cln->data = &conf->ssl; |
344 | 344 |
345 if (ngx_ssl_certificate(cf, &conf->ssl, &conf->certificate, | 345 if (ngx_ssl_certificate(cf, &conf->ssl, &conf->certificate, |
346 &conf->certificate_key) != NGX_OK) | 346 &conf->certificate_key) |
347 != NGX_OK) | |
347 { | 348 { |
348 return NGX_CONF_ERROR; | 349 return NGX_CONF_ERROR; |
349 } | 350 } |
350 | 351 |
351 if (SSL_CTX_set_cipher_list(conf->ssl.ctx, | 352 if (SSL_CTX_set_cipher_list(conf->ssl.ctx, |
357 &conf->ciphers); | 358 &conf->ciphers); |
358 } | 359 } |
359 | 360 |
360 if (conf->verify) { | 361 if (conf->verify) { |
361 if (ngx_ssl_client_certificate(cf, &conf->ssl, | 362 if (ngx_ssl_client_certificate(cf, &conf->ssl, |
362 &conf->client_certificate, conf->verify_depth) | 363 &conf->client_certificate, |
364 conf->verify_depth) | |
363 != NGX_OK) | 365 != NGX_OK) |
364 { | 366 { |
365 return NGX_CONF_ERROR; | 367 return NGX_CONF_ERROR; |
366 } | 368 } |
367 } | 369 } |