Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/test_asyncio/
Dfunctional.py148 ssl_sock = ssl_context.wrap_socket(
154 ssl_sock.do_handshake()
156 ssl_sock.close()
161 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.py594 def cb_sni(ssl_sock, server_name, initial_context): argument
Dtest_ssl.py3054 ssl_sock = test_wrap_socket(c)
4013 def servername_cb(ssl_sock, server_name, initial_context): argument
4016 ssl_sock.context = other_context
4052 def cb_returning_alert(ssl_sock, server_name, initial_context): argument
4066 def cb_raising(ssl_sock, server_name, initial_context): argument
4084 def cb_wrong_return_type(ssl_sock, server_name, initial_context): argument
/external/python/httplib2/python2/httplib2/
D__init__.py117 ssl_sock = socket.ssl(sock, key_file, cert_file)
118 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.rst1888 ssl_sock = context.wrap_socket(s, server_hostname='www.verisign.com')
1889 ssl_sock.connect(('www.verisign.com', 443))
/external/scapy/doc/notebooks/
DHTTP_2_Tuto.ipynb106 "ssl_sock = ssl_ctx.wrap_socket(s, server_hostname=dn)"
124 "ssl_sock.connect(ip_and_port)\n",
125 "assert('h2' == ssl_sock.selected_alpn_protocol())"
155 "ss = supersocket.SSLStreamSocket(ssl_sock, basecls=h2.H2Frame)\n",