]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: ssl_sock_parse_clienthello ignores session id
authorBaptiste Assmann <bedis9@gmail.com>
Wed, 28 Nov 2018 14:20:25 +0000 (15:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 29 Nov 2018 15:55:29 +0000 (16:55 +0100)
commit6be139f86735156384d373fb5633fc4140250f60
tree33c469249643f5d5a0277a3dbca7fb594e418d66
parent1ced485b29d6afad53d390542ba4afed5fd5a7aa
BUG/MINOR: ssl: ssl_sock_parse_clienthello ignores session id

In ssl_sock_parse_clienthello(), the code considers that SSL Sessionid
size is '1', and then considers that the SSL cipher suite is availble
right after the session id size information.
This actually works in a single case, when the client does not send a
session id.

This patch fixes this issue by introducing the a propoer way to parse
the session id and move forward the cursor by the session id length when
required.

Need to be backported to 1.8.
src/ssl_sock.c