diff options
author | David Benjamin <davidben@google.com> | 2017-11-11 14:21:50 +0800 |
---|---|---|
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | 2017-11-11 06:35:25 +0000 |
commit | 4ddbc7bd0d540672a57d5c9d4eb7d2d977553571 (patch) | |
tree | 26e12a2091351bc93c9514008366a0b6e867ffc2 | |
parent | ca8c2c7eaba7805b76ef26a11d4d7aa80007b68f (diff) | |
download | boringssl-4ddbc7bd0d540672a57d5c9d4eb7d2d977553571.zip boringssl-4ddbc7bd0d540672a57d5c9d4eb7d2d977553571.tar.gz boringssl-4ddbc7bd0d540672a57d5c9d4eb7d2d977553571.tar.bz2 |
Fix early data printout in bssl client.
Because the handshake returns early, it should query SSL_in_early_data.
Change-Id: I64d4c0e8de753832207d5c198c50d660f87afac6
Reviewed-on: https://boringssl-review.googlesource.com/22945
Reviewed-by: Steven Valdez <svaldez@chromium.org>
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
-rw-r--r-- | tool/transport_common.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tool/transport_common.cc b/tool/transport_common.cc index 1a80678..55f2059 100644 --- a/tool/transport_common.cc +++ b/tool/transport_common.cc @@ -284,8 +284,9 @@ void PrintConnectionInfo(BIO *bio, const SSL *ssl) { BIO_printf(bio, " SCT list: %s\n", sct_list_len > 0 ? "yes" : "no"); } - BIO_printf(bio, " Early data: %s\n", - SSL_early_data_accepted(ssl) ? "yes" : "no"); + BIO_printf( + bio, " Early data: %s\n", + (SSL_early_data_accepted(ssl) || SSL_in_early_data(ssl)) ? "yes" : "no"); // Print the server cert subject and issuer names. bssl::UniquePtr<X509> peer(SSL_get_peer_certificate(ssl)); |