Skip to content

Commit

Permalink
merged nginx-1.8.1: fixed coding style in ngx_event_openssl.c
Browse files Browse the repository at this point in the history
  • Loading branch information
chobits committed Nov 30, 2016
1 parent 6b8a7fa commit 2981f78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
8 changes: 3 additions & 5 deletions src/event/ngx_event_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ typedef struct {
} ngx_openssl_conf_t;


typedef int (ngx_ssl_read_bio_handler_pt)(char *, int, int, void *);


static int ngx_ssl_password_callback(char *buf, int size, int rwflag,
void *userdata);
static int ngx_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store);
Expand Down Expand Up @@ -682,7 +679,7 @@ ngx_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store)

ngx_log_debug5(NGX_LOG_DEBUG_EVENT, c->log, 0,
"verify:%d, error:%d, depth:%d, "
"subject:\"%s\", issuer: \"%s\"",
"subject:\"%s\", issuer:\"%s\"",
ok, err, depth, subject, issuer);

if (sname) {
Expand Down Expand Up @@ -3283,7 +3280,8 @@ ngx_ssl_get_certificate(ngx_connection_t *c, ngx_pool_t *pool, ngx_str_t *s)
}

return NGX_OK;
}
}


ngx_int_t
ngx_ssl_get_subject_dn(ngx_connection_t *c, ngx_pool_t *pool, ngx_str_t *s)
Expand Down
13 changes: 0 additions & 13 deletions src/event/ngx_event_openssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ typedef struct {
unsigned handshake_buffer_set:1;
} ngx_ssl_connection_t;

typedef struct {
ngx_ssl_t *ssl;
ngx_str_t *server_name;
ngx_str_t *type;
ngx_str_t *encrypt;
} ngx_http_ssl_pphrase_dialog_conf_t;

#define NGX_SSL_NO_SCACHE -2
#define NGX_SSL_NONE_SCACHE -3
Expand Down Expand Up @@ -218,12 +212,5 @@ extern int ngx_ssl_session_ticket_keys_index;
extern int ngx_ssl_certificate_index;
extern int ngx_ssl_stapling_index;

#if (OPENSSL_VERSION_NUMBER < 0x00904000)
#define ngx_ssl_pem_read_bio_x509(b, x, cb, arg) \
PEM_read_bio_X509(b, x, cb)
#else
#define ngx_ssl_pem_read_bio_x509(b, x, cb, arg) \
PEM_read_bio_X509(b, x, cb, arg)
#endif

#endif /* _NGX_EVENT_OPENSSL_H_INCLUDED_ */

0 comments on commit 2981f78

Please sign in to comment.