Home
last modified time | relevance | path

Searched refs:scheme (Results 1 - 25 of 152) sorted by relevance

1234567

/third_party/node/test/fixtures/wpt/url/
H A Durl-setters-stripping.any.js1 function urlString({ scheme = "https",
9 return `${scheme}://${username}:${password}@${host}:${port}/${pathname}?${search}#${hash}`;
12 function urlRecord(scheme) {
13 return new URL(urlString({ scheme }));
16 for(const scheme of ["https", "wpt++"]) {
30 const expected = scheme === "https" ? (stripped ? "http" : "https") : (stripped ? "wpt--" : "wpt++");
31 const url = urlRecord(scheme);
32 url.protocol = String.fromCodePoint(i) + (scheme === "https" ? "http" : "wpt--");
34 assert_equals(url.href, urlString({ scheme: expected }), "href");
35 }, `Setting protocol with leading ${cpReference} (${scheme}
[all...]
/third_party/node/deps/openssl/openssl/crypto/store/
H A Dstore_register.c31 OSSL_STORE_LOADER *OSSL_STORE_LOADER_new(ENGINE *e, const char *scheme) in OSSL_STORE_LOADER_new() argument
37 * scheme is crucial and must never be NULL, or the user will get in OSSL_STORE_LOADER_new()
41 if (scheme == NULL) { in OSSL_STORE_LOADER_new()
52 res->scheme = scheme; in OSSL_STORE_LOADER_new()
63 return loader->scheme; in OSSL_STORE_LOADER_get0_scheme()
143 return OPENSSL_LH_strhash(v->scheme); in store_loader_hash()
149 assert(a->scheme != NULL && b->scheme != NULL); in store_loader_cmp()
150 return strcmp(a->scheme, in store_loader_cmp()
165 const char *scheme = loader->scheme; ossl_store_register_loader_int() local
214 ossl_store_get0_loader_int(const char *scheme) ossl_store_get0_loader_int() argument
245 ossl_store_unregister_loader_int(const char *scheme) ossl_store_unregister_loader_int() argument
274 OSSL_STORE_unregister_loader(const char *scheme) OSSL_STORE_unregister_loader() argument
[all...]
H A Dstore_meth.c42 * OSSL_STORE_LOADER_new() expects the scheme as a constant string,
94 const char *scheme; /* For get_loader_from_store() */ member
163 id = ossl_namemap_name2num(namemap, methdata->scheme); in get_loader_from_store()
177 const char *scheme, const char *propdef, in put_loader_in_store()
185 || (id = ossl_namemap_name2num(namemap, scheme)) == 0) in put_loader_in_store()
258 * The core fetching functionality passes the scheme of the implementation.
268 * namemap entry, this is it. Should the scheme already exist there, we in construct_loader()
274 const char *scheme = algodef->algorithm_names; in construct_loader() local
275 int id = ossl_namemap_add_name(namemap, 0, scheme); in construct_loader()
298 /* Fetching support. Can fetch by numeric identity or by scheme */
175 put_loader_in_store(void *store, void *method, const OSSL_PROVIDER *prov, const char *scheme, const char *propdef, void *data) put_loader_in_store() argument
300 inner_loader_fetch(struct loader_data_st *methdata, int id, const char *scheme, const char *properties) inner_loader_fetch() argument
394 OSSL_STORE_LOADER_fetch(OSSL_LIB_CTX *libctx, const char *scheme, const char *properties) OSSL_STORE_LOADER_fetch() argument
[all...]
H A Dstore_local.h79 OSSL_STORE_LOADER *ossl_store_unregister_loader_int(const char *scheme);
85 const char *scheme; member
119 const OSSL_STORE_LOADER *ossl_store_get0_loader_int(const char *scheme);
157 * 'file' scheme stuff
169 const char *scheme,
/third_party/openssl/crypto/store/
H A Dstore_register.c31 OSSL_STORE_LOADER *OSSL_STORE_LOADER_new(ENGINE *e, const char *scheme) in OSSL_STORE_LOADER_new() argument
37 * scheme is crucial and must never be NULL, or the user will get in OSSL_STORE_LOADER_new()
41 if (scheme == NULL) { in OSSL_STORE_LOADER_new()
52 res->scheme = scheme; in OSSL_STORE_LOADER_new()
63 return loader->scheme; in OSSL_STORE_LOADER_get0_scheme()
143 return OPENSSL_LH_strhash(v->scheme); in store_loader_hash()
149 assert(a->scheme != NULL && b->scheme != NULL); in store_loader_cmp()
150 return strcmp(a->scheme, in store_loader_cmp()
165 const char *scheme = loader->scheme; ossl_store_register_loader_int() local
214 ossl_store_get0_loader_int(const char *scheme) ossl_store_get0_loader_int() argument
245 ossl_store_unregister_loader_int(const char *scheme) ossl_store_unregister_loader_int() argument
274 OSSL_STORE_unregister_loader(const char *scheme) OSSL_STORE_unregister_loader() argument
[all...]
H A Dstore_meth.c42 * OSSL_STORE_LOADER_new() expects the scheme as a constant string,
94 const char *scheme; /* For get_loader_from_store() */ member
163 id = ossl_namemap_name2num(namemap, methdata->scheme); in get_loader_from_store()
177 const char *scheme, const char *propdef, in put_loader_in_store()
185 || (id = ossl_namemap_name2num(namemap, scheme)) == 0) in put_loader_in_store()
258 * The core fetching functionality passes the scheme of the implementation.
268 * namemap entry, this is it. Should the scheme already exist there, we in construct_loader()
274 const char *scheme = algodef->algorithm_names; in construct_loader() local
275 int id = ossl_namemap_add_name(namemap, 0, scheme); in construct_loader()
298 /* Fetching support. Can fetch by numeric identity or by scheme */
175 put_loader_in_store(void *store, void *method, const OSSL_PROVIDER *prov, const char *scheme, const char *propdef, void *data) put_loader_in_store() argument
300 inner_loader_fetch(struct loader_data_st *methdata, int id, const char *scheme, const char *properties) inner_loader_fetch() argument
394 OSSL_STORE_LOADER_fetch(OSSL_LIB_CTX *libctx, const char *scheme, const char *properties) OSSL_STORE_LOADER_fetch() argument
[all...]
H A Dstore_local.h79 OSSL_STORE_LOADER *ossl_store_unregister_loader_int(const char *scheme);
85 const char *scheme; member
119 const OSSL_STORE_LOADER *ossl_store_get0_loader_int(const char *scheme);
157 * 'file' scheme stuff
169 const char *scheme,
/third_party/libcoap/src/
H A Dcoap_address.c340 coap_uri_scheme_t scheme; in coap_get_available_scheme_hint_bits() local
342 for (scheme = 0; scheme < COAP_URI_SCHEME_LAST; scheme++) { in coap_get_available_scheme_hint_bits()
343 switch (scheme) { in coap_get_available_scheme_hint_bits()
345 scheme_hint_bits |= 1 << scheme; in coap_get_available_scheme_hint_bits()
350 scheme_hint_bits |= 1 << scheme; in coap_get_available_scheme_hint_bits()
355 scheme_hint_bits |= 1 << scheme; in coap_get_available_scheme_hint_bits()
360 scheme_hint_bits |= 1 << scheme; in coap_get_available_scheme_hint_bits()
365 scheme_hint_bits |= 1 << scheme; in coap_get_available_scheme_hint_bits()
427 coap_uri_scheme_t scheme; coap_resolve_address_info() local
708 coap_uri_scheme_t scheme; coap_resolve_address_info() local
[all...]
/third_party/curl/tests/libtest/
H A Dlib1536.c33 char *scheme; in test() local
40 /* Test that scheme is properly initialized on curl_easy_init. in test()
43 res = curl_easy_getinfo(curl, CURLINFO_SCHEME, &scheme); in test()
49 if(scheme) { in test()
50 fprintf(stderr, "%s:%d scheme init failed; expected NULL\n", in test()
65 /* Test that a scheme is properly set after receiving an HTTP resource. in test()
68 res = curl_easy_getinfo(curl, CURLINFO_SCHEME, &scheme); in test()
74 if(!scheme || memcmp(scheme, "HTTP", 5) != 0) { in test()
75 fprintf(stderr, "%s:%d scheme o in test()
[all...]
/third_party/curl/scripts/
H A Dschemetable.c37 static const struct detail scheme[] = { variable
98 for(i = 0; scheme[i].n; ++i) in showtable()
99 num[i] = calc(scheme[i].n, init, shift); in showtable()
100 for(i = 0; scheme[i].n; ++i) in showtable()
118 for(j=0; scheme[j].n; j++) { in showtable()
121 printf("%s\n", scheme[j].ifdef); in showtable()
122 printf(" &Curl_handler_%s,\n", scheme[j].n); in showtable()
153 for(i = 0; scheme[i].n; ++i) { in main()
154 unsigned int v = calc(scheme[i].n, add, shift); in main()
162 v, scheme[ in main()
[all...]
/third_party/python/Lib/urllib/
H A Dparse.py14 RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zawinski, July 1998.
50 # The empty string classifies URLs with no scheme specified,
81 # Characters valid in scheme names
128 # "scheme=''" default argument to some functions
252 'SplitResult', 'scheme netloc path query fragment')
254 'ParseResult', 'scheme netloc path params query fragment')
272 SplitResult(scheme, netloc, path, query, fragment)
278 _SplitResultBase.scheme.__doc__ = """Specifies URL scheme for the request."""
290 in path component, identifies a resource in the scope of URI's scheme an
[all...]
/third_party/python/Lib/test/
H A Dtest_sysconfig.py98 scheme = get_paths()
102 scheme = sorted(scheme.items())
103 self.assertEqual(scheme, wanted)
111 for scheme in _INSTALL_SCHEMES:
112 for name in _INSTALL_SCHEMES[scheme]:
113 expected = _INSTALL_SCHEMES[scheme][name].format(**config_vars)
115 os.path.normpath(get_path(name, scheme)),
146 # before bpo-45413, here we assert the posix_venv scheme does not regress
158 self.assertEqual(binpath, sysconfig.get_path('scripts', scheme
[all...]
H A Dtest_urlparse.py76 t = (result.scheme, result.netloc, result.path,
89 self.assertEqual(result3.scheme, result.scheme)
103 t = (result.scheme, result.netloc, result.path,
114 self.assertEqual(result3.scheme, result.scheme)
209 for scheme in schemes:
211 url = scheme + url
212 parsed = (scheme,) + parsed
213 split = (scheme,)
[all...]
H A Dmultibytecodec_support.py51 for source, scheme, expected in self.codectests:
57 result = func(source, scheme)[0]
62 % (source, self.encoding, scheme, result,
68 % (source, self.encoding, scheme, result,
71 self.assertRaises(UnicodeError, func, source, scheme)
354 for source, scheme, expected in self.codectests:
361 result = func(self.encoding, scheme)
365 % (source, self.encoding, scheme, result,
368 result = func(self.encoding, scheme)
372 % (source, self.encoding, scheme, resul
[all...]
/third_party/openssl/crypto/http/
H A Dhttp_lib.c44 const char *scheme, *scheme_end; in OSSL_parse_url() local
66 /* check for optional prefix "<scheme>://" */ in OSSL_parse_url()
67 scheme = scheme_end = url; in OSSL_parse_url()
73 if (scheme_end == scheme) in OSSL_parse_url()
149 if (!copy_substring(pscheme, scheme, scheme_end) in OSSL_parse_url()
188 char *scheme, *port; in OSSL_HTTP_parse_url() local
194 if (!OSSL_parse_url(url, &scheme, puser, phost, &port, pport_num, in OSSL_HTTP_parse_url()
198 /* check for optional HTTP scheme "http[s]" */ in OSSL_HTTP_parse_url()
199 if (strcmp(scheme, OSSL_HTTPS_NAME) == 0) { in OSSL_HTTP_parse_url()
203 } else if (*scheme ! in OSSL_HTTP_parse_url()
[all...]
/third_party/python/Lib/
H A Dsysconfig.py59 # Downstream distributors can overwrite the default install scheme.
62 # So, distributors will change the default scheme to one that correctly
66 # the default install scheme, there is no guarantee that the information
72 # The "*_venv" install scheme is a scheme to bootstrap virtual environments,
74 # Downstream distributors who patch posix_prefix/nt scheme are encouraged to
100 # For the OS-native venv scheme, we essentially provide an alias:
135 # NOTE: When modifying "purelib" scheme, update site._get_path() too.
232 for scheme in ('posix_prefix', 'posix_home'):
235 # scheme whe
[all...]
/third_party/curl/src/
H A Dtool_cb_hdr.c78 const char *scheme = NULL; in tool_header_cb() local
140 curl_easy_getinfo(per->curl, CURLINFO_SCHEME, &scheme); in tool_header_cb()
141 scheme = proto_token(scheme); in tool_header_cb()
144 (scheme == proto_http || scheme == proto_https)) { in tool_header_cb()
215 (scheme == proto_http || scheme == proto_https || in tool_header_cb()
216 scheme == proto_rtsp || scheme in tool_header_cb()
364 char *copyloc = NULL, *locurl = NULL, *scheme = NULL, *finalurl = NULL; write_linked_location() local
[all...]
/third_party/node/deps/openssl/openssl/crypto/http/
H A Dhttp_lib.c51 const char *scheme, *scheme_end; in OSSL_parse_url() local
74 /* check for optional prefix "<scheme>://" */ in OSSL_parse_url()
75 scheme = scheme_end = url; in OSSL_parse_url()
81 if (scheme_end == scheme) in OSSL_parse_url()
157 if (!copy_substring(pscheme, scheme, scheme_end) in OSSL_parse_url()
196 char *scheme, *port; in OSSL_HTTP_parse_url() local
202 if (!OSSL_parse_url(url, &scheme, puser, phost, &port, pport_num, in OSSL_HTTP_parse_url()
206 /* check for optional HTTP scheme "http[s]" */ in OSSL_HTTP_parse_url()
207 if (strcmp(scheme, OSSL_HTTPS_NAME) == 0) { in OSSL_HTTP_parse_url()
211 } else if (*scheme ! in OSSL_HTTP_parse_url()
[all...]
/third_party/curl/lib/
H A Durlapi.c58 /* scheme is not URL encoded, the longest libcurl supported ones are... */
72 char *scheme; member
89 free(u->scheme); in free_urlhandle()
196 * Returns the length of the scheme if the given URL is absolute (as opposed
197 * to relative). Stores the scheme in the buffer if TRUE and 'buf' is
201 * scheme.
220 scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." ) in Curl_is_absolute_url()
228 /* If this does not guess scheme, the scheme always ends with the colon so in Curl_is_absolute_url()
232 /* the length of the scheme i in Curl_is_absolute_url()
1498 char *scheme; curl_url_get() local
[all...]
H A Dhttp1.c139 const char *p, *m, *target, *hv, *scheme, *authority, *path; in start_req() local
180 * from TARGET, we derive `scheme` `authority` `path` in start_req()
186 scheme = authority = path = NULL; in start_req()
248 if(!scheme && scheme_default) { in start_req()
249 scheme = scheme_default; in start_req()
252 result = Curl_http_req_make(&parser->req, m, m_len, scheme, scheme_len, in start_req()
328 req->scheme? req->scheme : "", in Curl_h1_req_write_head()
329 req->scheme? "://" : "", in Curl_h1_req_write_head()
/third_party/cups-filters/backend/
H A Dbeh.c216 char scheme[1024], /* Scheme from URI */ in call_backend() local
217 *ptr, /* Pointer into scheme */ in call_backend()
225 strncpy(scheme, uri, sizeof(scheme) - 1); in call_backend()
227 scheme[1023] = '\0'; in call_backend()
228 if ((ptr = strchr(scheme, ':')) != NULL) in call_backend()
241 cups_serverbin, scheme, argv[1], argv[2], argv[3], in call_backend()
H A Dieee1284.c58 const char *scheme, /* I - URI scheme */ in backendGetDeviceID()
68 (void)scheme; in backendGetDeviceID()
86 "make_model=%p, make_model_size=%d, scheme=\"%s\", " in backendGetDeviceID()
88 make_model, make_model_size, scheme ? scheme : "(null)", in backendGetDeviceID()
293 if (scheme && uri) in backendGetDeviceID()
310 if (scheme && uri && uri_size > 32) in backendGetDeviceID()
371 httpAssembleURIf(HTTP_URI_CODING_ALL, uri, uri_size, scheme, NULL, mfg, 0, in backendGetDeviceID()
52 backendGetDeviceID( int fd, char *device_id, int device_id_size, char *make_model, int make_model_size, const char *scheme, char *uri, int uri_size) backendGetDeviceID() argument
/third_party/libcoap/examples/lwip/
H A Dclient-coap.c158 LWIP_ASSERT("Unsupported URI type", uri.scheme == COAP_URI_SCHEME_COAP || in client_coap_init()
159 uri.scheme == COAP_URI_SCHEME_COAPS); in client_coap_init()
160 if (uri.scheme == COAP_URI_SCHEME_COAPS) { in client_coap_init()
168 len = resolve_address((const char *)buf, portbuf, &dst, 1 << uri.scheme); in client_coap_init()
177 if (uri.scheme == COAP_URI_SCHEME_COAP) { in client_coap_init()
/third_party/cups-filters/cupsfilters/
H A Dtestdriver.c78 char scheme[255], /* URI scheme */ in cat_ppd() local
86 if (httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme), in cat_ppd()
/third_party/node/deps/openssl/openssl/crypto/asn1/
H A Dp5_scrypt.c46 X509_ALGOR *scheme = NULL, *ret = NULL; in PKCS5_pbe2_set_scrypt() local
73 /* Setup the AlgorithmIdentifier for the encryption scheme */ in PKCS5_pbe2_set_scrypt()
74 scheme = pbe2->encryption; in PKCS5_pbe2_set_scrypt()
76 scheme->algorithm = OBJ_nid2obj(alg_nid); in PKCS5_pbe2_set_scrypt()
77 scheme->parameter = ASN1_TYPE_new(); in PKCS5_pbe2_set_scrypt()
78 if (scheme->parameter == NULL) in PKCS5_pbe2_set_scrypt()
96 if (EVP_CIPHER_param_to_asn1(ctx, scheme->parameter) <= 0) { in PKCS5_pbe2_set_scrypt()

Completed in 13 milliseconds

1234567