summaryrefslogtreecommitdiff
path: root/src/ocsptool-common.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-01-19 15:32:09 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-01-19 15:32:09 +0100
commit9c33d9cc68458b5378f0d87e6d296fb07ada770c (patch)
tree63e9ebadeb3702bedaa739f15c68cb59e60b9678 /src/ocsptool-common.c
parent5250d7558f7654b039aa4a502b662b6f2025bb9a (diff)
downloadgnutls-9c33d9cc68458b5378f0d87e6d296fb07ada770c.tar.gz
don't be so verbose about the OCSP nonce; it is universally unsupported
Diffstat (limited to 'src/ocsptool-common.c')
-rw-r--r--src/ocsptool-common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ocsptool-common.c b/src/ocsptool-common.c
index ec5903c14b..b0fb18ddd2 100644
--- a/src/ocsptool-common.c
+++ b/src/ocsptool-common.c
@@ -314,7 +314,7 @@ void print_ocsp_verify_res(unsigned int output)
int
check_ocsp_response(gnutls_x509_crt_t cert,
gnutls_x509_crt_t issuer, gnutls_datum_t * data,
- gnutls_datum_t * nonce)
+ gnutls_datum_t * nonce, int verbose)
{
gnutls_ocsp_resp_t resp;
int ret;
@@ -409,7 +409,8 @@ check_ocsp_response(gnutls_x509_crt_t cert,
ret = gnutls_ocsp_resp_get_nonce(resp, NULL, &rnonce);
if (ret == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) {
- fprintf(stderr, "*** The OCSP reply did not include the requested nonce.\n");
+ if (verbose)
+ fprintf(stderr, "*** The OCSP reply did not include the requested nonce.\n");
goto finish_ok;
}