Home | History | Annotate | Download | only in python2.7

Lines Matching defs:ssl

595     import ssl
632 ssl_version = ssl.PROTOCOL_TLSv1
642 if secure and not isinstance(self.sock, ssl.SSLSocket):
647 '''Set up secure control connection by using TLS/SSL.'''
648 if isinstance(self.sock, ssl.SSLSocket):
650 if self.ssl_version == ssl.PROTOCOL_TLSv1:
653 resp = self.voidcmd('AUTH SSL')
654 self.sock = ssl.wrap_socket(self.sock, self.keyfile, self.certfile,
686 conn = ssl.wrap_socket(conn, self.keyfile, self.certfile,
699 # shutdown ssl layer
700 if isinstance(conn, ssl.SSLSocket):
722 # shutdown ssl layer
723 if isinstance(conn, ssl.SSLSocket):
739 # shutdown ssl layer
740 if isinstance(conn, ssl.SSLSocket):
758 # shutdown ssl layer
759 if isinstance(conn, ssl.SSLSocket):
766 all_errors = (Error, IOError, EOFError, ssl.SSLError)