summaryrefslogtreecommitdiff
blob: 576c8b39442458cd34a5fac5c8b7d7aae344bd79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Index: src/common/crypto.py
===================================================================
--- src/common/crypto.py	(revision 15157)
+++ src/common/crypto.py	(revision 15338)
@@ -88,5 +88,5 @@
 
     for s in sources:
-        OpenSSL.rand.add(str(s), 0.01)
+        OpenSSL.rand.add(str(s), 1)
 
     # On Windows add the current contents of the screen to the PRNG state.
Index: src/common/jingle_xtls.py
===================================================================
--- src/common/jingle_xtls.py	(revision 15334)
+++ src/common/jingle_xtls.py	(revision 15338)
@@ -120,5 +120,5 @@
     try:
         with open(dh_params_name, "r") as dh_params_file:
-            ctx.load_tmp_dh(dh_params_name)
+            ctx.load_tmp_dh(str(dh_params_name))
     except IOError as err:
         log.warn('Unable to load DH parameter file: %s. You should generate it '
@@ -130,5 +130,5 @@
         try:
             with open(default_dh_params_name, "r") as default_dh_params_file:
-                ctx.load_tmp_dh(default_dh_params_name)
+                ctx.load_tmp_dh(str(default_dh_params_name))
         except IOError as err:
             log.error('Unable to load default DH parameter file: %s , %s'
Index: src/gajim.py
===================================================================
--- src/gajim.py	(revision 15332)
+++ src/gajim.py	(revision 15338)
@@ -311,5 +311,5 @@
     PYOPENSSL_PRNG_PRESENT = True
     # Seed from file
-    OpenSSL.rand.load_file(RNG_SEED)
+    OpenSSL.rand.load_file(str(RNG_SEED))
     crypto.add_entropy_sources_OpenSSL()
 except ImportError: