Commit e6c441c5618c0a9307ceb43479edf30aa1aebf80
1 parent
1217cebc
Exists in
master
and in
3 other branches
Only show CRL data when enabled SSL trace.
Showing
1 changed file
with
9 additions
and
6 deletions
Show diff stats
src/lib3270/ssl/windows/getcrl.c
| @@ -395,12 +395,15 @@ X509_CRL * lib3270_get_X509_CRL(H3270 *hSession, SSL_ERROR_MESSAGE * message) | @@ -395,12 +395,15 @@ X509_CRL * lib3270_get_X509_CRL(H3270 *hSession, SSL_ERROR_MESSAGE * message) | ||
| 395 | 395 | ||
| 396 | length = ix; | 396 | length = ix; |
| 397 | 397 | ||
| 398 | - lib3270_trace_data( | ||
| 399 | - hSession, | ||
| 400 | - "CRL Data received from LDAP server", | ||
| 401 | - (const char *) ptr, | ||
| 402 | - length | ||
| 403 | - ); | 398 | + if(lib3270_get_toggle(hSession,LIB3270_TOGGLE_SSL_TRACE)) |
| 399 | + { | ||
| 400 | + lib3270_trace_data( | ||
| 401 | + hSession, | ||
| 402 | + "CRL Data received from LDAP server", | ||
| 403 | + (const char *) ptr, | ||
| 404 | + length | ||
| 405 | + ); | ||
| 406 | + } | ||
| 404 | 407 | ||
| 405 | if(!d2i_X509_CRL(&crl, (const unsigned char **) &ptr, length)) | 408 | if(!d2i_X509_CRL(&crl, (const unsigned char **) &ptr, length)) |
| 406 | { | 409 | { |