summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2020-01-12 12:02:16 +0000
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2020-01-12 12:02:16 +0000
commite87834cb2524553085819b3c6e493bf3b608ab44 (patch)
tree3ef3ffd9df0acb69c7df52b6fa56b444df4ab03a /lib
parent85af41159d76fc9733f2ead54a9a2ab64aeb2b80 (diff)
parent9805a4cb266d704f80f1476fa8eb2bd8e4d0010d (diff)
downloadgnutls-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.c4
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;