Add a configuration file to disable hardware features.
authorWerner Koch <wk@gnupg.org>
Thu, 12 Dec 2013 19:26:56 +0000 (20:26 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 12 Dec 2013 19:26:56 +0000 (20:26 +0100)
commit5e1239b1e2948211ff2675f45cce2b28c3379cfb
treef9648298cf4f9ee8b5582b87d79b67f12b716860
parent4ae77322b681a13da62d01274bcab25be2af12d0
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>
NEWS
doc/gcrypt.texi
src/fips.c
src/hwfeatures.c
src/mpicalc.c