Home
last modified time | relevance | path

Searched refs:ssl_sock (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Lib/test/test_asyncio/
Dfunctional.py141 ssl_sock = ssl_context.wrap_socket(
147 ssl_sock.do_handshake()
149 ssl_sock.close()
154 self.__sock = ssl_sock
/external/python/cpython2/Lib/
Dssl.py611 server_hostname, ssl_sock=self)
863 … self._sslobj = self.context._wrap_socket(self._sock, False, self.server_hostname, ssl_sock=self)
1043 ssl_sock = ctx._wrap_socket(sock, server_side=False)
1051 ssl_sock.do_handshake()
1053 return ssl_sock
/external/python/cpython2/Modules/
D_ssl.c331 PyObject *ssl_sock; member
574 char *server_hostname, PyObject *ssl_sock) in newPySSLSocket() argument
587 self->ssl_sock = NULL; in newPySSLSocket()
667 if (ssl_sock != Py_None) { in newPySSLSocket()
668 self->ssl_sock = PyWeakref_NewRef(ssl_sock, NULL); in newPySSLSocket()
669 if (self->ssl_sock == NULL) { in newPySSLSocket()
1679 Py_XDECREF(self->ssl_sock); in PySSL_dealloc()
3105 PyObject *hostname_obj, *ssl_sock = Py_None, *res; in context_wrap_socket() local
3113 &ssl_sock)) { in context_wrap_socket()
3118 "idna", &hostname, &ssl_sock)) in context_wrap_socket()
[all …]
/external/python/cpython2/Lib/test/
Dtest_ssl.py2268 ssl_sock = ssl.wrap_socket(c)
3050 def servername_cb(ssl_sock, server_name, initial_context): argument
3053 ssl_sock.context = other_context
3089 def cb_returning_alert(ssl_sock, server_name, initial_context): argument
3104 def cb_raising(ssl_sock, server_name, initial_context): argument
3122 def cb_wrong_return_type(ssl_sock, server_name, initial_context): argument
Dtest_urllib2_localnet.py578 def cb_sni(ssl_sock, server_name, initial_context): argument
/external/python/cpython3/Lib/test/
Dtest_urllib2_localnet.py598 def cb_sni(ssl_sock, server_name, initial_context): argument
Dtest_ssl.py3168 ssl_sock = test_wrap_socket(c)
4130 def servername_cb(ssl_sock, server_name, initial_context): argument
4133 ssl_sock.context = other_context
4169 def cb_returning_alert(ssl_sock, server_name, initial_context): argument
4183 def cb_raising(ssl_sock, server_name, initial_context): argument
4203 def cb_wrong_return_type(ssl_sock, server_name, initial_context): argument
/external/python/httplib2/python2/httplib2/
D__init__.py124 ssl_sock = socket.ssl(sock, key_file, cert_file)
125 return httplib.FakeSocket(sock, ssl_sock)
/external/python/cpython2/Doc/library/
Dssl.rst1342 ssl_sock = context.wrap_socket(s, server_hostname='www.verisign.com')
1343 ssl_sock.connect(('www.verisign.com', 443))
/external/python/cpython3/Doc/library/
Dssl.rst1902 ssl_sock = context.wrap_socket(s, server_hostname='www.verisign.com')
1903 ssl_sock.connect(('www.verisign.com', 443))