Commit ee2430cdc2a98583625831d8756b70266fa6d1ea

Authored by Perry Werneck
1 parent 76036c22

Melhorando mensagens de segurança.

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
src/lib3270/ssl.c
@@ -132,7 +132,11 @@ int ssl_negotiate(H3270 *hSession) @@ -132,7 +132,11 @@ int ssl_negotiate(H3270 *hSession)
132 { 132 {
133 case X509_V_OK: 133 case X509_V_OK:
134 peer = SSL_get_peer_certificate(hSession->ssl_con); 134 peer = SSL_get_peer_certificate(hSession->ssl_con);
135 - trace_dsn(hSession,"TLS/SSL negotiated connection complete. Peer certificate %s presented.\n", peer ? "was" : "was not"); 135 +#if defined(SSL_ENABLE_CRL_CHECK)
  136 + trace_dsn(hSession,"TLS/SSL negotiated connection complete with CRL validation. Peer certificate %s presented.\n", peer ? "was" : "was not");
  137 +#else
  138 + trace_dsn(hSession,"TLS/SSL negotiated connection complete without CRL validation. Peer certificate %s presented.\n", peer ? "was" : "was not");
  139 +#endif // SSL_ENABLE_CRL_CHECK
136 break; 140 break;
137 141
138 case X509_V_ERR_UNABLE_TO_GET_CRL: 142 case X509_V_ERR_UNABLE_TO_GET_CRL:
@@ -142,7 +146,7 @@ int ssl_negotiate(H3270 *hSession) @@ -142,7 +146,7 @@ int ssl_negotiate(H3270 *hSession)
142 LIB3270_NOTIFY_ERROR, 146 LIB3270_NOTIFY_ERROR,
143 _( "SSL error" ), 147 _( "SSL error" ),
144 _( "Unable to get certificate CRL." ), 148 _( "Unable to get certificate CRL." ),
145 - _( "The CRL of a certificate could not be found." ) 149 + _( "The Certificate revocation list (CRL) of a certificate could not be found." )
146 ); 150 );
147 return -1; 151 return -1;
148 152