From: Nikos Mavrogiannopoulos Date: Mon, 1 Oct 2012 19:33:24 +0000 (+0200) Subject: check the first response. X-Git-Tag: gnutls_3_1_3~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a9b47c3365cd07189e7449e9bb91a4e3bacc62e;p=thirdparty%2Fgnutls.git check the first response. --- diff --git a/doc/examples/ex-ocsp-client.c b/doc/examples/ex-ocsp-client.c index 0428574bcb..6373fc24e6 100644 --- a/doc/examples/ex-ocsp-client.c +++ b/doc/examples/ex-ocsp-client.c @@ -255,7 +255,7 @@ _verify_response (gnutls_datum_t * data, gnutls_x509_crt_t cert, if (ret < 0) exit (1); - ret = gnutls_ocsp_resp_check_crt (resp, cert); + ret = gnutls_ocsp_resp_check_crt (resp, 0, cert); if (ret < 0) exit(1); diff --git a/src/ocsptool-common.c b/src/ocsptool-common.c index 33f78948ab..835ccbfc2b 100644 --- a/src/ocsptool-common.c +++ b/src/ocsptool-common.c @@ -330,7 +330,7 @@ check_ocsp_response (gnutls_x509_crt_t cert, if (ret < 0) error (EXIT_FAILURE, 0, "importing response: %s", gnutls_strerror (ret)); - ret = gnutls_ocsp_resp_check_crt(resp, cert); + ret = gnutls_ocsp_resp_check_crt(resp, 0, cert); if (ret < 0) { printf ("*** Got OCSP response on an unrelated certificate (ignoring)\n");