]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
ocsptool: follow the documented process for gnutls_x509_crt_get_authority_info_access
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 16 Jan 2015 09:16:47 +0000 (10:16 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 16 Jan 2015 09:16:47 +0000 (10:16 +0100)
src/ocsptool-common.c

index cc83e7a9371a63cff60da2e3948b383e0a9ad492..04e24e7fee02ebf8cfc9dbb2c93001be15ec9c10 100644 (file)
@@ -163,7 +163,7 @@ int send_ocsp_request(const char *server,
                                                                        GNUTLS_IA_OCSP_URI,
                                                                        &data,
                                                                        NULL);
-               } while(ret < 0 && ret != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE);
+               } while(ret == GNUTLS_E_UNKNOWN_ALGORITHM);
 
                if (ret < 0) {
                        i = 0;
@@ -171,7 +171,7 @@ int send_ocsp_request(const char *server,
                                ret =
                                    gnutls_x509_crt_get_authority_info_access
                                    (issuer, i++, GNUTLS_IA_OCSP_URI, &data, NULL);
-                       } while(ret < 0 && ret != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE);
+                       } while(ret == GNUTLS_E_UNKNOWN_ALGORITHM);
                }
 
                if (ret < 0) {