diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-07-02 15:43:31 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-07-02 15:43:33 +0200 |
commit | bc4540e44bb32c4d626f81fe15e7f81049cb8ad5 (patch) | |
tree | e1fec6b57aeecb28701c6dd432e4f6b90b5df549 /tests/crq_key_id.c | |
parent | 3e652cd9594b9e9a97dad130c6fd64c9e917f5e9 (diff) | |
download | gnutls-bc4540e44bb32c4d626f81fe15e7f81049cb8ad5.tar.gz |
tests: crq_key_id: increased generated DSA key size and changed hash to SHA256
That allows the test to operate under the FIPS140-2 mode.
Diffstat (limited to 'tests/crq_key_id.c')
-rw-r--r-- | tests/crq_key_id.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/crq_key_id.c b/tests/crq_key_id.c index faf19759e4..c729c7a7fb 100644 --- a/tests/crq_key_id.c +++ b/tests/crq_key_id.c @@ -79,7 +79,7 @@ void doit(void) } ret = - gnutls_x509_privkey_generate(pkey, algorithm, (algorithm==GNUTLS_PK_RSA)?2048:1024, 0); + gnutls_x509_privkey_generate(pkey, algorithm, (algorithm==GNUTLS_PK_RSA)?2048:2048, 0); if (ret < 0) { fail("gnutls_x509_privkey_generate (%s): %d: %s\n", gnutls_pk_algorithm_get_name(algorithm), @@ -131,7 +131,7 @@ void doit(void) ret = gnutls_x509_crq_privkey_sign(crq, abs_pkey, - GNUTLS_DIG_SHA1, 0); + GNUTLS_DIG_SHA256, 0); if (ret < 0) { fail("gnutls_x509_crq_sign: %d: %s\n", ret, gnutls_strerror(ret)); } |