Home
last modified time | relevance | path

Searched refs:check_hostname (Results 1 – 25 of 37) sorted by relevance

12

/external/python/cpython3/Lib/http/
Dclient.py1408 check_hostname=None, blocksize=8192): argument
1413 check_hostname is not None):
1429 if check_hostname is None:
1430 check_hostname = context.check_hostname
1431 if check_hostname and not will_verify:
1441 if check_hostname is not None:
1442 self._context.check_hostname = check_hostname
/external/python/cpython3/Lib/test/
Dtest_smtpnet.py31 context.check_hostname = False
66 context.check_hostname = False
Dtest_ssl.py293 context.check_hostname = False
1216 self.assertFalse(ctx.check_hostname)
1220 self.assertTrue(ctx.check_hostname)
1693 self.assertTrue(ctx.check_hostname)
1715 self.assertFalse(ctx.check_hostname)
1728 check_hostname=True
1732 self.assertTrue(ctx.check_hostname)
1743 self.assertFalse(ctx.check_hostname)
1747 ctx.check_hostname = True
1748 self.assertTrue(ctx.check_hostname)
[all …]
Dtest_poplib.py385 self.assertEqual(ctx.check_hostname, True)
424 ctx.check_hostname = False
Dtest_httplib.py1743 self.assertEqual(context.check_hostname, True)
1814 context=context, check_hostname=True)
1818 context.check_hostname = False
1821 context=context, check_hostname=False)
1829 context.check_hostname = False
1840 context=context, check_hostname=True)
Dtest_imaplib.py555 self.assertEqual(ssl_context.check_hostname, True)
1044 ssl_context.check_hostname = False
Dtest_ftplib.py985 ctx.check_hostname = False
1018 self.assertEqual(ctx.check_hostname, True)
/external/python/cpython2/Lib/
Dssl.py442 context.check_hostname = True
465 check_hostname=False, purpose=Purpose.SERVER_AUTH, argument
487 context.check_hostname = check_hostname
587 if self._context.check_hostname and not server_hostname:
850 if self.context.check_hostname:
/external/python/cpython3/Lib/
Dssl.py758 context.check_hostname = True
779 check_hostname=False, purpose=Purpose.SERVER_AUTH, argument
806 context.check_hostname = check_hostname
809 if check_hostname:
810 context.check_hostname = True
1026 if context.check_hostname and not server_hostname:
/external/python/cpython2/Misc/NEWS.d/
D2.7.9.rst7 Remove the *check_hostname* parameter of httplib.HTTPSConnection. The
/external/python/httplib2/python2/httplib2/test/
Dtest_ssl_context.py60 self.assertTrue(conn.sock.context.check_hostname)
/external/python/cpython2/Lib/test/
Dtest_ssl.py1162 self.assertTrue(ctx.check_hostname)
1202 self.assertFalse(ctx.check_hostname)
1212 check_hostname=True)
1215 self.assertTrue(ctx.check_hostname)
1276 self.assertFalse(ctx.check_hostname)
1280 ctx.check_hostname = True
1282 self.assertFalse(ctx.check_hostname)
1283 ctx.check_hostname = True
1284 self.assertTrue(ctx.check_hostname)
1287 ctx.check_hostname = True
[all …]
Dtest_httplib.py912 context.check_hostname = True
919 context.check_hostname = False
/external/python/cpython3/Lib/test/test_asyncio/
Dutils.py77 server_context.check_hostname = False
84 client_context.check_hostname = False
Dtest_events.py1002 sslcontext_client.check_hostname = True
1032 sslcontext_client.check_hostname = True
1063 sslcontext_client.check_hostname = True
1093 sslcontext_client.check_hostname = True
1119 sslcontext_client.check_hostname = True
/external/python/cpython2/Modules/
D_ssl.c325 int check_hostname; member
2237 self->check_hostname = 0; in context_new()
2509 if (mode == SSL_VERIFY_NONE && self->check_hostname) { in set_verify_mode()
2595 return PyBool_FromLong(self->check_hostname); in get_check_hostname()
2602 int check_hostname; in set_check_hostname() local
2606 check_hostname = PyObject_IsTrue(py_check_hostname); in set_check_hostname()
2607 if (check_hostname < 0) in set_check_hostname()
2609 if (check_hostname && in set_check_hostname()
2616 self->check_hostname = check_hostname; in set_check_hostname()
/external/python/cpython3/Doc/library/
Dhttp.client.rst71 check_hostname=None, blocksize=8192)
81 *source_address*, *context* and *check_hostname* were added.
114 The *check_hostname* parameter is also deprecated; the
115 :attr:`ssl.SSLContext.check_hostname` attribute of *context* should
Dpoplib.rst81 :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see
248 :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see
Dssl.rst592 it does not match hostnames. :attr:`~SSLContext.check_hostname` must be
595 enables :attr:`~SSLContext.check_hostname` by default.
693 :attr:`~SSLContext.check_hostname` by default.
1223 :attr:`~SSLContext.check_hostname` attribute of the socket's
1921 .. attribute:: SSLContext.check_hostname
1940 context.check_hostname = True
2042 Whether :attr:`~SSLContext.check_hostname` falls back to verify the cert's
2259 set to :data:`CERT_REQUIRED` and :attr:`~SSLContext.check_hostname` is set
2263 and :attr:`~SSLContext.check_hostname` validate the server certificate: it
2665 check is automatically performed when :attr:`SSLContext.check_hostname` is
Dftplib.rst108 :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see
448 :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see
Dimaplib.rst112 :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see
513 :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see
Dnntplib.rst126 :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see
274 :attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see
/external/python/cpython3/Modules/
D_ssl.c284 int check_hostname; member
755 if (self->ctx->check_hostname) { in _ssl_configure_hostname()
3085 self->check_hostname = 1; in _ssl__SSLContext_impl()
3091 self->check_hostname = 0; in _ssl__SSLContext_impl()
3384 if (n == PY_SSL_CERT_NONE && self->check_hostname) { in set_verify_mode()
3649 return PyBool_FromLong(self->check_hostname); in get_check_hostname()
3655 int check_hostname; in set_check_hostname() local
3656 if (!PyArg_Parse(arg, "p", &check_hostname)) in set_check_hostname()
3658 if (check_hostname && in set_check_hostname()
3665 self->check_hostname = check_hostname; in set_check_hostname()
/external/python/cpython3/Lib/asyncio/
Dsslproto.py24 sslcontext.check_hostname = False
/external/python/cpython3/Lib/urllib/
Drequest.py1385 def __init__(self, debuglevel=0, context=None, check_hostname=None): argument
1388 self._check_hostname = check_hostname
1392 context=self._context, check_hostname=self._check_hostname)

12