]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
ocsptool: better error message
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 5 Sep 2014 12:29:47 +0000 (14:29 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 5 Sep 2014 12:29:47 +0000 (14:29 +0200)
src/ocsptool-common.c

index 5ea2030cbfd709ba251120a0b7c003a60ba3ed48..95eb731c35a642aecfaa0b9d73c7f2ae438b7a42 100644 (file)
@@ -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;
        }