From: Nikos Mavrogiannopoulos Date: Fri, 16 Jan 2015 09:16:47 +0000 (+0100) Subject: ocsptool: follow the documented process for gnutls_x509_crt_get_authority_info_access X-Git-Tag: gnutls_3_4_0~348 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=750feeb97ca99bd418923815488f759ccec19ebb;p=thirdparty%2Fgnutls.git ocsptool: follow the documented process for gnutls_x509_crt_get_authority_info_access --- diff --git a/src/ocsptool-common.c b/src/ocsptool-common.c index cc83e7a937..04e24e7fee 100644 --- a/src/ocsptool-common.c +++ b/src/ocsptool-common.c @@ -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) {