Branch: Tag:

2014-05-19

2014-05-19 21:18:43 by Martin Nilsson <nilsson@opera.com>

Improved alert debug messages.

510:    }    if (level == ALERT_fatal)    { -  SSL3_DEBUG_MSG("SSL.Connection: Fatal alert %d\n", description); +  SSL3_DEBUG_MSG("SSL.Connection: Fatal alert %O\n", +  ALERT_descriptions[description]);    return -1;    }    if (description == ALERT_close_notify)    { -  SSL3_DEBUG_MSG("SSL.Connection: Close notify alert %d\n", description); +  SSL3_DEBUG_MSG("SSL.Connection: %O\n", ALERT_descriptions[description]);    closing |= 2;    return 1;    }    if (description == ALERT_no_certificate)    { -  SSL3_DEBUG_MSG("SSL.Connection: No certificate alert %d\n", description); +  SSL3_DEBUG_MSG("SSL.Connection: %O\n", ALERT_descriptions[description]);       if ((certificate_state == CERT_requested) && (context->auth_level == AUTHLEVEL_ask))    {
538: Inside #if defined(SSL3_DEBUG)
   }   #ifdef SSL3_DEBUG    else -  werror("SSL.Connection: Received warning alert %d\n", description); +  werror("SSL.Connection: Received warning alert %O\n", +  ALERT_descriptions[description]);   #endif    return 0;   }