Home
last modified time | relevance | path

Searched refs:cafile (Results 1 – 25 of 29) sorted by relevance

12

/external/python/cpython2/Lib/
Dssl.py308 cafile = os.environ.get(parts[0], parts[1])
311 return DefaultVerifyPaths(cafile if os.path.isfile(cafile) else None,
416 def create_default_context(purpose=Purpose.SERVER_AUTH, cafile=None, argument
455 if cafile or capath or cadata:
456 context.load_verify_locations(cafile, capath, cadata)
467 cafile=None, capath=None, cadata=None): argument
495 if cafile or capath or cadata:
496 context.load_verify_locations(cafile, capath, cadata)
1021 cafile=ca_certs)
Durllib2.py132 cafile=None, capath=None, cadefault=False, context=None): argument
134 if cafile or capath or cadefault:
143 cafile=cafile,
/external/python/cpython3/Lib/
Dssl.py343 cafile = os.environ.get(parts[0], parts[1])
346 return DefaultVerifyPaths(cafile if os.path.isfile(cafile) else None,
551 def create_default_context(purpose=Purpose.SERVER_AUTH, *, cafile=None, argument
572 if cafile or capath or cadata:
573 context.load_verify_locations(cafile, capath, cadata)
584 cafile=None, capath=None, cadata=None): argument
613 if cafile or capath or cadata:
614 context.load_verify_locations(cafile, capath, cadata)
1296 cafile=ca_certs)
/external/python/cpython2/Lib/test/
Dtest_urllib2_localnet.py545 context = ssl.create_default_context(cafile=CERT_localhost)
553 cafile=CERT_localhost)
558 cafile=CERT_fakehostname)
563 cafile=CERT_fakehostname)
583 context = ssl.create_default_context(cafile=CERT_localhost)
Dtest_urllibnet.py211 context = ssl.create_default_context(cafile=CERT_selfsigned_pythontestdotnet)
Dtest_ssl.py574 self.assertEqual(paths.cafile, CERTFILE)
914 ctx.load_verify_locations(cafile=CERTFILE, capath=None)
916 ctx.load_verify_locations(cafile=BYTES_CERTFILE, capath=None)
917 ctx.load_verify_locations(cafile=BYTES_CERTFILE.decode('utf-8'))
1171 ctx = ssl.create_default_context(cafile=SIGNING_CA, capath=CAPATH,
2494 context = ssl.create_default_context(cafile=CERTFILE)
Dtest_urllib2.py62 "https://localhost", cafile="/nonexistent/path", context=context
/external/python/cpython3/Lib/test/
Dtest_urllib2_localnet.py559 context = ssl.create_default_context(cafile=CERT_localhost)
568 cafile=CERT_localhost)
573 cafile=CERT_fakehostname)
578 cafile=CERT_fakehostname)
600 context = ssl.create_default_context(cafile=CERT_localhost)
Dtest_ssl.py824 self.assertEqual(paths.cafile, CERTFILE)
1296 ctx.load_verify_locations(cafile=CERTFILE, capath=None)
1298 ctx.load_verify_locations(cafile=BYTES_CERTFILE, capath=None)
1552 ctx = ssl.create_default_context(cafile=SIGNING_CA, capath=CAPATH,
3302 context = ssl.create_default_context(cafile=SIGNING_CA)
Dtest_urllib.py478 "https://localhost", cafile="/nonexistent/path", context=context
/external/curl/lib/vtls/
Dnss.c1587 const char *cafile = SSL_CONN_CONFIG(CAfile); in nss_load_ca_certificates() local
1593 if(cafile && !cafile[0]) in nss_load_ca_certificates()
1594 cafile = NULL; in nss_load_ca_certificates()
1599 cafile ? cafile : "none", in nss_load_ca_certificates()
1603 use_trust_module = !cafile && !capath; in nss_load_ca_certificates()
1623 if(cafile) in nss_load_ca_certificates()
1624 result = nss_load_cert(&conn->ssl[sockindex], cafile, PR_TRUE); in nss_load_ca_certificates()
Dsectransp.c2114 static int verify_cert(const char *cafile, struct Curl_easy *data, argument
2122 if(read_cert(cafile, &certbuf, &buflen) < 0) {
/external/python/cpython3/Modules/clinic/
D_ssl.c.h539 PyObject *cafile,
549 PyObject *cafile = NULL; in _ssl__SSLContext_load_verify_locations() local
554 &cafile, &capath, &cadata)) { in _ssl__SSLContext_load_verify_locations()
557 return_value = _ssl__SSLContext_load_verify_locations_impl(self, cafile, capath, cadata); in _ssl__SSLContext_load_verify_locations()
/external/scapy/scapy/layers/tls/
Dcert.py908 def verifyChainFromCAFile(self, cafile, untrusted_file=None): argument
915 f = open(cafile)
945 for cafile in os.listdir(capath):
946 anchors.append(Cert(open(cafile).read()))
/external/python/cpython2/Modules/
D_ssl.c2917 PyObject *cadata = NULL, *cafile = NULL, *capath = NULL; in load_verify_locations() local
2925 &cafile, &capath, &cadata)) in load_verify_locations()
2928 if (cafile == Py_None) in load_verify_locations()
2929 cafile = NULL; in load_verify_locations()
2935 if (cafile == NULL && capath == NULL && cadata == NULL) { in load_verify_locations()
2941 if (cafile) { in load_verify_locations()
2942 if (PyString_Check(cafile)) { in load_verify_locations()
2943 Py_INCREF(cafile); in load_verify_locations()
2944 cafile_bytes = cafile; in load_verify_locations()
2946 PyObject *u = PyUnicode_FromObject(cafile); in load_verify_locations()
[all …]
/external/python/setuptools/setuptools/
Dssl_support.py190 ctx = ssl.create_default_context(cafile=self.ca_bundle)
/external/python/cpython2/Doc/library/
Dssl.rst243 .. function:: create_default_context(purpose=Purpose.SERVER_AUTH, cafile=None, capath=None, cadata=…
250 *cafile*, *capath*, *cadata* represent optional CA certificates to
260 and either loads CA certificates (when at least one of *cafile*, *capath* or
460 Returns a named tuple with paths to OpenSSL's default cafile and capath.
465 * :attr:`cafile` - resolved path to cafile or ``None`` if the file doesn't exist,
467 * :attr:`openssl_cafile_env` - OpenSSL's environment key that points to a cafile,
468 * :attr:`openssl_cafile` - hard coded path to a cafile,
1122 .. method:: SSLContext.load_verify_locations(cafile=None, capath=None, cadata=None)
1126 :data:`CERT_NONE`. At least one of *cafile* or *capath* must be specified.
1132 The *cafile* string, if present, is the path to a file of concatenated
Durllib2.rst30 .. function:: urlopen(url[, data[, timeout[, cafile[, capath[, cadefault[, context]]]]])
52 The optional *cafile* and *capath* parameters specify a set of trusted CA
53 certificates for HTTPS requests. *cafile* should point to a single file
86 *cafile*, *capath*, *cadefault*, and *context* were added.
/external/python/cpython3/Modules/
D_ssl.c3966 PyObject *cafile, in _ssl__SSLContext_load_verify_locations_impl() argument
3976 if (cafile == Py_None) in _ssl__SSLContext_load_verify_locations_impl()
3977 cafile = NULL; in _ssl__SSLContext_load_verify_locations_impl()
3983 if (cafile == NULL && capath == NULL && cadata == NULL) { in _ssl__SSLContext_load_verify_locations_impl()
3988 if (cafile && !PyUnicode_FSConverter(cafile, &cafile_bytes)) { in _ssl__SSLContext_load_verify_locations_impl()
4038 if (cafile || capath) { in _ssl__SSLContext_load_verify_locations_impl()
4039 if (cafile) in _ssl__SSLContext_load_verify_locations_impl()
/external/python/cpython3/Lib/urllib/
Drequest.py140 *, cafile=None, capath=None, cadefault=False, context=None): argument
199 if cafile or capath or cadefault:
211 cafile=cafile,
/external/python/cpython3/Doc/library/
Dssl.rst121 .. function:: create_default_context(purpose=Purpose.SERVER_AUTH, cafile=None, capath=None, cadata=…
128 *cafile*, *capath*, *cadata* represent optional CA certificates to
138 and either loads CA certificates (when at least one of *cafile*, *capath* or
451 Returns a named tuple with paths to OpenSSL's default cafile and capath.
456 * :attr:`cafile` - resolved path to cafile or ``None`` if the file doesn't exist,
458 * :attr:`openssl_cafile_env` - OpenSSL's environment key that points to a cafile,
459 * :attr:`openssl_cafile` - hard coded path to a cafile,
1517 .. method:: SSLContext.load_verify_locations(cafile=None, capath=None, cadata=None)
1521 :data:`CERT_NONE`. At least one of *cafile* or *capath* must be specified.
1527 The *cafile* string, if present, is the path to a file of concatenated
Durllib.request.rst28 .. function:: urlopen(url, data=None[, timeout], *, cafile=None, capath=None, cadefault=False, cont…
49 The optional *cafile* and *capath* parameters specify a set of trusted
50 CA certificates for HTTPS requests. *cafile* should point to a single
99 *cafile* and *capath* were added.
116 *cafile*, *capath* and *cadefault* are deprecated in favor of *context*.
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_events.py708 cafile=None, capath=None, argument
1165 cafile=test_utils.SIGNING_CA)
1195 sslcontext_client.load_verify_locations(cafile=test_utils.SIGNING_CA)
1220 sslcontext_client.load_verify_locations(cafile=test_utils.SIGNING_CA)
/external/curl/docs/
DTODO766 "Look at SSL cafile - quick traces look to me like these are done on every
/external/python/cpython3/Doc/whatsnew/
D3.4.rst1449 OpenSSL's default ``cafile`` and ``capath``. This can be an aid in
2543 context = ssl.create_default_context(cafile="/path/to/file.crt")

12