[pkg-otr-team] [irssi-plugin-otr] 71/167: * otr-plugin.c: Use /dev/urandom to generate keys instead of /dev/random. [Really: on non-Win32, call gcry_control(GCRYCTL_ENABLE_QUICK_RANDOM, 0); before OTRL_INIT; .]

Holger Levsen holger at moszumanska.debian.org
Mon Mar 3 21:55:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to tag 4.0.0
in repository irssi-plugin-otr.

commit cb7519bae6479f1259f82ec26566151009ff991d
Author: cypherpunk <cypherpunk>
Date:   Thu Jul 10 12:42:44 2008 +0000

    	* otr-plugin.c: Use /dev/urandom to generate keys instead of
    	/dev/random.  [Really: on non-Win32, call
    	gcry_control(GCRYCTL_ENABLE_QUICK_RANDOM, 0); before OTRL_INIT;.]
---
 ChangeLog    | 6 ++++++
 otr-plugin.c | 5 +++++
 2 files changed, 11 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 508db55..d2073bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-07-10
+
+	* otr-plugin.c: Use /dev/urandom to generate keys instead of
+	/dev/random.  [Really: on non-Win32, call
+	gcry_control(GCRYCTL_ENABLE_QUICK_RANDOM, 0); before OTRL_INIT;.]
+
 2008-07-07
 
 	* gtk-conv.c: Don't delete the OTR menus if a non-foreground
diff --git a/otr-plugin.c b/otr-plugin.c
index 219400d..85ef5a5 100644
--- a/otr-plugin.c
+++ b/otr-plugin.c
@@ -973,6 +973,11 @@ __init_plugin(PurplePlugin *plugin)
     otrg_dialog_set_ui_ops(otrg_gtk_dialog_get_ui_ops());
 #endif
 
+#ifndef WIN32
+    /* Make key generation use /dev/urandom instead of /dev/random */
+    gcry_control(GCRYCTL_ENABLE_QUICK_RANDOM, 0);
+#endif
+
     /* Initialize the OTR library */
     OTRL_INIT;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-otr/packages/irssi-plugin-otr.git



More information about the Pkg-otr-team mailing list