diff options
author | Werner Koch <wk@gnupg.org> | 2008-08-27 10:10:47 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2008-08-27 10:10:47 +0000 |
commit | b7725f9968d8fb623c7c4d37c55714942643bfcb (patch) | |
tree | b1f3435ceae1fc28e4f984fbe8555558f6d0a61a /src/global.c | |
parent | d1e87a8bf19a041e3fe6144213b081f6374ba06b (diff) | |
download | libgcrypt-b7725f9968d8fb623c7c4d37c55714942643bfcb.tar.gz |
Allow getting out of the FIPS error state by running a self-test.
Diffstat (limited to 'src/global.c')
-rw-r--r-- | src/global.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/global.c b/src/global.c index 894146e9..1d5314b3 100644 --- a/src/global.c +++ b/src/global.c @@ -469,7 +469,7 @@ _gcry_vcontrol (enum gcry_ctl_cmds cmd, va_list arg_ptr) /* Already initialized. If we are already operational we run a selftest. If not we use the is_operational call to force us into operational state if possible. */ - if (_gcry_fips_test_operational ()) + if (_gcry_fips_test_error_or_operational ()) _gcry_fips_run_selftests (); if (_gcry_fips_is_operational ()) err = GPG_ERR_GENERAL; /* Used as TRUE value */ |