Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_imaplib.py502 ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
503 self.assertEqual(ssl_context.verify_mode, ssl.CERT_REQUIRED)
504 self.assertEqual(ssl_context.check_hostname, True)
505 ssl_context.load_verify_locations(CAFILE)
512 ssl_context=ssl_context)
516 ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
517 ssl_context.load_verify_locations(CAFILE)
521 ssl_context=ssl_context)
894 ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
895 ssl_context.load_verify_locations(CAFILE)
[all …]
Dtest_nntplib.py1542 return nntplib.NNTP_SSL(*pos, ssl_context=bypass_context, **kw)
/external/python/httplib2/tests/
Dtest_https.py75 not hasattr(tests.ssl_context(), "minimum_version"),
92 not hasattr(tests.ssl_context(), "maximum_version"),
110 not hasattr(tests.ssl_context(), "minimum_version"),
130 not hasattr(tests.ssl_context(), "maximum_version"),
189 not hasattr(tests.ssl_context(), "set_servername_callback"),
D__init__.py354 context = ssl_context()
749 def ssl_context(protocol=None): function
/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.py800 def starttls(self, ssl_context=None): argument
809 if ssl_context is None:
810 ssl_context = ssl._create_stdlib_context()
813 self.sock = ssl_context.wrap_socket(self.sock,
1280 certfile=None, ssl_context=None): argument
1281 if ssl_context is not None and keyfile is not None:
1284 if ssl_context is not None and certfile is not None:
1293 if ssl_context is None:
1294 ssl_context = ssl._create_stdlib_context(certfile=certfile,
1296 self.ssl_context = ssl_context
[all …]
Dnntplib.py1071 user=None, password=None, ssl_context=None, argument
1081 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)
208 ssl_context = ssl._create_unverified_context()
209 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*.
485 .. method:: IMAP4.starttls(ssl_context=None)
487 Send a ``STARTTLS`` command. The *ssl_context* argument is optional
Dnntplib.rst96 .. class:: NNTP_SSL(host, port=563, user=None, password=None, ssl_context=None, readermode=None, us…
102 *ssl_context* is also optional, and is a :class:`~ssl.SSLContext` object.
/external/python/cpython3/Lib/test/test_asyncio/
Dfunctional.py136 def start_tls(self, ssl_context, *, argument
140 ssl_sock = ssl_context.wrap_socket(
/external/curl/lib/vtls/
Dpolarssl.c76 ssl_context ssl;
/external/python/cpython3/Lib/asyncio/
Dbase_events.py275 def __init__(self, loop, sockets, protocol_factory, ssl_context, backlog, argument
283 self._ssl_context = ssl_context