Branch: Tag:

2014-12-30

2014-12-30 16:40:44 by Henrik Grubbström (Grubba) <grubba@grubba.org>

SSL: Moved certificate_verify_packet() to Connection.

In TLS 1.3 this packet will be generated on the server side too.

159:    Buffer()->add_string_array(certificates, 3, 3));   }    + Packet certificate_verify_packet() + { +  SSL3_DEBUG_MSG("SSL.Connection: CERTIFICATE_VERIFY\n" +  "%O: handshake_messages: %d bytes.\n", +  this_object(), sizeof(handshake_messages)); +  Buffer struct = Buffer(); +  +  session->cipher_spec->sign(session, handshake_messages, struct); +  +  return handshake_packet(HANDSHAKE_certificate_verify, struct); + } +    Packet heartbeat_packet(Buffer s)   {    return Packet(version, PACKET_heartbeat, s->read());