summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-20 13:57:15 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-20 13:57:15 +0200
commit2e9e6091637f01bac33f421dfde57866de603b22 (patch)
treecba295d35c77774eff976898b279b7907a1311af /src
parentcae14f0ed5f95bbf52c63a42a2fac3cfaf0cc6a2 (diff)
downloadgnutls-2e9e6091637f01bac33f421dfde57866de603b22.tar.gz
gnutls-cli: improved error message of OCSP failure
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/ocsptool-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ocsptool-common.c b/src/ocsptool-common.c
index 2ad91d0838..fc7a20fa6d 100644
--- a/src/ocsptool-common.c
+++ b/src/ocsptool-common.c
@@ -356,7 +356,7 @@ check_ocsp_response(gnutls_x509_crt_t cert,
ret = gnutls_ocsp_resp_verify_direct(resp, issuer, &status, 0);
if (ret < 0) {
- fprintf(stderr, "gnutls_ocsp_resp_verify_direct: %s",
+ fprintf(stderr, "OCSP verification: %s\n",
gnutls_strerror(ret));
exit(1);
}
@@ -378,7 +378,7 @@ check_ocsp_response(gnutls_x509_crt_t cert,
&cert_status, &vtime, &ntime,
&rtime, NULL);
if (ret < 0) {
- fprintf(stderr, "reading response: %s",
+ fprintf(stderr, "reading response: %s\n",
gnutls_strerror(ret));
exit(1);
}