Mercurial > hg > nginx-quic
comparison src/event/ngx_event_openssl.c @ 1977:40c9cb8576bb
get certificate info only for debug build
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 28 Apr 2008 08:52:32 +0000 |
parents | c4d8867f0162 |
children | 12b3ad3353f9 |
comparison
equal
deleted
inserted
replaced
1976:c4d8867f0162 | 1977:40c9cb8576bb |
---|---|
283 | 283 |
284 | 284 |
285 static int | 285 static int |
286 ngx_http_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store) | 286 ngx_http_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store) |
287 { | 287 { |
288 #if (NGX_DEBUG) | |
288 char *subject, *issuer; | 289 char *subject, *issuer; |
289 int err, depth; | 290 int err, depth; |
290 X509 *cert; | 291 X509 *cert; |
291 X509_NAME *sname, *iname; | 292 X509_NAME *sname, *iname; |
292 ngx_connection_t *c; | 293 ngx_connection_t *c; |
317 } | 318 } |
318 | 319 |
319 if (iname) { | 320 if (iname) { |
320 OPENSSL_free(issuer); | 321 OPENSSL_free(issuer); |
321 } | 322 } |
323 #endif | |
322 | 324 |
323 return 1; | 325 return 1; |
324 } | 326 } |
325 | 327 |
326 | 328 |