summaryrefslogtreecommitdiff
path: root/tests/t-dsa.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2021-12-09 09:47:47 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2021-12-09 09:47:47 +0900
commit7d8403b59a105d2d3e5d0fd9d5d25b7e3b2d2787 (patch)
treedc75473b4721e8588bf8fac1b23f24d7558c2ba5 /tests/t-dsa.c
parent5b82f4b4dbf393d0ce901fc9e0c559c488b013cb (diff)
downloadlibgcrypt-7d8403b59a105d2d3e5d0fd9d5d25b7e3b2d2787.tar.gz
tests,fips: Align the use of variable in_fips_mode.
* tests/pubkey.c (check_run): Fix use of pkey and skey. * tests/*.c (in_fips_mode): No initialize by 0. -- There are no cases where *_key_new allocates pkey and skey when IN_FIPS_MODE!=0. Nevertheless, from viewpoint of resource management, calling gcry_sexp_release always is easier for maintenance. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'tests/t-dsa.c')
-rw-r--r--tests/t-dsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t-dsa.c b/tests/t-dsa.c
index e82db62d..965b7cf2 100644
--- a/tests/t-dsa.c
+++ b/tests/t-dsa.c
@@ -35,7 +35,7 @@
static int no_verify;
static int custom_data_file;
-static int in_fips_mode = 0;
+static int in_fips_mode;
static void