Mercurial > hg > nginx
comparison src/stream/ngx_stream_ssl_module.c @ 7940:46a02ed7c966
Style: added missing "static" specifiers.
Mostly found by gcc -Wtraditional, per "non-static declaration of ...
follows static declaration [-Wtraditional]" warnings.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 21 Oct 2021 18:43:13 +0300 |
parents | b9e02e9b2f1d |
children | 3443c02ca1d1 61d0fa67b55e |
comparison
equal
deleted
inserted
replaced
7939:9e7de0547f09 | 7940:46a02ed7c966 |
---|---|
21 static ngx_int_t ngx_stream_ssl_handler(ngx_stream_session_t *s); | 21 static ngx_int_t ngx_stream_ssl_handler(ngx_stream_session_t *s); |
22 static ngx_int_t ngx_stream_ssl_init_connection(ngx_ssl_t *ssl, | 22 static ngx_int_t ngx_stream_ssl_init_connection(ngx_ssl_t *ssl, |
23 ngx_connection_t *c); | 23 ngx_connection_t *c); |
24 static void ngx_stream_ssl_handshake_handler(ngx_connection_t *c); | 24 static void ngx_stream_ssl_handshake_handler(ngx_connection_t *c); |
25 #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME | 25 #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME |
26 int ngx_stream_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad, void *arg); | 26 static int ngx_stream_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad, |
27 void *arg); | |
27 #endif | 28 #endif |
28 #ifdef TLSEXT_TYPE_application_layer_protocol_negotiation | 29 #ifdef TLSEXT_TYPE_application_layer_protocol_negotiation |
29 static int ngx_stream_ssl_alpn_select(ngx_ssl_conn_t *ssl_conn, | 30 static int ngx_stream_ssl_alpn_select(ngx_ssl_conn_t *ssl_conn, |
30 const unsigned char **out, unsigned char *outlen, | 31 const unsigned char **out, unsigned char *outlen, |
31 const unsigned char *in, unsigned int inlen, void *arg); | 32 const unsigned char *in, unsigned int inlen, void *arg); |
449 } | 450 } |
450 | 451 |
451 | 452 |
452 #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME | 453 #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME |
453 | 454 |
454 int | 455 static int |
455 ngx_stream_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad, void *arg) | 456 ngx_stream_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad, void *arg) |
456 { | 457 { |
457 return SSL_TLSEXT_ERR_OK; | 458 return SSL_TLSEXT_ERR_OK; |
458 } | 459 } |
459 | 460 |
500 #endif | 501 #endif |
501 | 502 |
502 | 503 |
503 #ifdef SSL_R_CERT_CB_ERROR | 504 #ifdef SSL_R_CERT_CB_ERROR |
504 | 505 |
505 int | 506 static int |
506 ngx_stream_ssl_certificate(ngx_ssl_conn_t *ssl_conn, void *arg) | 507 ngx_stream_ssl_certificate(ngx_ssl_conn_t *ssl_conn, void *arg) |
507 { | 508 { |
508 ngx_str_t cert, key; | 509 ngx_str_t cert, key; |
509 ngx_uint_t i, nelts; | 510 ngx_uint_t i, nelts; |
510 ngx_connection_t *c; | 511 ngx_connection_t *c; |