mirror of
https://github.com/nginx/nginx.git
synced 2024-11-24 04:49:01 +08:00
get certificate info only for debug build
This commit is contained in:
parent
58d3821cf0
commit
396abff226
@ -285,6 +285,7 @@ ngx_ssl_client_certificate(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_str_t *cert,
|
||||
static int
|
||||
ngx_http_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store)
|
||||
{
|
||||
#if (NGX_DEBUG)
|
||||
char *subject, *issuer;
|
||||
int err, depth;
|
||||
X509 *cert;
|
||||
@ -319,6 +320,7 @@ ngx_http_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store)
|
||||
if (iname) {
|
||||
OPENSSL_free(issuer);
|
||||
}
|
||||
#endif
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user