Home
last modified time | relevance | path

Searched refs:wrap_socket (Results 1 – 25 of 41) sorted by relevance

12

/external/python/cpython2/Lib/test/
Dtest_ssl.py321 ss = ssl.wrap_socket(s)
330 with closing(ssl.wrap_socket(s)) as ss:
344 with closing(ssl.wrap_socket(s)) as ss:
351 ssl.wrap_socket, sock, keyfile=CERTFILE)
354 ssl.wrap_socket, sock, server_side=True)
357 ssl.wrap_socket, sock, server_side=True, certfile="")
358 with closing(ssl.wrap_socket(sock, server_side=True, certfile=CERTFILE)) as s:
363 ssl.wrap_socket(sock, certfile=NONEXISTINGCERT)
367 ssl.wrap_socket(sock,
372 ssl.wrap_socket(sock,
[all …]
Dtest_imaplib.py43 connstream = ssl.wrap_socket(newsocket,
Dssl_servers.py37 sslconn = self.context.wrap_socket(sock, server_side=True)
Dtest_poplib.py238 self.socket = ssl.wrap_socket(self.socket, certfile=CERTFILE,
/external/python/cpython3/Lib/test/
Dtest_ssl.py159 return context.wrap_socket(sock, **kwargs)
412 ssl.wrap_socket, sock, keyfile=CERTFILE)
415 ssl.wrap_socket, sock, server_side=True)
418 ssl.wrap_socket, sock, server_side=True, certfile="")
419 with ssl.wrap_socket(sock, server_side=True, certfile=CERTFILE) as s:
424 ssl.wrap_socket(sock, certfile=NONEXISTINGCERT)
428 ssl.wrap_socket(sock,
433 ssl.wrap_socket(sock,
621 self.assertRaises(ValueError, ctx.wrap_socket, sock, True,
772 ctx.wrap_socket(s)
[all …]
Dtest_smtpnet.py14 sock = context.wrap_socket(sock, server_hostname=host)
Dssl_servers.py37 sslconn = self.context.wrap_socket(sock, server_side=True)
Dtest_poplib.py157 tls_sock = context.wrap_socket(self.socket,
Dtest_nntplib.py1504 def wrap_socket(sock, **args): member in bypass_context
1549 client = context.wrap_socket(
/external/python/cpython3/Lib/
Dpoplib.py402 self.sock = context.wrap_socket(self.sock,
448 sock = self.context.wrap_socket(sock,
Dssl.py393 def wrap_socket(self, sock, server_side=False, member in SSLContext
1106 newsock = self.context.wrap_socket(newsock,
1131 def wrap_socket(sock, keyfile=None, certfile=None, function
1216 with context.wrap_socket(sock) as sslsock:
Dsmtplib.py769 self.sock = context.wrap_socket(self.sock,
1036 new_socket = self.context.wrap_socket(new_socket,
Dftplib.py758 self.sock = self.context.wrap_socket(self.sock,
798 conn = self.context.wrap_socket(conn,
Dimaplib.py803 self.sock = ssl_context.wrap_socket(self.sock,
1284 return self.ssl_context.wrap_socket(sock,
Dnntplib.py292 return context.wrap_socket(sock, server_hostname=hostname)
/external/python/cpython2/Lib/
Dssl.py355 def wrap_socket(self, sock, server_side=False, member in SSLContext
889 newsock = self.context.wrap_socket(newsock,
931 def wrap_socket(sock, keyfile=None, certfile=None, function
1017 with closing(context.wrap_socket(sock)) as sslsock:
Dsmtplib.py649 self.sock = ssl.wrap_socket(self.sock, keyfile, certfile)
807 new_socket = ssl.wrap_socket(new_socket, self.keyfile, self.certfile)
Dpoplib.py360 self.sslobj = ssl.wrap_socket(self.sock, self.keyfile, self.certfile)
Dftplib.py680 self.sock = self.context.wrap_socket(self.sock,
712 conn = self.context.wrap_socket(conn,
Dhttplib.py1262 self.sock = self._context.wrap_socket(self.sock,
/external/python/cpython2/Doc/library/
Dssl.rst53 by SSL sockets created through the :meth:`SSLContext.wrap_socket` method.
138 Python 2.7.9, it can be more flexible to use :meth:`SSLContext.wrap_socket`
141 .. function:: wrap_socket(sock, keyfile=None, certfile=None, server_side=False, cert_reqs=CERT_NONE…
154 :meth:`accept` method. :func:`wrap_socket` may raise :exc:`SSLError`.
425 same format as used for the same parameter in :func:`wrap_socket`. The call
509 parameter to :func:`wrap_socket`. In this mode (the default), no
519 parameter to :func:`wrap_socket`. In this mode no certificates will be
526 value of the ``ca_certs`` parameter to :func:`wrap_socket`.
531 parameter to :func:`wrap_socket`. In this mode, certificates are
537 value of the ``ca_certs`` parameter to :func:`wrap_socket`.
[all …]
/external/python/cpython3/Doc/library/
Dssl.rst50 by SSL sockets created through the :meth:`SSLContext.wrap_socket` method.
143 Python 3.2, it can be more flexible to use :meth:`SSLContext.wrap_socket`
146 .. function:: wrap_socket(sock, keyfile=None, certfile=None, server_side=False, cert_reqs=CERT_NONE…
159 :meth:`accept` method. :func:`wrap_socket` may raise :exc:`SSLError`.
439 same format as used for the same parameter in :func:`wrap_socket`. The call
528 parameter to :func:`wrap_socket`. In this mode (the default), no
538 parameter to :func:`wrap_socket`. In this mode no certificates will be
545 value of the ``ca_certs`` parameter to :func:`wrap_socket`.
550 parameter to :func:`wrap_socket`. In this mode, certificates are
556 value of the ``ca_certs`` parameter to :func:`wrap_socket`.
[all …]
/external/autotest/client/cros/
Dhttpd.py218 self.socket = ssl.wrap_socket(_socket,
/external/python/cpython3/Lib/asyncio/
Dtest_utils.py125 ssock = context.wrap_socket(request, server_side=True)
/external/python/cpython3/Lib/http/
Dclient.py1399 self.sock = self._context.wrap_socket(self.sock,

12