python-pyOpenSSL/bug-lp-1265482.diff

14 lines
476 B
Diff

Index: OpenSSL/test/test_crypto.py
===================================================================
--- OpenSSL/tests/test_crypto.py.orig
+++ OpenSSL/tests/test_crypto.py
@@ -627,7 +627,7 @@
`PKey.generate_key` generates an RSA key when passed `TYPE_RSA` as a
type and a reasonable number of bits.
"""
- bits = 128
+ bits = 2048
key = PKey()
key.generate_key(TYPE_RSA, bits)
assert key.type() == TYPE_RSA