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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:409:    }    }       if (!priority)    priority = ([ PACKET_alert : PRI_alert,    PACKET_change_cipher_spec : PRI_urgent,    PACKET_handshake : PRI_urgent,    PACKET_heartbeat : PRI_urgent,    PACKET_application_data : PRI_application ])[packet->content_type];    -  if ((state & CONNECTION_local_closing) && (priority >= PRI_application)) { -  SSL3_DEBUG_MSG("send_packet: Ignoring application packet during close.\n"); -  return; -  } -  +     if ((packet->content_type == PACKET_handshake) &&    (priority == PRI_application)) {    // Assume the packet is either hello_request or client_hello,    // and that we want to renegotiate.    expect_change_cipher = 0;    certificate_state = 0;    state = [int(0..0)|ConnectionState](state | CONNECTION_handshaking);    handshake_state = STATE_wait_for_hello;    }