summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2005-10-14 19:00:57 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2005-10-14 19:00:57 +0000
commitaa9627dbca1ce74df9855d2c7a38c00dd88f4d87 (patch)
treefca433eb1d4cbf3c270bf0b39a387cb843436334 /src
parente1ad17c1d1991c32d57f3606bc4fcf0701959d3f (diff)
downloadgnutls-aa9627dbca1ce74df9855d2c7a38c00dd88f4d87.tar.gz
added some more verbose messages to the client to report whether it sent any certificates or not.
Diffstat (limited to 'src')
-rw-r--r--src/cli.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cli.c b/src/cli.c
index eb35c90753..eeef260831 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -191,7 +191,7 @@ static void load_keys(void)
exit(1);
}
x509_crt_size = ret;
- /* fprintf(stderr, "Processed %d client certificates...\n", ret); */
+ fprintf(stderr, "Processed %d client certificates...\n", ret);
unload_file(data);
@@ -213,6 +213,8 @@ static void load_keys(void)
}
unload_file(data);
+
+ fprintf(stderr, "Processed %d client X.509 certificates...\n", x509_crt_size);
}
#ifdef USE_OPENPGP
if (pgp_certfile != NULL && pgp_keyfile != NULL) {
@@ -255,6 +257,7 @@ static void load_keys(void)
}
unload_file(data);
+ fprintf(stderr, "Processed 1 client PGP certificate...\n");
}
#endif
@@ -330,6 +333,7 @@ static int cert_callback(gnutls_session session,
}
}
+ printf("- Successfully sent %d certificate(s) to server.\n", st->ncerts);
return 0;
}