Simplify session ticket parsing/handling.
authorjsing <jsing@openbsd.org>
Fri, 24 Aug 2018 18:10:25 +0000 (18:10 +0000)
committerjsing <jsing@openbsd.org>
Fri, 24 Aug 2018 18:10:25 +0000 (18:10 +0000)
commit307759ee4c8d98d4647f86f8ff8b8f7b7fbf3a68
tree3933f4654be004b7b797b9a820e96bdf16e0c3f5
parent5a15326f4fac974563e5a799f0a34a31f8de6b54
Simplify session ticket parsing/handling.

The original implementation is rather crazy and means that we effectively
have two lots of code that parse a ClientHello and two lots of code that
parse TLS extensions. Partially simplify this by passing a CBS containing
the extension block through to the session handling functions, removing the
need to reimplement the ClientHello parsing.

While here standarise on naming for session_id and session_id_len.

ok inoguchi@ tb@
lib/libssl/ssl_locl.h
lib/libssl/ssl_sess.c
lib/libssl/ssl_srvr.c
lib/libssl/t1_lib.c