diff options
author | Werner Koch <wk@gnupg.org> | 2016-02-19 11:44:57 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-02-19 14:35:34 +0100 |
commit | 95f1db3affb9f5b8a2c814c211d4a02b30446c15 (patch) | |
tree | b1a719356f4e118a6fffd38ab7f1a268ae1aa6d7 /random/random.h | |
parent | 85ed07790552297586258e8fe09b546eee357a8b (diff) | |
download | libgcrypt-95f1db3affb9f5b8a2c814c211d4a02b30446c15.tar.gz |
random: Make the DRBG C-90 clean and use a flag string.
* random/random.h (struct gcry_drbg_test_vector): Rename "flags" to
"flagstr" and turn it into a string.
* random/random-drbg.c (drbg_test_pr, drbg_test_nopr): Replace use of
designated initializers. Use a string for the flags.
(gcry_rngdrbg_cavs_test): Parse the flag string into a flag value.
(drbg_healthcheck_sanity): Ditto.
--
Libgcrypt needs to be build-able on C-90 only systems and thus we
can't use C-99 designated initializers. Because we have removed the
flag macros from the API we should not use them in the CAVS test code
either. Thus they are replaced by the flag string which also tests
the flag string parser.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'random/random.h')
-rw-r--r-- | random/random.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/random/random.h b/random/random.h index 5dbdf953..ee05cfe3 100644 --- a/random/random.h +++ b/random/random.h @@ -60,7 +60,7 @@ gpg_err_code_t _gcry_rngdrbg_reinit (const char *flagstr, /* private interfaces for testing of DRBG */ struct gcry_drbg_test_vector { - u32 flags; + const char *flagstr; unsigned char *entropy; size_t entropylen; unsigned char *entpra; |