diff options
author | Werner Koch <wk@gnupg.org> | 2017-06-16 10:42:44 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-06-16 10:42:44 +0200 |
commit | b05a4abc358b204dba343d9cfbd59fdc828c1686 (patch) | |
tree | cfa7f763b569535f5bf00cdc22292a8694a4fb5e /src/hwfeatures.c | |
parent | f5e7763ddca59dcd9ac9f2f4d50cb41b14a34a9e (diff) | |
download | libgcrypt-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.c | 3 |
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* |