diff options
author | Werner Koch <wk@gnupg.org> | 2013-12-12 20:26:56 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2013-12-12 20:26:56 +0100 |
commit | 5e1239b1e2948211ff2675f45cce2b28c3379cfb (patch) | |
tree | f9648298cf4f9ee8b5582b87d79b67f12b716860 /src/fips.c | |
parent | 4ae77322b681a13da62d01274bcab25be2af12d0 (diff) | |
download | libgcrypt-5e1239b1e2948211ff2675f45cce2b28c3379cfb.tar.gz |
Add a configuration file to disable hardware features.
* src/hwfeatures.c: Inclyde syslog.h and ctype.h.
(HWF_DENY_FILE): New.
(my_isascii): New.
(parse_hwf_deny_file): New.
(_gcry_detect_hw_features): Call it.
* src/mpicalc.c (main): Correctly initialize Libgcrypt. Add options
"--print-config" and "--disable-hwf".
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/fips.c')
-rw-r--r-- | src/fips.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -36,7 +36,7 @@ #include "hmac256.h" -/* The name of the file used to foce libgcrypt into fips mode. */ +/* The name of the file used to force libgcrypt into fips mode. */ #define FIPS_FORCE_FILE "/etc/gcrypt/fips_enabled" |