Added API to save and restore session parameters (for controllable session resumption on the client side).

This commit is contained in:
Thomas Pornin 2016-11-20 20:14:48 +01:00
parent d16eee962a
commit ab68048011
4 changed files with 219 additions and 169 deletions

View file

@ -685,6 +685,7 @@ cc: save-session ( -- ) {
\ We are not resuming, so a new session ID should be generated.
addr-session_id 32 mkrand
32 addr-session_id_len set8
\ Translate common cipher suites, then squeeze out holes: there
\ may be holes because of the way we fill the list when the