diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-06-20 13:59:54 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-06-20 14:02:26 +0200 |
commit | e8ab1129a1509ea6232c52a59053a498b79cb2da (patch) | |
tree | e0f0fe3b0b4b2fa768b76e8cb1d9cd5adc9b5ae6 /src/cli.c | |
parent | 435d9b2be2404aae2f313e7a163f440e1f1c4213 (diff) | |
download | gnutls-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |