Home
last modified time | relevance | path

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

123

/external/python/cpython2/Lib/test/
Dtest_ssl.py328 ss = ssl.wrap_socket(s)
337 with closing(ssl.wrap_socket(s)) as ss:
351 with closing(ssl.wrap_socket(s)) as ss:
358 ssl.wrap_socket, sock, keyfile=CERTFILE)
361 ssl.wrap_socket, sock, server_side=True)
364 ssl.wrap_socket, sock, server_side=True, certfile="")
365 with closing(ssl.wrap_socket(sock, server_side=True, certfile=CERTFILE)) as s:
370 ssl.wrap_socket(sock, certfile=NONEXISTINGCERT)
374 ssl.wrap_socket(sock,
379 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.py248 self.socket = ssl.wrap_socket(self.socket, certfile=CERTFILE,
/external/python/cpython3/Lib/test/
Dtest_ssl.py302 return context.wrap_socket(sock, **kwargs)
608 ssl.wrap_socket, sock, keyfile=CERTFILE)
611 ssl.wrap_socket, sock, server_side=True)
614 ssl.wrap_socket, sock, server_side=True, certfile="")
615 with ssl.wrap_socket(sock, server_side=True, certfile=CERTFILE) as s:
620 ssl.wrap_socket(sock, certfile=NONEXISTINGCERT)
624 ssl.wrap_socket(sock,
629 ssl.wrap_socket(sock,
857 self.assertRaises(ValueError, ctx.wrap_socket, sock, True,
1006 ctx.wrap_socket(s)
[all …]
Dtest_smtpnet.py15 sock = context.wrap_socket(sock, server_hostname=host)
Dssl_servers.py37 sslconn = self.context.wrap_socket(sock, server_side=True)
/external/python/httplib2/tests/
Dtest_https.py118 return context.wrap_socket(server, server_side=True)
147 return context.wrap_socket(server, server_side=True)
170 return context.wrap_socket(server, server_side=True)
197 return context.wrap_socket(server, server_side=True)
/external/python/setuptools/setuptools/
Dssl_support.py191 self.sock = ctx.wrap_socket(sock, server_hostname=actual_host)
194 self.sock = ssl.wrap_socket(
/external/grpc-grpc/test/core/http/
Dtest_server.py55 httpd.socket = ssl.wrap_socket(httpd.socket, certfile=_PEM, keyfile=_KEY, server_side=True)
/external/python/cpython3/Lib/
Dpoplib.py410 self.sock = context.wrap_socket(self.sock,
456 sock = self.context.wrap_socket(sock,
Dssl.py494 def wrap_socket(self, sock, server_side=False, member in SSLContext
1355 newsock = self.context.wrap_socket(newsock,
1385 def wrap_socket(sock, keyfile=None, certfile=None, function
1405 return context.wrap_socket(
1484 with context.wrap_socket(sock) as sslsock:
Dftplib.py749 self.sock = self.context.wrap_socket(self.sock, server_hostname=self.host)
788 conn = self.context.wrap_socket(conn,
Dsmtplib.py774 self.sock = context.wrap_socket(self.sock,
1041 new_socket = self.context.wrap_socket(new_socket,
/external/python/httplib2/python2/httplib2/test/
Dminiserver.py42 self.socket = ssl.wrap_socket(
/external/python/cpython2/Lib/
Dssl.py361 def wrap_socket(self, sock, server_side=False, member in SSLContext
895 newsock = self.context.wrap_socket(newsock,
937 def wrap_socket(sock, keyfile=None, certfile=None, function
1023 with closing(context.wrap_socket(sock)) as sslsock:
Dsmtplib.py650 self.sock = ssl.wrap_socket(self.sock, keyfile, certfile)
808 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.py692 self.sock = self.context.wrap_socket(self.sock,
724 conn = self.context.wrap_socket(conn,
/external/python/cpython3/Doc/library/
Dssl.rst50 by SSL sockets created through the :meth:`SSLContext.wrap_socket` method.
70 :meth:`SSLContext.wrap_socket` of an :class:`SSLContext` instance to wrap
73 settings. The old :func:`wrap_socket` function is deprecated since it is
86 with context.wrap_socket(sock, server_hostname=hostname) as ssock:
98 with context.wrap_socket(sock, server_hostname=hostname) as ssock:
110 with context.wrap_socket(sock, server_side=True) as ssock:
436 :meth:`SSLContext.wrap_socket`. The call will attempt to validate the
514 .. function:: wrap_socket(sock, keyfile=None, certfile=None, \
533 :meth:`SSLContext.wrap_socket`.
538 :meth:`SSLContext.wrap_socket` instead of :func:`wrap_socket`. The
[all …]
/external/python/cpython2/Doc/library/
Dssl.rst56 by SSL sockets created through the :meth:`SSLContext.wrap_socket` method.
141 Python 2.7.9, it can be more flexible to use :meth:`SSLContext.wrap_socket`
144 .. function:: wrap_socket(sock, keyfile=None, certfile=None, server_side=False, cert_reqs=CERT_NONE…
157 :meth:`accept` method. :func:`wrap_socket` may raise :exc:`SSLError`.
438 same format as used for the same parameter in :func:`wrap_socket`. The call
522 parameter to :func:`wrap_socket`. In this mode (the default), no
532 parameter to :func:`wrap_socket`. In this mode no certificates will be
539 value of the ``ca_certs`` parameter to :func:`wrap_socket`.
544 parameter to :func:`wrap_socket`. In this mode, certificates are
550 value of the ``ca_certs`` parameter to :func:`wrap_socket`.
[all …]
/external/python/cpython3/Misc/NEWS.d/
D3.7.0b2.rst98 constructors. Users were suppose to use ssl.wrap_socket() or SSLContext.
432 The ssl module function ssl.wrap_socket() has been de-emphasized and
434 SSLContext.wrap_socket() method.
D3.9.0rc2.rst258 ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer
/external/python/cpython3/Lib/test/test_asyncio/
Dfunctional.py141 ssl_sock = ssl_context.wrap_socket(
/external/autotest/client/cros/
Dhttpd.py251 self.socket = ssl.wrap_socket(_socket,

123