iPXE - Open Source Boot Firmware

[tls] Support stateful session resumption
authorMichael Brown <mcb30@ipxe.org>
Thu, 21 Feb 2019 11:32:25 +0000 (11:32 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 21 Feb 2019 11:32:25 +0000 (11:32 +0000)
commit272fe32529103dd39875a9fbed5cfdf1a059e294
tree207872cd3a5c9159d55418b5e4bf31611f00a16c
parent64b4452bca04af433f1c98ab782c0e93cd5c88c0
[tls] Support stateful session resumption

Record the session ID (if any) provided by the server and attempt to
reuse it for any concurrent connections to the same server.

If multiple connections are initiated concurrently (e.g. when using
PeerDist) then defer sending the ClientHello for all but the first
connection, to allow time for the first connection to potentially
obtain a session ID (and thereby speed up the negotiation for all
remaining connections).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/tls.h
src/net/tls.c