mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +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
|
static int
|
||||||
ngx_http_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store)
|
ngx_http_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store)
|
||||||
{
|
{
|
||||||
|
#if (NGX_DEBUG)
|
||||||
char *subject, *issuer;
|
char *subject, *issuer;
|
||||||
int err, depth;
|
int err, depth;
|
||||||
X509 *cert;
|
X509 *cert;
|
||||||
@ -319,6 +320,7 @@ ngx_http_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store)
|
|||||||
if (iname) {
|
if (iname) {
|
||||||
OPENSSL_free(issuer);
|
OPENSSL_free(issuer);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user