diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2013-11-25 14:26:23 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2013-11-27 11:41:45 +0100 |
commit | 4b8930483e3770fe8d0f7e81bd527a4400c1717d (patch) | |
tree | 8929acdf77d45a3c6ca1c17edeb32c97115940af /tests/cve-2009-1416.c | |
parent | 71adcacd59b4405da07f88869491246939d8c1d6 (diff) | |
download | gnutls-4b8930483e3770fe8d0f7e81bd527a4400c1717d.tar.gz |
Use a FIPS140-2 compliant DSA and DH parameter generator.
Diffstat (limited to 'tests/cve-2009-1416.c')
-rw-r--r-- | tests/cve-2009-1416.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/cve-2009-1416.c b/tests/cve-2009-1416.c index 5bfb43cd7b..128d4abd91 100644 --- a/tests/cve-2009-1416.c +++ b/tests/cve-2009-1416.c @@ -48,6 +48,10 @@ int main(void) { +#ifdef ENABLE_FIPS140 + /* Cannot generate a 512-bit DSA key */ + return 77; +#else gnutls_x509_privkey_t key; gnutls_datum_t p, q, g, y, x; int ret; @@ -81,4 +85,5 @@ int main(void) gnutls_global_deinit(); return 0; +#endif } |