summaryrefslogtreecommitdiff
path: root/src/cli.c
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 14:02:26 +0200
commite8ab1129a1509ea6232c52a59053a498b79cb2da (patch)
treee0f0fe3b0b4b2fa768b76e8cb1d9cd5adc9b5ae6 /src/cli.c
parent435d9b2be2404aae2f313e7a163f440e1f1c4213 (diff)
downloadgnutls-e8ab1129a1509ea6232c52a59053a498b79cb2da.tar.gz
gnutls-cli: be less verbose in OCSP error messages
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>
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cli.c b/src/cli.c
index 834f1ff262..32fdd41fd2 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -1965,7 +1965,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;
}