Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_imaplib.py506 ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
507 self.assertEqual(ssl_context.verify_mode, ssl.CERT_REQUIRED)
508 self.assertEqual(ssl_context.check_hostname, True)
509 ssl_context.load_verify_locations(CAFILE)
516 ssl_context=ssl_context)
520 ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
521 ssl_context.load_verify_locations(CAFILE)
525 ssl_context=ssl_context)
897 ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
898 ssl_context.load_verify_locations(CAFILE)
[all …]
Dtest_nntplib.py1521 return nntplib.NNTP_SSL(*pos, ssl_context=bypass_context, **kw)
/external/grpc-grpc/src/core/tsi/
Dssl_transport_security.cc88 SSL_CTX* ssl_context; member
1431 return create_tsi_ssl_handshaker(self->ssl_context, 1, server_name_indication, in tsi_ssl_client_handshaker_factory_create_handshaker()
1446 if (self->ssl_context != nullptr) SSL_CTX_free(self->ssl_context); in tsi_ssl_client_handshaker_factory_destroy()
1600 SSL_CTX* ssl_context = SSL_get_SSL_CTX(ssl); in server_handshaker_factory_new_session_callback() local
1601 if (ssl_context == nullptr) { in server_handshaker_factory_new_session_callback()
1604 void* arg = SSL_CTX_get_ex_data(ssl_context, g_ssl_ctx_ex_factory_index); in server_handshaker_factory_new_session_callback()
1640 SSL_CTX* ssl_context = nullptr; in tsi_create_ssl_client_handshaker_factory_with_options() local
1652 ssl_context = SSL_CTX_new(TLSv1_2_method()); in tsi_create_ssl_client_handshaker_factory_with_options()
1653 if (ssl_context == nullptr) { in tsi_create_ssl_client_handshaker_factory_with_options()
1662 impl->ssl_context = ssl_context; in tsi_create_ssl_client_handshaker_factory_with_options()
[all …]
/external/python/cpython3/Lib/
Dimaplib.py798 def starttls(self, ssl_context=None): argument
807 if ssl_context is None:
808 ssl_context = ssl._create_stdlib_context()
811 self.sock = ssl_context.wrap_socket(self.sock,
1271 certfile=None, ssl_context=None): argument
1272 if ssl_context is not None and keyfile is not None:
1275 if ssl_context is not None and certfile is not None:
1284 if ssl_context is None:
1285 ssl_context = ssl._create_stdlib_context(certfile=certfile,
1287 self.ssl_context = ssl_context
[all …]
Dnntplib.py1068 user=None, password=None, ssl_context=None, argument
1077 self.sock = _encrypt_on(self.sock, ssl_context, host)
/external/deqp/external/
Dfetch_sources.py119 ssl_context = ssl._create_unverified_context()
120 result = urlopen(url, context=ssl_context)
207 ssl_context = ssl._create_unverified_context()
208 result = urlopen(url, context=ssl_context)
/external/python/cpython3/Doc/library/
Dimaplib.rst81 certfile=None, ssl_context=None)
87 *ssl_context* is a :class:`ssl.SSLContext` object which allows bundling
92 *keyfile* and *certfile* are a legacy alternative to *ssl_context* - they
95 mutually exclusive with *ssl_context*, a :class:`ValueError` is raised
96 if *keyfile*/*certfile* is provided along with *ssl_context*.
99 *ssl_context* parameter added.
108 *keyfile* and *certfile* are deprecated in favor of *ssl_context*.
478 .. method:: IMAP4.starttls(ssl_context=None)
480 Send a ``STARTTLS`` command. The *ssl_context* argument is optional
Dnntplib.rst89 .. class:: NNTP_SSL(host, port=563, user=None, password=None, ssl_context=None, readermode=None, us…
95 *ssl_context* is also optional, and is a :class:`~ssl.SSLContext` object.
/external/python/cpython3/Lib/test/test_asyncio/
Dfunctional.py144 def start_tls(self, ssl_context, *, argument
148 ssl_sock = ssl_context.wrap_socket(
/external/curl/lib/vtls/
Dpolarssl.c75 ssl_context ssl;
/external/python/cpython3/Lib/asyncio/
Dbase_events.py249 def __init__(self, loop, sockets, protocol_factory, ssl_context, backlog, argument
257 self._ssl_context = ssl_context