]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
check the first response.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 1 Oct 2012 19:33:24 +0000 (21:33 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 1 Oct 2012 19:34:28 +0000 (21:34 +0200)
doc/examples/ex-ocsp-client.c
src/ocsptool-common.c

index 0428574bcb89bc8deb08b1a7183c497184560751..6373fc24e63f3f525dc2753b8b710258f0b80616 100644 (file)
@@ -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);
 
index 33f78948abc606d23a72448d4d8b482b793387a3..835ccbfc2bdfa7ac759f5745c2c28b60f653384a 100644 (file)
@@ -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");