ef1b009344
This is a minor regression from https://boringssl-review.googlesource.com/5235. If the client, for whatever reason, had an ID-based session but also supports tickets, it will send non-empty ID + empty ticket extension. If the ticket extension is non-empty, then the ID is not an ID but a dummy signaling value, so 5235 avoided looking it up. But if it is present and empty, the ID is still an ID and should be looked up. This shouldn't have any practical consequences, except if a server switched from not supporting tickets and then started supporting it, while keeping the session cache fixed. Add a test for this case, and tighten up existing ID vs ticket tests so they fail if we resume with the wrong type. Change-Id: Id4d08cd809af00af30a2b67fe3a971078e404c75 Reviewed-on: https://boringssl-review.googlesource.com/6554 Reviewed-by: Adam Langley <alangley@gmail.com> |
||
---|---|---|
.. | ||
pqueue | ||
test | ||
CMakeLists.txt | ||
custom_extensions.c | ||
d1_both.c | ||
d1_clnt.c | ||
d1_lib.c | ||
d1_meth.c | ||
d1_pkt.c | ||
d1_srtp.c | ||
d1_srvr.c | ||
dtls_record.c | ||
internal.h | ||
s3_both.c | ||
s3_clnt.c | ||
s3_enc.c | ||
s3_lib.c | ||
s3_meth.c | ||
s3_pkt.c | ||
s3_srvr.c | ||
ssl_aead_ctx.c | ||
ssl_asn1.c | ||
ssl_buffer.c | ||
ssl_cert.c | ||
ssl_cipher.c | ||
ssl_ecdh.c | ||
ssl_file.c | ||
ssl_lib.c | ||
ssl_rsa.c | ||
ssl_session.c | ||
ssl_stat.c | ||
ssl_test.cc | ||
t1_enc.c | ||
t1_lib.c | ||
tls_record.c |