python-pyOpenSSL/rsa128-i586.patch
Jan Matejek fdb9f83f9d Accepting request 396253 from home:matejcik:branches:devel:languages:python
- added %check section with testsuite
- skip-networked-test.patch - mark a test as networked so that we can
  specify non-network test run
- rsa128-i586.patch - sidestep a crasher bug on 32bit platforms
  by generating reasonably-sized RSA keys instead of small 128bit ones

OBS-URL: https://build.opensuse.org/request/show/396253
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=34
2016-05-17 13:40:41 +00:00

32 lines
1.2 KiB
Diff

Index: pyOpenSSL-16.0.0/tests/test_ssl.py
===================================================================
--- pyOpenSSL-16.0.0.orig/tests/test_ssl.py
+++ pyOpenSSL-16.0.0/tests/test_ssl.py
@@ -549,7 +549,7 @@ class ContextTests(TestCase, _LoopbackMi
instance.
"""
key = PKey()
- key.generate_key(TYPE_RSA, 128)
+ key.generate_key(TYPE_RSA, 2048)
ctx = Context(TLSv1_METHOD)
ctx.use_privatekey(key)
self.assertRaises(TypeError, ctx.use_privatekey, "")
@@ -569,7 +569,7 @@ class ContextTests(TestCase, _LoopbackMi
arguments does not raise an exception.
"""
key = PKey()
- key.generate_key(TYPE_RSA, 128)
+ key.generate_key(TYPE_RSA, 2048)
with open(pemfile, "wt") as pem:
pem.write(
@@ -920,7 +920,7 @@ class ContextTests(TestCase, _LoopbackMi
passphrase. Return the path to the new file.
"""
key = PKey()
- key.generate_key(TYPE_RSA, 128)
+ key.generate_key(TYPE_RSA, 2048)
pemFile = self.mktemp()
fObj = open(pemFile, 'w')
pem = dump_privatekey(FILETYPE_PEM, key, "blowfish", passphrase)