Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(12)  |  Derive(0)  |  Import(4)
Base class for all TLS/SSL exceptions.

Exception args is a message string.

src/k/a/kaa-base-0.99.2dev-384-2b73caca/src/net/tls/m2.py   kaa-base(Download)
# kaa imports
import kaa
from .common import TLSError, TLSProtocolError, TLSVerificationError, TLSSocketBase
 
M2Crypto.threading.init()
                # This shouldn't happen in normal circumstances.  It's more of a sanity
                # check.
                raise TLSError('Read queue overflow')
 
            self._read_queue.write(decrypted)
            except M2Crypto.SSL.SSLError, e:
                # Reraise wrapped as TLSSocketError
                raise TLSError('Invalid certificate and/or key: %s' % e.message)
 
        if kwargs.get('verify'):
                # Verification was requested but on CA bundle found, therefore
                # impossible to verify.
                raise TLSError('CA bundle not found but verification requested.')
            else:
                # Load CA bundle.
                    # is a constant that m2crypto doesn't export. :/
                    if err != 185057381:
                        raise TLSError(m2.err_reason_error_string(err))
 
 

src/k/a/kaa-base-HEAD/src/net/tls/m2.py   kaa-base(Download)
# kaa imports
import kaa
from .common import TLSError, TLSProtocolError, TLSVerificationError, TLSSocketBase
 
M2Crypto.threading.init()
                # This shouldn't happen in normal circumstances.  It's more of a sanity
                # check.
                raise TLSError('Read queue overflow')
 
            self._read_queue.write(decrypted)
            except M2Crypto.SSL.SSLError, e:
                # Reraise wrapped as TLSSocketError
                raise TLSError('Invalid certificate and/or key: %s' % e.message)
 
        if kwargs.get('verify'):
                # Verification was requested but on CA bundle found, therefore
                # impossible to verify.
                raise TLSError('CA bundle not found but verification requested.')
            else:
                # Load CA bundle.
                    # is a constant that m2crypto doesn't export. :/
                    if err != 185057381:
                        raise TLSError(m2.err_reason_error_string(err))
 
 

src/k/a/kaa-base-0.99.2dev-384-2b73caca/src/net/tls/tlslite.py   kaa-base(Download)
# kaa imports
import kaa
from .common import TLSError, TLSProtocolError, TLSVerificationError, TLSSocketBase
 
# get logging object
    def _starttls(self, mode, *args, **kwargs):
         # TODO: accept 'verify' and 'check' kwargs like the m2 backend
        if not self.connected:
            raise TLSError('Socket not connected')
 
        """
        if not self._rmon:
            raise TLSError('Socket not connected')
 
        if session is None:

src/k/a/kaa-base-HEAD/src/net/tls/tlslite.py   kaa-base(Download)
# kaa imports
import kaa
from .common import TLSError, TLSProtocolError, TLSVerificationError, TLSSocketBase
 
# get logging object
    def _starttls(self, mode, *args, **kwargs):
         # TODO: accept 'verify' and 'check' kwargs like the m2 backend
        if not self.connected:
            raise TLSError('Socket not connected')
 
        """
        if not self._rmon:
            raise TLSError('Socket not connected')
 
        if session is None: