tls: Include TLS version announced in Client Hello in encrypted premaster
authorMartin Willi <martin@revosec.ch>
Tue, 25 Mar 2014 09:50:51 +0000 (10:50 +0100)
committerMartin Willi <martin@revosec.ch>
Mon, 31 Mar 2014 14:07:53 +0000 (16:07 +0200)
commitb37080f8c99df04c4b553dc5777080245aabb844
tree672466622f4f3fa188088647e5dba94b5ccd43fe
parentf93497507fbdfb3dfdfc2ca830a9ced73d86dab1
tls: Include TLS version announced in Client Hello in encrypted premaster

While a hardcoded 1.2 version is fine when we offer that in Client Hello, we
should include the actually offered version if it has been reduced before
starting the exchange.
src/libtls/tls_peer.c