summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-20 13:59:54 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-20 13:59:57 +0200
commit60c32a7527ddf5e9889a2e6d25f530f0e25212f3 (patch)
tree60f7bb564001cd70d2803c20e392e35b2453b24a
parent2e9e6091637f01bac33f421dfde57866de603b22 (diff)
downloadgnutls-tmp-ocsptool-updates.tar.gz
gnutls-cli: be less verbose in OCSP error messagestmp-ocsptool-updates
Previously we were reporting "No issuer found" if any certificate in a chain could not be verified. That was confusing information and not strictly necessary. No longer print that. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--src/cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cli.c b/src/cli.c
index 278d9addad..435f49474f 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -1832,7 +1832,8 @@ static int cert_verify_ocsp(gnutls_session_t session)
goto cleanup;
}
} else if (ret < 0) {
- fprintf(stderr, "Cannot find issuer\n");
+ if (it == 0)
+ fprintf(stderr, "Cannot find issuer: %s\n", gnutls_strerror(ret));
goto cleanup;
}