Home
last modified time | relevance | path

Searched refs:verify_mode (Results 1 – 25 of 40) sorted by relevance

12

/external/python/cpython3/Lib/test/
Dtest_ssl.py295 context.verify_mode = cert_reqs
1158 self.assertEqual(ctx.verify_mode, ssl.CERT_NONE)
1159 ctx.verify_mode = ssl.CERT_OPTIONAL
1160 self.assertEqual(ctx.verify_mode, ssl.CERT_OPTIONAL)
1161 ctx.verify_mode = ssl.CERT_REQUIRED
1162 self.assertEqual(ctx.verify_mode, ssl.CERT_REQUIRED)
1163 ctx.verify_mode = ssl.CERT_NONE
1164 self.assertEqual(ctx.verify_mode, ssl.CERT_NONE)
1166 ctx.verify_mode = None
1168 ctx.verify_mode = 42
[all …]
Dtest_smtpnet.py31 context.verify_mode = ssl.CERT_NONE
66 context.verify_mode = ssl.CERT_NONE
Dtest_poplib.py378 self.assertEqual(ctx.verify_mode, ssl.CERT_REQUIRED)
419 ctx.verify_mode = ssl.CERT_NONE
/external/libwebsockets/lib/tls/mbedtls/wrapper/platform/
Dssl_pm.c233 if (ssl->verify_mode == SSL_VERIFY_PEER) in ssl_pm_reload_crt()
235 else if (ssl->verify_mode == SSL_VERIFY_FAIL_IF_NO_PEER_CERT) in ssl_pm_reload_crt()
237 else if (ssl->verify_mode == SSL_VERIFY_CLIENT_ONCE) in ssl_pm_reload_crt()
932 if (ctx->verify_mode == SSL_VERIFY_PEER) in SSL_set_SSL_CTX()
934 else if (ctx->verify_mode == SSL_VERIFY_FAIL_IF_NO_PEER_CERT) in SSL_set_SSL_CTX()
936 else if (ctx->verify_mode == SSL_VERIFY_CLIENT_ONCE) in SSL_set_SSL_CTX()
944 ssl->verify_mode = ctx->verify_mode; in SSL_set_SSL_CTX()
/external/python/cpython3/Lib/
Dssl.py711 def verify_mode(self): member in SSLContext
712 value = super().verify_mode
718 @verify_mode.setter
719 def verify_mode(self, value): member in SSLContext
720 super(SSLContext, SSLContext).verify_mode.__set__(self, value)
741 context.verify_mode = CERT_REQUIRED
746 elif context.verify_mode != CERT_NONE:
780 context.verify_mode = cert_reqs
792 elif context.verify_mode != CERT_NONE:
1398 context.verify_mode = cert_reqs
/external/python/cpython2/Lib/test/
Dtest_ssl.py796 self.assertEqual(ctx.verify_mode, ssl.CERT_NONE)
797 ctx.verify_mode = ssl.CERT_OPTIONAL
798 self.assertEqual(ctx.verify_mode, ssl.CERT_OPTIONAL)
799 ctx.verify_mode = ssl.CERT_REQUIRED
800 self.assertEqual(ctx.verify_mode, ssl.CERT_REQUIRED)
801 ctx.verify_mode = ssl.CERT_NONE
802 self.assertEqual(ctx.verify_mode, ssl.CERT_NONE)
804 ctx.verify_mode = None
806 ctx.verify_mode = 42
1161 self.assertEqual(ctx.verify_mode, ssl.CERT_REQUIRED)
[all …]
Dtest_httplib.py864 context.verify_mode = ssl.CERT_REQUIRED
878 context.verify_mode = ssl.CERT_REQUIRED
899 context.verify_mode = ssl.CERT_REQUIRED
911 context.verify_mode = ssl.CERT_REQUIRED
/external/libwebsockets/lib/tls/mbedtls/wrapper/include/internal/
Dssl_types.h184 int verify_mode; member
224 int verify_mode; member
/external/libwebsockets/lib/tls/mbedtls/wrapper/library/
Dssl_lib.c315 ssl->verify_mode = ctx->verify_mode; in SSL_new()
903 return ctx->verify_mode; in SSL_CTX_get_verify_mode()
1062 ctx->verify_mode = mode; in SSL_CTX_set_verify()
1073 ssl->verify_mode = mode; in SSL_set_verify()
/external/python/cpython2/Lib/
Dssl.py441 context.verify_mode = CERT_REQUIRED
457 elif context.verify_mode != CERT_NONE:
486 context.verify_mode = cert_reqs
497 elif context.verify_mode != CERT_NONE:
556 self._context.verify_mode = cert_reqs
/external/python/httplib2/tests/
Dtest_https.py146 context.verify_mode = ssl.CERT_REQUIRED
169 context.verify_mode = ssl.CERT_REQUIRED
/external/python/httplib2/python2/httplib2/test/
Dtest_ssl_context.py62 self.assertEqual(conn.sock.context.verify_mode, ssl.CERT_REQUIRED)
/external/boringssl/src/ssl/
Dhandshake.cc208 if ((!ssl->server || (config->verify_mode & SSL_VERIFY_PEER)) && in ssl_max_handshake_message_len()
344 if (hs->config->verify_mode == SSL_VERIFY_NONE) { in ssl_verify_peer_cert()
395 assert(hs->config->verify_mode != SSL_VERIFY_NONE); in ssl_reverify_peer_cert()
Dssl_x509.cc409 if (verify_ret <= 0 && hs->config->verify_mode != SSL_VERIFY_NONE) { in ssl_crypto_x509_session_verify_cert_chain()
635 return ctx->verify_mode; in SSL_CTX_get_verify_mode()
655 ssl->config->verify_mode = mode; in SSL_set_verify()
681 ctx->verify_mode = mode; in SSL_CTX_set_verify()
Dtls13_server.cc719 hs->cert_request = !!(hs->config->verify_mode & SSL_VERIFY_PEER); in do_send_server_hello()
721 if ((hs->config->verify_mode & SSL_VERIFY_PEER_IF_NO_OBC) && in do_send_server_hello()
1002 (hs->config->verify_mode & SSL_VERIFY_FAIL_IF_NO_PEER_CERT) == 0; in do_read_client_certificate()
Dssl_lib.cc683 ssl->config->verify_mode = ctx->verify_mode; in SSL_new()
820 if (!!(ssl->config->verify_mode & SSL_VERIFY_PEER) && in SSL_quic_max_handshake_flight_len()
1721 return ssl->config->verify_mode; in SSL_get_verify_mode()
2097 ctx->verify_mode = mode; in SSL_CTX_set_custom_verify()
2107 ssl->config->verify_mode = mode; in SSL_set_custom_verify()
Dhandshake_server.cc806 hs->cert_request = !!(hs->config->verify_mode & SSL_VERIFY_PEER); in do_select_parameters()
808 if ((hs->config->verify_mode & SSL_VERIFY_PEER_IF_NO_OBC) && in do_select_parameters()
1176 if (hs->config->verify_mode & SSL_VERIFY_FAIL_IF_NO_PEER_CERT) { in do_read_client_certificate()
/external/rust/crates/quiche/deps/boringssl/src/ssl/
Dhandshake.cc206 if ((!ssl->server || (config->verify_mode & SSL_VERIFY_PEER)) && in ssl_max_handshake_message_len()
342 if (hs->config->verify_mode == SSL_VERIFY_NONE) { in ssl_verify_peer_cert()
393 assert(hs->config->verify_mode != SSL_VERIFY_NONE); in ssl_reverify_peer_cert()
Dssl_x509.cc409 if (verify_ret <= 0 && hs->config->verify_mode != SSL_VERIFY_NONE) { in ssl_crypto_x509_session_verify_cert_chain()
635 return ctx->verify_mode; in SSL_CTX_get_verify_mode()
655 ssl->config->verify_mode = mode; in SSL_set_verify()
681 ctx->verify_mode = mode; in SSL_CTX_set_verify()
Dtls13_server.cc644 hs->cert_request = !!(hs->config->verify_mode & SSL_VERIFY_PEER); in do_send_server_hello()
646 if ((hs->config->verify_mode & SSL_VERIFY_PEER_IF_NO_OBC) && in do_send_server_hello()
865 (hs->config->verify_mode & SSL_VERIFY_FAIL_IF_NO_PEER_CERT) == 0; in do_read_client_certificate()
Dssl_lib.cc684 ssl->config->verify_mode = ctx->verify_mode; in SSL_new()
821 if (!!(ssl->config->verify_mode & SSL_VERIFY_PEER) && in SSL_quic_max_handshake_flight_len()
1678 return ssl->config->verify_mode; in SSL_get_verify_mode()
2054 ctx->verify_mode = mode; in SSL_CTX_set_custom_verify()
2064 ssl->config->verify_mode = mode; in SSL_set_custom_verify()
Dhandshake_server.cc800 hs->cert_request = !!(hs->config->verify_mode & SSL_VERIFY_PEER); in do_select_parameters()
802 if ((hs->config->verify_mode & SSL_VERIFY_PEER_IF_NO_OBC) && in do_select_parameters()
1170 if (hs->config->verify_mode & SSL_VERIFY_FAIL_IF_NO_PEER_CERT) { in do_read_client_certificate()
/external/python/cpython3/Lib/test/test_asyncio/
Dutils.py77 server_context.verify_mode = ssl.CERT_NONE
85 client_context.verify_mode = ssl.CERT_NONE
/external/python/cpython3/Misc/NEWS.d/
D3.7.0rc1.rst192 ssl.SSLContext.verify_mode.
/external/python/cpython3/Doc/library/
Dssl.rst137 as *purpose* sets :data:`~SSLContext.verify_mode` to :data:`CERT_REQUIRED`
551 Possible value for :attr:`SSLContext.verify_mode`, or the ``cert_reqs``
564 Possible value for :attr:`SSLContext.verify_mode`, or the ``cert_reqs``
581 Possible value for :attr:`SSLContext.verify_mode`, or the ``cert_reqs``
1532 other peers' certificates when :data:`verify_mode` is other than
1883 :attr:`~SSLContext.verify_mode` must be set to :data:`CERT_OPTIONAL` or
1886 hostname checking automatically sets :attr:`~SSLContext.verify_mode` from
1897 context.verify_mode = ssl.CERT_REQUIRED
1909 :attr:`~SSLContext.verify_mode` is now automatically changed
1911 :attr:`~SSLContext.verify_mode` is :data:`CERT_NONE`. Previously
[all …]

12