Home
last modified time | relevance | path

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

12

/external/python/cpython3/Lib/test/
Dtest_ssl.py224 context.verify_mode = cert_reqs
1086 self.assertEqual(ctx.verify_mode, ssl.CERT_NONE)
1087 ctx.verify_mode = ssl.CERT_OPTIONAL
1088 self.assertEqual(ctx.verify_mode, ssl.CERT_OPTIONAL)
1089 ctx.verify_mode = ssl.CERT_REQUIRED
1090 self.assertEqual(ctx.verify_mode, ssl.CERT_REQUIRED)
1091 ctx.verify_mode = ssl.CERT_NONE
1092 self.assertEqual(ctx.verify_mode, ssl.CERT_NONE)
1094 ctx.verify_mode = None
1096 ctx.verify_mode = 42
[all …]
Dtest_smtpnet.py30 context.verify_mode = ssl.CERT_NONE
65 context.verify_mode = ssl.CERT_NONE
Dtest_poplib.py373 self.assertEqual(ctx.verify_mode, ssl.CERT_REQUIRED)
413 ctx.verify_mode = ssl.CERT_NONE
Dtest_imaplib.py507 self.assertEqual(ssl_context.verify_mode, ssl.CERT_REQUIRED)
980 ssl_context.verify_mode = ssl.CERT_NONE
Dtest_ftplib.py918 ctx.verify_mode = ssl.CERT_NONE
949 self.assertEqual(ctx.verify_mode, ssl.CERT_REQUIRED)
/external/python/cpython3/Lib/
Dssl.py539 def verify_mode(self): member in SSLContext
540 value = super().verify_mode
546 @verify_mode.setter
547 def verify_mode(self, value): member in SSLContext
548 super(SSLContext, SSLContext).verify_mode.__set__(self, value)
569 context.verify_mode = CERT_REQUIRED
574 elif context.verify_mode != CERT_NONE:
603 context.verify_mode = cert_reqs
615 elif context.verify_mode != CERT_NONE:
1212 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
Dtest_ftplib.py748 ctx.verify_mode = ssl.CERT_REQUIRED
/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/boringssl/src/ssl/
Dhandshake.cc201 if ((!ssl->server || (config->verify_mode & SSL_VERIFY_PEER)) && in ssl_max_handshake_message_len()
337 if (hs->config->verify_mode == SSL_VERIFY_NONE) { in ssl_verify_peer_cert()
387 assert(hs->config->verify_mode != SSL_VERIFY_NONE); in ssl_reverify_peer_cert()
Dssl_x509.cc413 if (verify_ret <= 0 && hs->config->verify_mode != SSL_VERIFY_NONE) { in ssl_crypto_x509_session_verify_cert_chain()
639 return ctx->verify_mode; in SSL_CTX_get_verify_mode()
659 ssl->config->verify_mode = mode; in SSL_set_verify()
685 ctx->verify_mode = mode; in SSL_CTX_set_verify()
Dtls13_server.cc633 hs->cert_request = !!(hs->config->verify_mode & SSL_VERIFY_PEER); in do_send_server_hello()
635 if ((hs->config->verify_mode & SSL_VERIFY_PEER_IF_NO_OBC) && in do_send_server_hello()
840 (hs->config->verify_mode & SSL_VERIFY_FAIL_IF_NO_PEER_CERT) == 0; in do_read_client_certificate()
Dssl_lib.cc686 ssl->config->verify_mode = ctx->verify_mode; in SSL_new()
823 if (!!(ssl->config->verify_mode & SSL_VERIFY_PEER) && in SSL_quic_max_handshake_flight_len()
1652 return ssl->config->verify_mode; in SSL_get_verify_mode()
1997 ctx->verify_mode = mode; in SSL_CTX_set_custom_verify()
2007 ssl->config->verify_mode = mode; in SSL_set_custom_verify()
Dhandshake_server.cc738 hs->cert_request = !!(hs->config->verify_mode & SSL_VERIFY_PEER); in do_select_parameters()
740 if ((hs->config->verify_mode & SSL_VERIFY_PEER_IF_NO_OBC) && in do_select_parameters()
1111 if (hs->config->verify_mode & SSL_VERIFY_FAIL_IF_NO_PEER_CERT) { in do_read_client_certificate()
Dinternal.h2533 uint8_t verify_mode = SSL_VERIFY_NONE;
2997 int verify_mode = SSL_VERIFY_NONE;
/external/python/httplib2/python2/httplib2/test/
Dtest_ssl_context.py62 self.assertEqual(conn.sock.context.verify_mode, ssl.CERT_REQUIRED)
/external/python/cpython3/Lib/test/test_asyncio/
Dutils.py76 server_context.verify_mode = ssl.CERT_NONE
84 client_context.verify_mode = ssl.CERT_NONE
Dtest_events.py1104 sslcontext_client.verify_mode = ssl.CERT_REQUIRED
1134 sslcontext_client.verify_mode = ssl.CERT_REQUIRED
1163 sslcontext_client.verify_mode = ssl.CERT_REQUIRED
1194 sslcontext_client.verify_mode = ssl.CERT_REQUIRED
1219 sslcontext_client.verify_mode = ssl.CERT_REQUIRED
/external/python/cpython3/Misc/NEWS.d/
D3.7.0rc1.rst192 ssl.SSLContext.verify_mode.
D3.6.6rc1.rst615 ssl.SSLContext.verify_mode.
/external/python/cpython3/Doc/library/
Dssl.rst137 as *purpose* sets :data:`~SSLContext.verify_mode` to :data:`CERT_REQUIRED`
543 Possible value for :attr:`SSLContext.verify_mode`, or the ``cert_reqs``
556 Possible value for :attr:`SSLContext.verify_mode`, or the ``cert_reqs``
573 Possible value for :attr:`SSLContext.verify_mode`, or the ``cert_reqs``
1520 other peers' certificates when :data:`verify_mode` is other than
1871 :attr:`~SSLContext.verify_mode` must be set to :data:`CERT_OPTIONAL` or
1874 hostname checking automatically sets :attr:`~SSLContext.verify_mode` from
1883 context.verify_mode = ssl.CERT_REQUIRED
1895 :attr:`~SSLContext.verify_mode` is now automatically changed
1897 :attr:`~SSLContext.verify_mode` is :data:`CERT_NONE`. Previously
[all …]
/external/python/cpython2/Doc/library/
Dssl.rst259 as *purpose* sets :data:`~SSLContext.verify_mode` to :data:`CERT_REQUIRED`
521 Possible value for :attr:`SSLContext.verify_mode`, or the ``cert_reqs``
531 Possible value for :attr:`SSLContext.verify_mode`, or the ``cert_reqs``
543 Possible value for :attr:`SSLContext.verify_mode`, or the ``cert_reqs``
1125 other peers' certificates when :data:`verify_mode` is other than
1328 :attr:`~SSLContext.verify_mode` must be set to :data:`CERT_OPTIONAL` or
1337 context.verify_mode = ssl.CERT_REQUIRED
1372 .. attribute:: SSLContext.verify_mode
1543 >>> context.verify_mode = ssl.CERT_REQUIRED
/external/python/cpython3/Lib/http/
Dclient.py1369 will_verify = context.verify_mode != ssl.CERT_NONE
/external/python/httplib2/python3/httplib2/
D__init__.py184 context.verify_mode = (

12