summaryrefslogtreecommitdiff
path: root/src/hwfeatures.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-06-16 10:42:44 +0200
committerWerner Koch <wk@gnupg.org>2017-06-16 10:42:44 +0200
commitb05a4abc358b204dba343d9cfbd59fdc828c1686 (patch)
treecfa7f763b569535f5bf00cdc22292a8694a4fb5e /src/hwfeatures.c
parentf5e7763ddca59dcd9ac9f2f4d50cb41b14a34a9e (diff)
downloadlibgcrypt-b05a4abc358b204dba343d9cfbd59fdc828c1686.tar.gz
Implement global config file /etc/gcrypt/random.conf
* src/hwfeatures.c (my_isascii): Move macro to ... * src/g10lib.h: here. * tests/random.c (main): Dump random stats. * random/random.c (RANDOM_CONF_FILE): New. (_gcry_random_read_conf): New. (_gcry_random_dump_stats): Call rndjent stats. * random/rndjent.c (jent_rng_totalcalls, jent_rng_totalbytes): New. (_gcry_rndjent_poll): Take care of config option disable-jent. Wipe buffer. Bump counters. (_gcry_rndjent_dump_stats): New. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/hwfeatures.c')
-rw-r--r--src/hwfeatures.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/hwfeatures.c b/src/hwfeatures.c
index 45d76806..1cad546d 100644
--- a/src/hwfeatures.c
+++ b/src/hwfeatures.c
@@ -73,9 +73,6 @@ static unsigned int disabled_hw_features;
available. */
static unsigned int hw_features;
-/* Convenience macros. */
-#define my_isascii(c) (!((c) & 0x80))
-
/* Disable a feature by name. This function must be called *before*