summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-04-20 17:51:20 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-04-20 17:51:23 +0200
commit7ae73db8bd74f0232580830f28f30710b6c163f7 (patch)
treec4106f6c30d3cb8ea04c617b5e70c905effd5b3f /src/cli.c
parented02ed05035ea5f266fbdaac487bc334aa4ca4f7 (diff)
downloadgnutls-7ae73db8bd74f0232580830f28f30710b6c163f7.tar.gz
gnutls-cli: when no certificate is sent, notify the user
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli.c b/src/cli.c
index 1ff9bf69d2..d0e75a2f04 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -1629,7 +1629,7 @@ static int do_handshake(socket_st * socket)
if (ret == 0) {
/* print some information */
- print_info(socket->session, verbose, 0);
+ print_info(socket->session, verbose, (HAVE_OPT(X509CERTFILE)||HAVE_OPT(PGPCERTFILE))?P_WAIT_FOR_CERT:0);
socket->secure = 1;
} else {
gnutls_alert_send_appropriate(socket->session, ret);