diff options
author | jsing <> | 2016-12-30 17:25:48 +0000 |
---|---|---|
committer | jsing <> | 2016-12-30 17:25:48 +0000 |
commit | a8b45803d3fb6170b4567bc459cc88846d7d09ee (patch) | |
tree | 60cfd9ecaf49a5109e5cbbe2facdf318f5110875 /src/usr.bin/openssl/s_client.c | |
parent | c6852449efeadbfc5a05c733da7136ce72a68a35 (diff) | |
download | openbsd-a8b45803d3fb6170b4567bc459cc88846d7d09ee.tar.gz openbsd-a8b45803d3fb6170b4567bc459cc88846d7d09ee.tar.bz2 openbsd-a8b45803d3fb6170b4567bc459cc88846d7d09ee.zip |
Display details of the server ephemeral key, based on OpenSSL.
ok doug@
Diffstat (limited to 'src/usr.bin/openssl/s_client.c')
-rw-r--r-- | src/usr.bin/openssl/s_client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/s_client.c b/src/usr.bin/openssl/s_client.c index b35fa8c3fc..78909873b8 100644 --- a/src/usr.bin/openssl/s_client.c +++ b/src/usr.bin/openssl/s_client.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s_client.c,v 1.28 2016/06/21 03:56:43 bcook Exp $ */ | 1 | /* $OpenBSD: s_client.c,v 1.29 2016/12/30 17:25:48 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -1365,6 +1365,9 @@ print_stuff(BIO * bio, SSL * s, int full) | |||
1365 | } | 1365 | } |
1366 | BIO_write(bio, "\n", 1); | 1366 | BIO_write(bio, "\n", 1); |
1367 | } | 1367 | } |
1368 | |||
1369 | ssl_print_tmp_key(bio, s); | ||
1370 | |||
1368 | BIO_printf(bio, "---\nSSL handshake has read %ld bytes and written %ld bytes\n", | 1371 | BIO_printf(bio, "---\nSSL handshake has read %ld bytes and written %ld bytes\n", |
1369 | BIO_number_read(SSL_get_rbio(s)), | 1372 | BIO_number_read(SSL_get_rbio(s)), |
1370 | BIO_number_written(SSL_get_wbio(s))); | 1373 | BIO_number_written(SSL_get_wbio(s))); |