Branch: Tag:

2015-01-06

2015-01-06 14:25:28 by Henrik Grubbström (Grubba) <grubba@grubba.org>

SSL.Connection: Enforce handshake packet order.

All currently supported handshake packets are allocated in order.

51:   /* State variables */      int handshake_state; // Constant.STATE_* + int previous_handshake; // Constant.HANDSHAKE_*   int reuse;      constant CERT_none = 0;
462:    certificate_state = 0;    state = [int(0..0)|ConnectionState](state | CONNECTION_handshaking);    handshake_state = STATE_wait_for_hello; +  previous_handshake = 0;    }       SSL3_DEBUG_MSG("SSL.Connection->send_packet: type %d, pri %d, %O\n",