]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Account for GNUTLS_E_PK_SIG_VERIFY_FAILED.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 18 Dec 2010 11:14:50 +0000 (12:14 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 18 Dec 2010 11:14:50 +0000 (12:14 +0100)
tests/cve-2009-1415.c

index 2a20178c5c02d9c08d15443f1405815ec19bb8fe..d1e23c5e2b03ae4e1ca699c7ad41dbf0c864a07c 100644 (file)
@@ -92,7 +92,7 @@ main (void)
     return 1;
 
   ret = gnutls_x509_crt_verify_data (crt, 0, &data, &sig);
-  if (ret < 0)
+  if (ret < 0 && ret != GNUTLS_E_PK_SIG_VERIFY_FAILED)
     return 1;
 
   //printf ("success!\n");