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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:488:    // connections corresponding to the session may continue, but    // the session identifier must be invalidated, preventing the    // failed session from being used to establish new connections.    if (session) {    context->purge_session(session);    }    } else if (packet->description == ALERT_close_notify) {    state = [int(0..0)|ConnectionState](state | CONNECTION_local_closed);    }    } -  string res = current_write_state->encrypt_packet(packet)->send(); +  string res = current_write_state->encrypt_packet(packet, context)->send();    if (packet->content_type == PACKET_change_cipher_spec)    current_write_state = pending_write_state;    return res;   }      //! Initiate close.   void send_close()   {    send_packet(alert(ALERT_warning, ALERT_close_notify,    "Closing connection.\n"), PRI_application);