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

/src/share/examples/refuse/ian/libfetch/
H A Dfetch.c63 { 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_FT
251 fetchMakeURL(const char * scheme,const char * host,int port,const char * doc,const char * user,const char * pwd) argument
[all...]
H A Dhttp.c700 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...]
H A Dfetch.h41 char scheme[URL_SCHEMELEN+1]; member in struct:url
H A Dcommon.c174 * Return the default port for a scheme
177 _fetch_default_port(const char *scheme) argument
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) argument
196 if (strcasecmp(scheme, SCHEME_FTP) == 0)
198 if (strcasecmp(scheme, SCHEME_HTTP) == 0)
H A Dftp.c924 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/
H A DMakefile37 .error Unsupported curlwp scheme for thread model: ${RUMP_CURLWP} target
/src/lib/libcrypt/
H A Dcrypt.c502 * 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) argument
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, sizeo
[all...]
/src/usr.bin/make/unit-tests/
H A Dopt-debug-file.mk35 # escaping scheme unnecessarily differs from all other modifiers.
H A Dvar-scope-cmdline.mk19 # Instead of this costly lookup scheme, make implements it in a different
/src/sys/rump/
H A DMakefile.rump109 .error Unsupported curlwp scheme: ${RUMP_CURLWP}
/src/usr.bin/ftp/
H A Dfetch.c264 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 `
[all...]
/src/share/mk/
H A Dbsd.doc.mk44 # new scheme.
/src/usr.sbin/sysinst/
H A Dmsg.pm.pl157 message switch_parts {Switch partitioning scheme}
H A Dmsg.mi.pl166 * $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
H A Ddisklabel.c196 const struct disk_partitioning_scheme *scheme)
248 parts->dp.pscheme = scheme;
195 disklabel_parts_read(const char * disk,daddr_t start,daddr_t len,size_t bps,const struct disk_partitioning_scheme * scheme) argument
H A Dgpt.c265 const struct disk_partitioning_scheme *scheme)
386 parts->dp.pscheme = scheme;
264 gpt_read_from_disk(const char * dev,daddr_t start,daddr_t len,size_t bps,const struct disk_partitioning_scheme * scheme) argument
H A Dmbr.c981 const struct disk_partitioning_scheme *scheme)
993 parts->dp.pscheme = scheme;
980 mbr_read_from_disk(const char * disk,daddr_t start,daddr_t len,size_t bps,const struct disk_partitioning_scheme * scheme) argument
/src/libexec/httpd/
H A Dbozohttpd.c1067 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 35 milliseconds