Home
last modified time | relevance | path

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

12

/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.py231 return context.wrap_socket(sock, **kwargs)
538 ssl.wrap_socket, sock, keyfile=CERTFILE)
541 ssl.wrap_socket, sock, server_side=True)
544 ssl.wrap_socket, sock, server_side=True, certfile="")
545 with ssl.wrap_socket(sock, server_side=True, certfile=CERTFILE) as s:
550 ssl.wrap_socket(sock, certfile=NONEXISTINGCERT)
554 ssl.wrap_socket(sock,
559 ssl.wrap_socket(sock,
780 self.assertRaises(ValueError, ctx.wrap_socket, sock, True,
931 ctx.wrap_socket(s)
[all …]
Dtest_smtpnet.py14 sock = context.wrap_socket(sock, server_hostname=host)
Dssl_servers.py36 sslconn = self.context.wrap_socket(sock, 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.py405 self.sock = context.wrap_socket(self.sock,
451 sock = self.context.wrap_socket(sock,
Dssl.py399 def wrap_socket(self, sock, server_side=False, member in SSLContext
1163 newsock = self.context.wrap_socket(newsock,
1199 def wrap_socket(sock, keyfile=None, certfile=None, function
1219 return context.wrap_socket(
1298 with context.wrap_socket(sock) as sslsock:
Dsmtplib.py770 self.sock = context.wrap_socket(self.sock,
1038 new_socket = self.context.wrap_socket(new_socket,
Dftplib.py760 self.sock = self.context.wrap_socket(self.sock,
800 conn = self.context.wrap_socket(conn,
Dimaplib.py811 self.sock = ssl_context.wrap_socket(self.sock,
1292 return self.ssl_context.wrap_socket(sock,
/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:
428 :meth:`SSLContext.wrap_socket`. The call will attempt to validate the
506 .. function:: wrap_socket(sock, keyfile=None, certfile=None, \
525 :meth:`SSLContext.wrap_socket`.
530 :meth:`SSLContext.wrap_socket` instead of :func:`wrap_socket`. The
[all …]
/external/python/httplib2/python2/httplib2/test/
Dminiserver.py42 self.socket = ssl.wrap_socket(
/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.
433 The ssl module function ssl.wrap_socket() has been de-emphasized and
435 SSLContext.wrap_socket() method.
/external/python/cpython3/Lib/test/test_asyncio/
Dfunctional.py148 ssl_sock = ssl_context.wrap_socket(
Dutils.py162 ssock = context.wrap_socket(request, server_side=True)
/external/autotest/client/cros/
Dhttpd.py249 self.socket = ssl.wrap_socket(_socket,

12