diff options
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2014-04-19 08:48:18 -0400 |
---|---|---|
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2014-04-19 08:48:18 -0400 |
commit | 2065be5dcb2d288db660cfab51cd37c94735ccef (patch) | |
tree | 20208e8cbd398510190b6fb9b23b0faee1699b5f | |
parent | f49adaedc4a502f91086125dfcc07c9b4de86a45 (diff) | |
download | pyopenssl-2065be5dcb2d288db660cfab51cd37c94735ccef.tar.gz |
These three exceptions are no longer used.
-rw-r--r-- | OpenSSL/SSL.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/OpenSSL/SSL.py b/OpenSSL/SSL.py index c5b233b..a4b66ed 100644 --- a/OpenSSL/SSL.py +++ b/OpenSSL/SSL.py @@ -216,37 +216,6 @@ def _asFileDescriptor(obj): -class ECNotAvailable(ValueError): - """ - Raised if a request for an elliptic curve fails because OpenSSL - is compiled without elliptic curve support. - """ - def __init__(self): - ValueError.__init__(self, "OpenSSL is compiled without EC support") - - - -class UnknownObject(ValueError): - """ - Raised if OpenSSL does not recognize the requested object. - """ - def __init__(self, sn): - ValueError.__init__(self, "OpenSSL does not recognize %r" % sn) - self.sn = sn - - - -class UnsupportedEllipticCurve(ValueError): - """ - Raised if OpenSSL does not support the requested elliptic curve. - """ - def __init__(self, sn): - ValueError.__init__( - self, "OpenSSL does not support the elliptic curve %r" % sn) - self.sn = sn - - - def SSLeay_version(type): """ Return a string describing the version of OpenSSL in use. |