pike.git
/
lib
/
modules
/
SSL.pmod
/
Connection.pike
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/SSL.pmod/Connection.pike:134:
packet->fragment = sprintf("%1c%3H", type, [string(8bit)]data); handshake_messages += packet->fragment; return packet; } Packet change_cipher_packet() { Packet packet = Packet(version); packet->content_type = PACKET_change_cipher_spec; packet->fragment = "\001";
+
expect_change_cipher++;
return packet; } string(8bit) hash_messages(string(8bit) sender) { if(version == PROTOCOL_SSL_3_0) { return .Cipher.MACmd5(session->master_secret)->hash(handshake_messages + sender) + .Cipher.MACsha(session->master_secret)->hash(handshake_messages + sender); } else if(version <= PROTOCOL_TLS_1_1) {
pike.git/lib/modules/SSL.pmod/Connection.pike:635:
{ if (!expect_change_cipher || (c != 1)) { send_packet(alert(ALERT_fatal, ALERT_unexpected_message, "Unexpected change cipher!\n")); return -1; } else { current_read_state = pending_read_state;
-
expect_change_cipher
= 0
;
+
expect_change_cipher
--
;
return 0; } } void send_heartbeat() { if ((state != CONNECTION_ready) || (session->heartbeat_mode != HEARTBEAT_MODE_peer_allowed_to_send)) { // We're not allowed to send heartbeats. return;