diff options
author | David Benjamin <davidben@chromium.org> | 2015-08-28 22:08:34 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-08-29 01:04:30 +0300 |
commit | 621f95a3ead194342b1c33bfc636aec05f7b922f (patch) | |
tree | 0ef6a90ea1b28b59412af2c4474e634dda40ae0d /tool/transport_common.cc | |
parent | ba13402c1bd011aa2c53033294649b7bfcddfcce (diff) |
Add -session-in and -session-out to bssl client.
This is analogous to openssl s_client's -sess_in and -sess_out. Use PEM to
align with OpenSSL. This is useful for debugging session resumption and also
generating things to test serialization against.
Change-Id: Idc58e8fa3dd4c2385f6a2d647e66ef11427be60d
Reviewed-on: https://boringssl-review.googlesource.com/5761
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'tool/transport_common.cc')
-rw-r--r-- | tool/transport_common.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/transport_common.cc b/tool/transport_common.cc index 3f5e631b..98f0f953 100644 --- a/tool/transport_common.cc +++ b/tool/transport_common.cc @@ -169,6 +169,8 @@ void PrintConnectionInfo(const SSL *ssl) { const SSL_CIPHER *cipher = SSL_get_current_cipher(ssl); fprintf(stderr, " Version: %s\n", SSL_get_version(ssl)); + fprintf(stderr, " Resumed session: %s\n", + SSL_session_reused(ssl) ? "yes" : "no"); fprintf(stderr, " Cipher: %s\n", SSL_CIPHER_get_name(cipher)); fprintf(stderr, " Secure renegotiation: %s\n", SSL_get_secure_renegotiation_support(ssl) ? "yes" : "no"); |