[Pkg-privacy-commits] [pidgin-otr] 05/14: * 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; .]

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:52:12 UTC 2015


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

infinity0 pushed a commit to tag release_3_2_1
in repository pidgin-otr.

commit 7d024e12725aef2d542cb973308b04b74941950d
Author: Ian Goldberg <iang at cs.uwaterloo.ca>
Date:   Mon May 14 11:43:56 2012 -0400

    	* 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 5062753..018d7f8 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 0d801b6..eae00c3 100644
--- a/otr-plugin.c
+++ b/otr-plugin.c
@@ -990,6 +990,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-privacy/packages/pidgin-otr.git



More information about the Pkg-privacy-commits mailing list