summaryrefslogtreecommitdiff
path: root/tests/test_evp.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2016-10-30 18:59:12 +0100
committerMatěj Cepl <mcepl@cepl.eu>2016-10-30 19:02:06 +0100
commitf3499a1555c7a0b711ae166753b7b8f19baa73b3 (patch)
tree6bd2cca9bb9786669c25b0f24dc94de7bd22a538 /tests/test_evp.py
parentc6840249172dc7c6dae2865b8599d4ca715532c4 (diff)
downloadm2crypto-f3499a1555c7a0b711ae166753b7b8f19baa73b3.tar.gz
Add EVP.PKey().assign_rsa() capture=False parameter
It is required, when it is used repeatedly.
Diffstat (limited to 'tests/test_evp.py')
-rw-r--r--tests/test_evp.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_evp.py b/tests/test_evp.py
index 73e2d8e..b890dec 100644
--- a/tests/test_evp.py
+++ b/tests/test_evp.py
@@ -285,7 +285,9 @@ class EVPTestCase(unittest.TestCase):
signature = response['sign'].decode('base64')
data = response['data']
verify_evp = EVP.PKey()
- verify_evp.assign_rsa(SIGN_PUBLIC)
+ # capture parameter on the following line is required by
+ # the documentation
+ verify_evp.assign_rsa(SIGN_PUBLIC, capture=False)
verify_evp.verify_init()
verify_evp.verify_update(data)
return verify_evp.verify_final(signature) == 1