forked from pool/python-pyOpenSSL
Accepting request 491273 from home:TheBlackCat:branches:devel:languages:python
- Implement single-spec version - Fix source URL - Update to 17.0.0 OBS-URL: https://build.opensuse.org/request/show/491273 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=38
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
Index: pyOpenSSL-16.0.0/tests/test_ssl.py
|
||||
Index: pyOpenSSL-17.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.
|
||||
--- pyOpenSSL-17.0.0.orig/tests/test_ssl.py
|
||||
+++ pyOpenSSL-17.0.0/tests/test_ssl.py
|
||||
@@ -525,7 +525,7 @@
|
||||
`Context.use_privatekey` takes an `OpenSSL.crypto.PKey` 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
|
||||
with pytest.raises(TypeError):
|
||||
@@ -546,7 +546,7 @@
|
||||
arguments does not raise an exception.
|
||||
"""
|
||||
key = PKey()
|
||||
@@ -20,12 +20,12 @@ Index: pyOpenSSL-16.0.0/tests/test_ssl.py
|
||||
|
||||
with open(pemfile, "wt") as pem:
|
||||
pem.write(
|
||||
@@ -920,7 +920,7 @@ class ContextTests(TestCase, _LoopbackMi
|
||||
@@ -849,7 +849,7 @@
|
||||
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)
|
||||
with open(tmpfile, 'w') as fObj:
|
||||
fObj.write(pem.decode('ascii'))
|
||||
|
Reference in New Issue
Block a user