summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2007-10-24 14:38:58 +0300
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2007-10-24 14:38:58 +0300
commitfafd3319169e8ce2416d74e0efd6682bf1894227 (patch)
tree222d733150714ed76a74cb7180dd2a25a7efc244 /src/cli.c
parent6cf29d4aff604932a45e642ff58ef3f386e33107 (diff)
downloadgnutls-fafd3319169e8ce2416d74e0efd6682bf1894227.tar.gz
/dev/urandom is used now by default for key generation. The option --disable-quick-random was introduced.
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cli.c b/src/cli.c
index a8b48be938..b80e3b2a98 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -518,6 +518,8 @@ main (int argc, char **argv)
int user_term = 0;
socket_st hd;
+ gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
+
if ((ret = gnutls_global_init ()) < 0)
{
fprintf (stderr, "global_init: %s\n", gnutls_strerror (ret));