boringssl/ssl
David Benjamin 123db57009 Measure session->timeout from ticket issuance.
The distinction for full handshakes is not meaningful (the timestamp is
currently the start of the handshake), but for renewed sessions, we
currently retain the timestamp of the original issuance.

Instead, when minting or receiving tickets, adjust session->time and
session->timeout so that session->time is the ticket issuance time.

This is still not our final TLS 1.3 behavior (which will need a both
renewable and non-renewable times to honor the server ticket lifetime),
but it gets us closer and unblocks handling ticket_age_add from TLS 1.3
draft 18 and sends the correct NewSessionTicket lifetime.

This fixes the ticket lifetime hint which we emit on the server to
mirror the true ticket lifetime. It also fixes the TLS 1.3 server code
to not set the ticket lifetime hint. There is no need to waste ticket
size with it, it is no longer a "hint" in TLS 1.3, and even in the TLS
1.3 code we didn't fill it in on the server.

Change-Id: I140541f1005a24e53e1b1eaa90996d6dada1c3a1
Reviewed-on: https://boringssl-review.googlesource.com/12105
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: Adam Langley <agl@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2016-11-08 23:51:10 +00:00
..
test Don't access SSL internals in bssl_shim. 2016-11-03 16:40:58 +00:00
CMakeLists.txt
custom_extensions.c
d1_both.c
d1_lib.c
d1_pkt.c
d1_srtp.c
dtls_method.c
dtls_record.c
handshake_client.c Measure session->timeout from ticket issuance. 2016-11-08 23:51:10 +00:00
handshake_server.c Measure session->timeout from ticket issuance. 2016-11-08 23:51:10 +00:00
internal.h Measure session->timeout from ticket issuance. 2016-11-08 23:51:10 +00:00
s3_both.c
s3_enc.c
s3_lib.c Detach TLS 1.3 cipher configuration from the cipher language. 2016-11-02 20:47:55 +00:00
s3_pkt.c
ssl_aead_ctx.c Validate input iv/mac sizes in SSL_AEAD_CTX_new. 2016-10-28 21:25:35 +00:00
ssl_asn1.c Remove weird special-cases around times in SSL_SESSION. 2016-11-08 22:59:27 +00:00
ssl_buffer.c
ssl_cert.c
ssl_cipher.c Trim ssl_create_cipher_list slightly. 2016-11-03 22:19:53 +00:00
ssl_ecdh.c
ssl_file.c
ssl_lib.c Remove cipher_list_by_id. 2016-11-03 16:43:56 +00:00
ssl_rsa.c
ssl_session.c Measure session->timeout from ticket issuance. 2016-11-08 23:51:10 +00:00
ssl_stat.c
ssl_test.cc Measure session->timeout from ticket issuance. 2016-11-08 23:51:10 +00:00
t1_enc.c Forbid using exporters during a renego. 2016-11-02 18:59:02 +00:00
t1_lib.c Negotiate the cipher suite before ALPN. 2016-11-02 18:06:23 +00:00
tls13_both.c
tls13_client.c Measure session->timeout from ticket issuance. 2016-11-08 23:51:10 +00:00
tls13_enc.c Validate input iv/mac sizes in SSL_AEAD_CTX_new. 2016-10-28 21:25:35 +00:00
tls13_server.c Measure session->timeout from ticket issuance. 2016-11-08 23:51:10 +00:00
tls_method.c
tls_record.c