Branch: Tag:

2014-08-05

2014-08-05 17:19:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

SSL.Session: Keep track of the protocol version.

SSL.Cipher.CipherSpec::verify() needs the version in the session
object to be up to date (or it will break with TLS 1.2 or higher).

Fixes interoperability with https://google.com/.

408:    array(array(int)) signature_algorithms,    int max_hash_size)   { +  this_program::version = version; +     array res = Cipher.lookup(suite, version, signature_algorithms,    truncated_hmac?512:max_hash_size);    if (!res) return 0;