summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2015-09-13 11:12:10 +0000
committerBob Beck <beck@cvs.openbsd.org>2015-09-13 11:12:10 +0000
commita09e609e47839b51e79e7ac3390c24aa8f1d2563 (patch)
treed05abcf000fa95e46f921a1931efa86a095de9c6 /usr.bin
parent9dafdc161f5f8b84ba0418c0cfc07bbe29b7c89e (diff)
display negotiated TLS version and cipher suite in verbose mode.
ok jsing@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/nc/netcat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c
index 165c3c9c809..ff9d3989d32 100644
--- a/usr.bin/nc/netcat.c
+++ b/usr.bin/nc/netcat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netcat.c,v 1.137 2015/09/12 21:01:14 beck Exp $ */
+/* $OpenBSD: netcat.c,v 1.138 2015/09/13 11:12:09 beck Exp $ */
/*
* Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
* Copyright (c) 2015 Bob Beck. All rights reserved.
@@ -1448,7 +1448,8 @@ void
report_tls(struct tls * tls_ctx, char * host, char *tls_expectname)
{
char *subject = NULL, *issuer = NULL;
- fprintf(stderr, "TLS handshake completed with %s\n", host);
+ fprintf(stderr, "TLS handshake negotiated %s/%s with host %s\n",
+ tls_conn_version(tls_ctx), tls_conn_cipher(tls_ctx), host);
fprintf(stderr, "Peer name %s\n",
tls_expectname ? tls_expectname : host);
if (tls_peer_cert_subject(tls_ctx))