mirror of
https://github.com/nginx/nginx.git
synced 2024-12-03 04:39:00 +08:00
Style: remove unnecessary references to HTTP from non-HTTP modules.
No functional changes. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
This commit is contained in:
parent
4fd486e68c
commit
c3d20f52d0
@ -5,8 +5,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef _NGX_HTTP_CONF_FILE_H_INCLUDED_
|
#ifndef _NGX_CONF_FILE_H_INCLUDED_
|
||||||
#define _NGX_HTTP_CONF_FILE_H_INCLUDED_
|
#define _NGX_CONF_FILE_H_INCLUDED_
|
||||||
|
|
||||||
|
|
||||||
#include <ngx_config.h>
|
#include <ngx_config.h>
|
||||||
@ -337,4 +337,4 @@ extern ngx_uint_t ngx_max_module;
|
|||||||
extern ngx_module_t *ngx_modules[];
|
extern ngx_module_t *ngx_modules[];
|
||||||
|
|
||||||
|
|
||||||
#endif /* _NGX_HTTP_CONF_FILE_H_INCLUDED_ */
|
#endif /* _NGX_CONF_FILE_H_INCLUDED_ */
|
||||||
|
@ -15,7 +15,7 @@ typedef struct {
|
|||||||
} ngx_openssl_conf_t;
|
} ngx_openssl_conf_t;
|
||||||
|
|
||||||
|
|
||||||
static int ngx_http_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store);
|
static int ngx_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store);
|
||||||
static void ngx_ssl_info_callback(const ngx_ssl_conn_t *ssl_conn, int where,
|
static void ngx_ssl_info_callback(const ngx_ssl_conn_t *ssl_conn, int where,
|
||||||
int ret);
|
int ret);
|
||||||
static void ngx_ssl_handshake_handler(ngx_event_t *ev);
|
static void ngx_ssl_handshake_handler(ngx_event_t *ev);
|
||||||
@ -342,7 +342,7 @@ ngx_ssl_client_certificate(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_str_t *cert,
|
|||||||
{
|
{
|
||||||
STACK_OF(X509_NAME) *list;
|
STACK_OF(X509_NAME) *list;
|
||||||
|
|
||||||
SSL_CTX_set_verify(ssl->ctx, SSL_VERIFY_PEER, ngx_http_ssl_verify_callback);
|
SSL_CTX_set_verify(ssl->ctx, SSL_VERIFY_PEER, ngx_ssl_verify_callback);
|
||||||
|
|
||||||
SSL_CTX_set_verify_depth(ssl->ctx, depth);
|
SSL_CTX_set_verify_depth(ssl->ctx, depth);
|
||||||
|
|
||||||
@ -457,7 +457,7 @@ ngx_ssl_crl(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_str_t *crl)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ngx_http_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store)
|
ngx_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store)
|
||||||
{
|
{
|
||||||
#if (NGX_DEBUG)
|
#if (NGX_DEBUG)
|
||||||
char *subject, *issuer;
|
char *subject, *issuer;
|
||||||
|
@ -25,7 +25,7 @@ static char *ngx_mail_ssl_session_cache(ngx_conf_t *cf, ngx_command_t *cmd,
|
|||||||
void *conf);
|
void *conf);
|
||||||
|
|
||||||
|
|
||||||
static ngx_conf_enum_t ngx_http_starttls_state[] = {
|
static ngx_conf_enum_t ngx_mail_starttls_state[] = {
|
||||||
{ ngx_string("off"), NGX_MAIL_STARTTLS_OFF },
|
{ ngx_string("off"), NGX_MAIL_STARTTLS_OFF },
|
||||||
{ ngx_string("on"), NGX_MAIL_STARTTLS_ON },
|
{ ngx_string("on"), NGX_MAIL_STARTTLS_ON },
|
||||||
{ ngx_string("only"), NGX_MAIL_STARTTLS_ONLY },
|
{ ngx_string("only"), NGX_MAIL_STARTTLS_ONLY },
|
||||||
@ -58,7 +58,7 @@ static ngx_command_t ngx_mail_ssl_commands[] = {
|
|||||||
ngx_mail_ssl_starttls,
|
ngx_mail_ssl_starttls,
|
||||||
NGX_MAIL_SRV_CONF_OFFSET,
|
NGX_MAIL_SRV_CONF_OFFSET,
|
||||||
offsetof(ngx_mail_ssl_conf_t, starttls),
|
offsetof(ngx_mail_ssl_conf_t, starttls),
|
||||||
ngx_http_starttls_state },
|
ngx_mail_starttls_state },
|
||||||
|
|
||||||
{ ngx_string("ssl_certificate"),
|
{ ngx_string("ssl_certificate"),
|
||||||
NGX_MAIL_MAIN_CONF|NGX_MAIL_SRV_CONF|NGX_CONF_TAKE1,
|
NGX_MAIL_MAIN_CONF|NGX_MAIL_SRV_CONF|NGX_CONF_TAKE1,
|
||||||
|
@ -181,7 +181,7 @@ ngx_linux_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
|
|||||||
} else {
|
} else {
|
||||||
c->tcp_nodelay = NGX_TCP_NODELAY_UNSET;
|
c->tcp_nodelay = NGX_TCP_NODELAY_UNSET;
|
||||||
|
|
||||||
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
|
ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
||||||
"no tcp_nodelay");
|
"no tcp_nodelay");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user