HomeSort by: relevance | last modified time | path
    Searched refs:scheme (Results 1 - 19 of 19) sorted by relevancy

  /src/share/examples/refuse/ian/libfetch/
fetch.c 63 { URL_BAD_SCHEME, FETCH_URL, "Invalid URL scheme" },
72 * Select the appropriate protocol for the URL scheme, and return a
83 if (strcasecmp(URL->scheme, SCHEME_FILE) == 0)
85 else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0)
87 else if (strcasecmp(URL->scheme, SCHEME_HTTP) == 0)
89 else if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0)
96 * Select the appropriate protocol for the URL scheme, and return a
106 * Select the appropriate protocol for the URL scheme, and return a
112 if (strcasecmp(URL->scheme, SCHEME_FILE) == 0)
114 else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0
    [all...]
http.c 700 if (purl && strcasecmp(URL->scheme, SCHEME_HTTPS) != 0) {
702 } else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0) {
711 if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0 &&
742 if (!*purl->scheme)
743 strcpy(purl->scheme, SCHEME_HTTP);
745 purl->port = _fetch_default_proxy_port(purl->scheme);
746 if (strcasecmp(purl->scheme, SCHEME_HTTP) == 0)
846 url->port = _fetch_default_port(url->scheme);
849 if (purl == NULL && strcmp(url->scheme, SCHEME_FTP) == 0) {
867 if (url->port != _fetch_default_port(url->scheme)) {
    [all...]
fetch.h 41 char scheme[URL_SCHEMELEN+1]; member in struct:url
common.c 174 * Return the default port for a scheme
177 _fetch_default_port(const char *scheme)
181 if ((se = getservbyname(scheme, "tcp")) != NULL)
183 if (strcasecmp(scheme, SCHEME_FTP) == 0)
185 if (strcasecmp(scheme, SCHEME_HTTP) == 0)
191 * Return the default proxy port for a scheme
194 _fetch_default_proxy_port(const char *scheme)
196 if (strcasecmp(scheme, SCHEME_FTP) == 0)
198 if (strcasecmp(scheme, SCHEME_HTTP) == 0)
ftp.c 924 if (purl && url->port == _fetch_default_port(url->scheme))
1047 url->port = _fetch_default_port(url->scheme);
1080 if (!*purl->scheme) {
1082 strcpy(purl->scheme, SCHEME_FTP);
1084 strcpy(purl->scheme, SCHEME_HTTP);
1087 purl->port = _fetch_default_proxy_port(purl->scheme);
1088 if (strcasecmp(purl->scheme, SCHEME_FTP) == 0 ||
1089 strcasecmp(purl->scheme, SCHEME_HTTP) == 0)
1107 if (purl && strcasecmp(purl->scheme, SCHEME_HTTP) == 0) {
  /src/lib/librumpuser/
Makefile 37 .error Unsupported curlwp scheme for thread model: ${RUMP_CURLWP} target
  /src/lib/libcrypt/
crypt.c 502 * We extract the scheme from setting str to allow for
503 * full scheme name comparison
509 nondes_scheme_substr(const char * setting,char * scheme, unsigned int len)
517 /* clear out scheme buffer regardless of result */
518 memset(scheme, 0, len);
520 /* make sure we are working on non-des scheme string */
537 /* copy scheme substr to buffer */
538 memcpy(scheme, start, (size_t)(sep - start));
551 char scheme[12]; local in function:__crypt
562 setting, scheme, sizeof(scheme))
    [all...]
  /src/usr.sbin/sysinst/
README.md_defs 95 secondary partitioning scheme (RAW_PART == 3)
108 offering the disklabel partitioning scheme. This allows ports to use
msg.pm.fr 157 message switch_parts {Switch partitioning scheme}
msg.mi.fr 171 * $1 = partitioning scheme name Guid Partition Table
183 * $1 = partitioning scheme name Guid Partition Table
197 * $1 = partitioning scheme name Guid Partition Table
290 * $1 = partitioning scheme name Master Boot Record (MBR)
311 * $1 = partitioning scheme name BSD disklabel
1356 a partitioning scheme from the available options below. }
1359 {Please select a different partitioning scheme from the available
msg.mi.pl 166 * $1 = partitioning scheme name Guid Partition Table
178 * $1 = partitioning scheme name Guid Partition Table
192 * $1 = partitioning scheme name Guid Partition Table
294 * $1 = partitioning scheme name BSD disklabel
disklabel.c 196 const struct disk_partitioning_scheme *scheme)
248 parts->dp.pscheme = scheme;
gpt.c 265 const struct disk_partitioning_scheme *scheme)
386 parts->dp.pscheme = scheme;
mbr.c 981 const struct disk_partitioning_scheme *scheme)
993 parts->dp.pscheme = scheme;
  /src/usr.bin/make/unit-tests/
var-scope-cmdline.mk 19 # Instead of this costly lookup scheme, make implements it in a different
opt-debug-file.mk 35 # escaping scheme unnecessarily differs from all other modifiers.
  /src/usr.bin/ftp/
fetch.c 264 const char *cp, *ep, *scheme, *errormsg; local in function:auth_url
275 scheme = "Basic"; /* only support Basic authentication */
280 if (! match_token(&cp, scheme)) {
335 /* scheme + " " + enc + "\0" */
336 rlen = strlen(scheme) + 1 + (clen + 2) * 4 / 3 + 1;
338 (void)strlcpy(*response, scheme, rlen);
1202 "scheme `%s'\n", __func__, token);
1336 "%s: skipping unknown auth scheme `%s'\n",
2342 * part before the colon is a host name, not an URL scheme,
2346 errx(1, "Unsupported URL scheme `%.*s'", (int)(p - url), url)
    [all...]
  /src/share/mk/
bsd.doc.mk 44 # new scheme.
  /src/libexec/httpd/
bozohttpd.c 1067 const char *scheme, *query, *quest; local in function:handle_redirect
1100 * scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
1116 scheme = absproto ? "" : httpd->sslinfo ? "https://" : "http://";
1142 scheme, hostname, portbuf, url, quest, query);

Completed in 26 milliseconds