Branch: Tag:

2015-04-04

2015-04-04 00:02:47 by Martin Nilsson <nilsson@opera.com>

Streamline the KE verification a bit.

187:   {    int(0..1) verification_ok;    string(8bit) signed = handshake_messages; -  if (version < PROTOCOL_TLS_1_3) { -  signature_context = ""; -  } else { -  signed = session->cipher_spec->hash->hash(signed); -  } +  if (version >= PROTOCOL_TLS_1_3) +  signed = signature_context + session->cipher_spec->hash->hash(signed); +     mixed err = catch {    verification_ok = session->cipher_spec->verify( -  session, signature_context, Buffer(signed), input); +  session, signed, input);    };   #ifdef SSL3_DEBUG    if (err) {