commit | 6477012ff559afcfa911fad81d94fd5e038f5fea | [log] [tgz] |
---|---|---|
author | David Benjamin <davidben@google.com> | Sat May 04 11:00:04 2019 -0500 |
committer | Adam Langley <agl@google.com> | Mon May 06 22:04:52 2019 +0000 |
tree | bbe00288f01974d12a87655150d3cc6f866482c7 | |
parent | 572edbf0075999001e92c0bf0747b8e8124ed0b0 [diff] [blame] |
Add SSL_get_early_data_reason. This is to help servers diagnose 0-RTT rejects. (QUIC has a similar feature, and this will help determine if we need to adjust the ticket age skew.) Bug: 113 Change-Id: Icc7e5df326b5fa82e744605021b1205298efba6a Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/35885 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/ssl/handshake_server.cc b/ssl/handshake_server.cc index 4622ad0..f7e5df7 100644 --- a/ssl/handshake_server.cc +++ b/ssl/handshake_server.cc
@@ -635,6 +635,8 @@ return ssl_hs_ok; } + ssl->s3->early_data_reason = ssl_early_data_protocol_version; + SSL_CLIENT_HELLO client_hello; if (!ssl_client_hello_init(ssl, &client_hello, msg)) { return ssl_hs_error;