Skip to content

Commit

Permalink
Fix early data printout in bssl client.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
davidben authored and CQ bot account: commit-bot@chromium.org committed Nov 11, 2017
1 parent ca8c2c7 commit 4ddbc7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tool/transport_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 4ddbc7b

Please sign in to comment.