pike.git / lib / modules / SSL.pmod / Connection.pike

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:705:   // Connection should close.   // @endint   protected int(-1..1) handle_alert(string s)   {    // sizeof(s)==2, checked at caller.    int level = s[0];    int description = s[1];    COND_FATAL(!(ALERT_levels[level] && ALERT_descriptions[description]),    ALERT_unexpected_message, "Invalid alert\n");    +  // Consider all deprecated alerts as fatals. +  COND_FATAL((ALERT_deprecated[description] && +  ALERT_deprecated[description] < version), +  ALERT_unexpected_message, "Deprecated alert\n"); +     if (level == ALERT_fatal)    {    SSL3_DEBUG_MSG("SSL.Connection: Fatal alert %O\n",    ALERT_descriptions[description]);    state = [int(0..0)|ConnectionState](state | CONNECTION_peer_fatal |    CONNECTION_peer_closed);    // SSL3 5.4:    // Alert messages with a level of fatal result in the immediate    // termination of the connection. In this case, other    // connections corresponding to the session may continue, but