From 2065be5dcb2d288db660cfab51cd37c94735ccef Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Sat, 19 Apr 2014 08:48:18 -0400 Subject: These three exceptions are no longer used. --- OpenSSL/SSL.py | 31 ------------------------------- 1 file changed, 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. -- cgit v1.2.1