summaryrefslogtreecommitdiff
path: root/M2Crypto/EVP.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2017-10-18 20:37:53 +0200
committerMatěj Cepl <mcepl@cepl.eu>2017-10-30 19:42:19 +0100
commit182d7e3eee82a7730a7b6ac4558e117bb3a39493 (patch)
tree5d18f3f7af074ecab300c8104716bb5fe08fe7ac /M2Crypto/EVP.py
parent7b77d1c67bdb338c54fc71055103b3919437e9b1 (diff)
downloadm2crypto-182d7e3eee82a7730a7b6ac4558e117bb3a39493.tar.gz
Add exceptions to pkey_get1_rsa function.
Diffstat (limited to 'M2Crypto/EVP.py')
-rw-r--r--M2Crypto/EVP.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/M2Crypto/EVP.py b/M2Crypto/EVP.py
index ad7ca47..1b1d091 100644
--- a/M2Crypto/EVP.py
+++ b/M2Crypto/EVP.py
@@ -285,8 +285,6 @@ class PKey:
instance is holding.
"""
rsa_ptr = m2.pkey_get1_rsa(self.pkey)
- if rsa_ptr is None:
- raise ValueError("PKey instance is not holding a RSA key")
rsa = RSA.RSA_pub(rsa_ptr, 1)
return rsa