python-pyOpenSSL/bug-lp-1265482.diff

14 lines
532 B
Diff

Index: OpenSSL/test/test_crypto.py
===================================================================
--- OpenSSL/test/test_crypto.py.orig
+++ OpenSSL/test/test_crypto.py
@@ -627,7 +627,7 @@ class PKeyTests(TestCase):
:py:meth:`PKeyType.generate_key` generates an RSA key when passed
:py:data:`TYPE_RSA` as a type and a reasonable number of bits.
"""
- bits = 128
+ bits = 2048
key = PKey()
key.generate_key(TYPE_RSA, bits)
self.assertEqual(key.type(), TYPE_RSA)