From: Nikos Mavrogiannopoulos Date: Fri, 5 Sep 2014 12:29:47 +0000 (+0200) Subject: ocsptool: better error message X-Git-Tag: gnutls_3_4_0~979 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50db1891bfd7ccde89f8201c9a190433e54acde3;p=thirdparty%2Fgnutls.git ocsptool: better error message --- diff --git a/src/ocsptool-common.c b/src/ocsptool-common.c index 5ea2030cbf..95eb731c35 100644 --- a/src/ocsptool-common.c +++ b/src/ocsptool-common.c @@ -330,8 +330,13 @@ check_ocsp_response(gnutls_x509_crt_t cert, ret = gnutls_ocsp_resp_check_crt(resp, 0, cert); if (ret < 0) { - printf - ("*** Got OCSP response on an unrelated certificate (ignoring)\n"); + if (ret == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) { + printf + ("*** Got OCSP response with no data (ignoring)\n"); + } else { + printf + ("*** Got OCSP response on an unrelated certificate (ignoring)\n"); + } ret = -1; goto cleanup; }