summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/gajim/files/gajim-0.16_beta2-pyopenssl-backport-1.patch')
-rw-r--r--net-im/gajim/files/gajim-0.16_beta2-pyopenssl-backport-1.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/net-im/gajim/files/gajim-0.16_beta2-pyopenssl-backport-1.patch b/net-im/gajim/files/gajim-0.16_beta2-pyopenssl-backport-1.patch
new file mode 100644
index 000000000000..576c8b394424
--- /dev/null
+++ b/net-im/gajim/files/gajim-0.16_beta2-pyopenssl-backport-1.patch
@@ -0,0 +1,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: