diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2021-12-09 09:47:47 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2021-12-09 09:47:47 +0900 |
commit | 7d8403b59a105d2d3e5d0fd9d5d25b7e3b2d2787 (patch) | |
tree | dc75473b4721e8588bf8fac1b23f24d7558c2ba5 /tests/t-dsa.c | |
parent | 5b82f4b4dbf393d0ce901fc9e0c559c488b013cb (diff) | |
download | libgcrypt-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.c | 2 |
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 |