Lines Matching refs:ssl_context
809 def starttls(self, ssl_context=None): argument
818 if ssl_context is None:
819 ssl_context = ssl._create_stdlib_context()
822 self.sock = ssl_context.wrap_socket(self.sock,
1307 certfile=None, ssl_context=None, timeout=None): argument
1308 if ssl_context is not None and keyfile is not None:
1311 if ssl_context is not None and certfile is not None:
1320 if ssl_context is None:
1321 ssl_context = ssl._create_stdlib_context(certfile=certfile,
1323 self.ssl_context = ssl_context
1328 return self.ssl_context.wrap_socket(sock,