diff options
author | Nikos Mavrogiannopoulos <nmav@crystal.(none)> | 2008-12-04 20:46:57 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@crystal.(none)> | 2008-12-05 21:05:33 +0200 |
commit | 7b73b91567256f839dac8591d32ec3519d052d58 (patch) | |
tree | 831184c2f3adee4a7cd5549da4f44f92566efde5 /src/certtool.c | |
parent | 721d3089ff529189b4a313c9088d4e87e45d2d16 (diff) | |
download | gnutls-7b73b91567256f839dac8591d32ec3519d052d58.tar.gz |
gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0) is being called after
libgcrypt initialization (gnutls_global_init).
Diffstat (limited to 'src/certtool.c')
-rw-r--r-- | src/certtool.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/certtool.c b/src/certtool.c index eaecf3fb8d..3bca02dfac 100644 --- a/src/certtool.c +++ b/src/certtool.c @@ -869,9 +869,6 @@ gaa_parser (int argc, char **argv) template_parse (info.template); } - if (info.quick_random != 0) - gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); - #ifdef gcry_fips_mode_active if (gcry_fips_mode_active()) { @@ -891,6 +888,9 @@ gaa_parser (int argc, char **argv) if ((ret = gnutls_global_init_extra ()) < 0) error (EXIT_FAILURE, 0, "global_init_extra: %s", gnutls_strerror (ret)); + if (info.quick_random != 0) + gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); + switch (info.action) { case 0: |