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.py551 ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
552 self.assertEqual(ssl_context.verify_mode, ssl.CERT_REQUIRED)
553 self.assertEqual(ssl_context.check_hostname, True)
554 ssl_context.load_verify_locations(CAFILE)
561 ssl_context=ssl_context)
565 ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
566 ssl_context.load_verify_locations(CAFILE)
570 ssl_context=ssl_context)
943 ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
944 ssl_context.load_verify_locations(CAFILE)
[all …]
Dtest_nntplib.py1565 return nntplib.NNTP_SSL(*pos, ssl_context=bypass_context, **kw)
/external/rust/crates/grpcio-sys/grpc/src/core/tsi/
Dssl_transport_security.cc97 SSL_CTX* ssl_context; member
905 SSL_CTX* ssl_context, tsi_tls_version min_tls_version, in tsi_set_min_and_max_tls_versions() argument
907 if (ssl_context == nullptr) { in tsi_set_min_and_max_tls_versions()
919 SSL_CTX_set_min_proto_version(ssl_context, TLS1_2_VERSION); in tsi_set_min_and_max_tls_versions()
926 SSL_CTX_set_min_proto_version(ssl_context, TLS1_3_VERSION); in tsi_set_min_and_max_tls_versions()
937 SSL_CTX_set_max_proto_version(ssl_context, TLS1_2_VERSION); in tsi_set_min_and_max_tls_versions()
941 SSL_CTX_set_max_proto_version(ssl_context, TLS1_3_VERSION); in tsi_set_min_and_max_tls_versions()
945 SSL_CTX_set_max_proto_version(ssl_context, TLS1_2_VERSION); in tsi_set_min_and_max_tls_versions()
1699 return create_tsi_ssl_handshaker(factory->ssl_context, 1, in tsi_ssl_client_handshaker_factory_create_handshaker()
1715 if (self->ssl_context != nullptr) SSL_CTX_free(self->ssl_context); in tsi_ssl_client_handshaker_factory_destroy()
[all …]
/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()
751 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.py809 def starttls(self, ssl_context=None): argument
818 if ssl_context is None:
819 ssl_context = ssl._create_stdlib_context()
822 self.sock = ssl_context.wrap_socket(self.sock,
1307 certfile=None, ssl_context=None, timeout=None): argument
1308 if ssl_context is not None and keyfile is not None:
1311 if ssl_context is not None and certfile is not None:
1320 if ssl_context is None:
1321 ssl_context = ssl._create_stdlib_context(certfile=certfile,
1323 self.ssl_context = ssl_context
[all …]
Dnntplib.py1018 user=None, password=None, ssl_context=None, argument
1024 self.ssl_context = ssl_context
1031 sock = _encrypt_on(sock, self.ssl_context, self.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.rst86 certfile=None, ssl_context=None, timeout=None)
92 *ssl_context* is a :class:`ssl.SSLContext` object which allows bundling
97 *keyfile* and *certfile* are a legacy alternative to *ssl_context* - they
100 mutually exclusive with *ssl_context*, a :class:`ValueError` is raised
101 if *keyfile*/*certfile* is provided along with *ssl_context*.
108 *ssl_context* parameter was added.
117 *keyfile* and *certfile* are deprecated in favor of *ssl_context*.
502 .. method:: IMAP4.starttls(ssl_context=None)
504 Send a ``STARTTLS`` command. The *ssl_context* argument is optional
Dnntplib.rst100 .. class:: NNTP_SSL(host, port=563, user=None, password=None, ssl_context=None, readermode=None, us…
106 *ssl_context* is also optional, and is a :class:`~ssl.SSLContext` object.
/external/python/cpython3/Lib/test/test_asyncio/
Dfunctional.py137 def start_tls(self, ssl_context, *, argument
141 ssl_sock = ssl_context.wrap_socket(
/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