diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2020-01-12 12:02:16 +0000 |
---|---|---|
committer | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2020-01-12 12:02:16 +0000 |
commit | e87834cb2524553085819b3c6e493bf3b608ab44 (patch) | |
tree | 3ef3ffd9df0acb69c7df52b6fa56b444df4ab03a /lib | |
parent | 85af41159d76fc9733f2ead54a9a2ab64aeb2b80 (diff) | |
parent | 9805a4cb266d704f80f1476fa8eb2bd8e4d0010d (diff) | |
download | gnutls-e87834cb2524553085819b3c6e493bf3b608ab44.tar.gz |
Merge branch 'fix-fips-gost' into 'master'
Fix tests execution when FIPS mode is compiled but not enforced.
See merge request gnutls/gnutls!1164
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nettle/pk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c index 42d540cb46..823c9b9809 100644 --- a/lib/nettle/pk.c +++ b/lib/nettle/pk.c @@ -2369,6 +2369,8 @@ wrap_nettle_pk_generate_keys(gnutls_pk_algorithm_t algo, return GNUTLS_E_INVALID_REQUEST; } + params->algo = algo; + #ifdef ENABLE_FIPS140 ret = pct_test(algo, params); if (ret < 0) { @@ -2377,8 +2379,6 @@ wrap_nettle_pk_generate_keys(gnutls_pk_algorithm_t algo, } #endif - params->algo = algo; - FAIL_IF_LIB_ERROR; return 0; |