Home
last modified time | relevance | path

Searched refs:uri (Results 1 – 25 of 60) sorted by relevance

123

/illumos-gate/usr/src/lib/print/libpapi-common/common/
H A Duri.c169 ((uri->user != NULL) && (uri->host == NULL)) || in uri_to_string()
170 ((uri->port != NULL) && (uri->host == NULL)) || in uri_to_string()
172 ((uri->query != NULL) && (uri->path == NULL))) { in uri_to_string()
176 if (uri->path == NULL || uri->path[0] == '/') in uri_to_string()
187 (uri->user ? uri->user : ""), in uri_to_string()
189 (uri->password ? uri->password : ""), in uri_to_string()
191 (uri->host ? uri->host : ""), in uri_to_string()
193 (uri->port ? uri->port : ""), in uri_to_string()
195 (uri->path ? uri->path : ""), in uri_to_string()
197 (uri->fragment ? uri->fragment : ""), in uri_to_string()
[all …]
H A Duri.h58 extern int uri_from_string(char *string, uri_t **uri);
59 extern int uri_to_string(uri_t *uri, char *buffer, size_t buflen);
60 extern void uri_free(uri_t *uri);
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dpkcs11_uri.c211 uri->id_len = read_id(l2, uri->id, in pkcs11_parse_uri()
264 pkcs11_free_uri(uri); in pkcs11_parse_uri()
268 pkcs11_free_uri(uri); in pkcs11_parse_uri()
284 free(uri->object); in pkcs11_free_uri()
286 free(uri->token); in pkcs11_free_uri()
288 free(uri->manuf); in pkcs11_free_uri()
290 free(uri->serial); in pkcs11_free_uri()
292 free(uri->model); in pkcs11_free_uri()
293 if (uri->id != NULL) in pkcs11_free_uri()
294 free(uri->id); in pkcs11_free_uri()
[all …]
/illumos-gate/usr/src/lib/print/libhttp-core/common/
H A Dhttp-support.c126 uri = http_copy_decode(host, uri, hostlen, ":"); in httpSeparate2()
129 uri ++; in httpSeparate2()
152 *port = strtol(uri, (char **)&uri, 10); in httpSeparate2()
154 if (*uri == '/') in httpSeparate2()
186 uri += 2; in httpSeparate2()
189 slash = uri + strlen(uri); in httpSeparate2()
197 uri = http_copy_decode(username, uri, usernamelen, "@") + 1; in httpSeparate2()
206 uri = http_copy_decode(host, uri, hostlen, ":/"); in httpSeparate2()
208 if (*uri != ':') in httpSeparate2()
229 *port = strtol(uri + 1, (char **)&uri, 10); in httpSeparate2()
[all …]
H A Dhttp.h353 extern int httpDelete(http_t *http, const char *uri);
357 extern int httpGet(http_t *http, const char *uri);
365 extern int httpHead(http_t *http, const char *uri);
367 extern int httpOptions(http_t *http, const char *uri);
368 extern int httpPost(http_t *http, const char *uri);
374 extern int httpPut(http_t *http, const char *uri);
377 extern void httpSeparate(const char *uri, char *method,
383 extern int httpTrace(http_t *http, const char *uri);
405 extern void httpSeparate2(const char *uri,
H A Dhttp.c118 const char *uri);
818 return (http_send(http, HTTP_GET, uri)); in httpGet()
830 return (http_send(http, HTTP_HEAD, uri)); in httpHead()
870 return (http_send(http, HTTP_PUT, uri)); in httpPut()
1984 const char *uri) /* I - URI */ in http_send() argument
2012 if (http == NULL || uri == NULL) in http_send()
2019 for (ptr = buf; *uri != '\0' && ptr < (buf + sizeof(buf) - 1); uri ++) in http_send()
2020 if (*uri <= ' ' || *uri >= 127) in http_send()
2025 *ptr ++ = hex[(*uri >> 4) & 15]; in http_send()
2027 *ptr ++ = hex[*uri & 15]; in http_send()
[all …]
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_uri_ui.c34 sip_free_parsed_uri(sip_uri_t uri) in sip_free_parsed_uri() argument
38 if (uri == NULL) in sip_free_parsed_uri()
41 _uri = (_sip_uri_t *)uri; in sip_free_parsed_uri()
121 if (uri == NULL) in sip_is_sipuri()
123 _uri = (_sip_uri_t *)uri; in sip_is_sipuri()
140 if (uri == NULL) { in sip_check_get_param()
145 return ((_sip_uri_t *)uri); in sip_check_get_param()
184 if (uri->sip_uri_user.sip_str_len > 0) in sip_get_uri_user()
185 return (&uri->sip_uri_user); in sip_get_uri_user()
395 if (uri == NULL) in sip_is_uri_teluser()
[all …]
H A Dsip_msg.c716 char *uri; in sip_create_nonOKack() local
745 if (uri == NULL) { in sip_create_nonOKack()
749 (void) strncpy(uri, in sip_create_nonOKack()
753 uri[_request->sip_msg_req_res->U.sip_request. in sip_create_nonOKack()
755 if ((ret = sip_add_request_line(_ack_msg, ACK, uri)) != 0) { in sip_create_nonOKack()
759 free(uri); in sip_create_nonOKack()
805 char *uri; in sip_create_OKack() local
838 if (uri == NULL) { in sip_create_OKack()
842 (void) strncpy(uri, contact_value->cftr_uri.sip_str_ptr, in sip_create_OKack()
844 uri[contact_value->cftr_uri.sip_str_len] = '\0'; in sip_create_OKack()
[all …]
/illumos-gate/usr/src/lib/print/libpapi-dynamic/common/
H A Dnss.c90 uri_t *uri = NULL; in solaris_lpsched_shortcircuit_hack() local
108 uri_free(uri); in solaris_lpsched_shortcircuit_hack()
114 uri_free(uri); in solaris_lpsched_shortcircuit_hack()
131 uri_free(uri); in solaris_lpsched_shortcircuit_hack()
136 if ((uri->host != NULL) && (is_localhost(uri->host) == 0)) { in solaris_lpsched_shortcircuit_hack()
137 uri_free(uri); in solaris_lpsched_shortcircuit_hack()
142 (uri->host ? uri->host : "localhost"), printer); in solaris_lpsched_shortcircuit_hack()
145 uri_free(uri); in solaris_lpsched_shortcircuit_hack()
182 free(uri); in fill_printer_uri_supported()
215 char *uri = NULL; in fill_printer_uri() local
[all …]
H A Dservice.c84 uri_t *uri = NULL; in default_print_service() local
86 if (uri_from_string(service_uri, &uri) != -1) in default_print_service()
87 result = strdup(uri->scheme); in default_print_service()
89 if (uri != NULL) in default_print_service()
90 uri_free(uri); in default_print_service()
122 scheme = (svc->uri)->scheme; in service_load()
195 if ((user == NULL) && (svc->uri != NULL)) in service_connect()
196 user = (svc->uri)->user; in service_connect()
199 password = (svc->uri)->password; in service_connect()
283 if (svc->uri != NULL) in papiServiceDestroy()
[all …]
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/
H A Dlpd-misc.c63 queue_name_from_uri(uri_t *uri) in queue_name_from_uri() argument
67 if ((uri != NULL) && (uri->path != NULL)) { in queue_name_from_uri()
68 char *ptr = strrchr(uri->path, '/'); in queue_name_from_uri()
71 result = uri->path; in queue_name_from_uri()
132 if ((svc == NULL) || (svc->uri == NULL)) in lpd_open()
144 av[ac++] = svc->uri->host; in lpd_open()
158 if (svc->uri->path == NULL) { in lpd_open()
161 if ((tmp = strrchr(svc->uri->path, '/')) == NULL) in lpd_open()
162 tmp = svc->uri->path; in lpd_open()
H A Dservice.c41 uri_t *uri = NULL; in service_fill_in() local
55 if (uri_from_string((char *)name, &uri) != -1) { in service_fill_in()
56 if ((strcasecmp(uri->scheme, "lpd") == 0) || in service_fill_in()
57 (strcasecmp(uri->scheme, "rfc-1179") == 0)) { in service_fill_in()
58 if (svc->uri != NULL) in service_fill_in()
59 uri_free(svc->uri); in service_fill_in()
60 svc->uri = uri; in service_fill_in()
62 uri_free(uri); in service_fill_in()
110 if (svc->uri != NULL) in papiServiceDestroy()
111 uri_free(svc->uri); in papiServiceDestroy()
H A Dprinter.c78 queue_name_from_uri(svc->uri)); in papiPrinterQuery()
80 if (uri_to_string(svc->uri, buf, sizeof (buf)) == 0) in papiPrinterQuery()
173 queue_name_from_uri(svc->uri)); in papiPrinterDisable()
187 queue_name_from_uri(svc->uri)); in papiPrinterEnable()
202 queue_name_from_uri(svc->uri)); in papiPrinterResume()
217 queue_name_from_uri(svc->uri)); in papiPrinterPause()
/illumos-gate/usr/src/lib/print/libpapi-ipp/common/
H A Dservice.c70 if (svc->uri == NULL) in service_connect()
71 uri_from_string(service_name, &svc->uri); in service_connect()
95 uri_from_string(service_name, &svc->uri); in service_connect()
98 if (svc->uri == NULL) in service_connect()
101 if (svc->uri->port != NULL) in service_connect()
102 port = strtol(svc->uri->port, NULL, 10); in service_connect()
107 if (svc->uri != NULL) { in service_connect()
108 uri_free(svc->uri); in service_connect()
109 svc->uri = NULL; in service_connect()
175 if (svc->uri != NULL) in papiServiceDestroy()
[all …]
H A Dipp-support.c214 _default_destination(service_t *svc, char **uri) in _default_destination() argument
221 if ((svc == NULL) || (uri == NULL)) in _default_destination()
245 if (uri != NULL) { in _default_destination()
252 *uri = strdup(tmp); in _default_destination()
263 char *uri = name; in ipp_add_printer_uri() local
271 uri = buf; in ipp_add_printer_uri()
273 _default_destination(svc, &uri); in ipp_add_printer_uri()
382 if ((svc->post == NULL) && (svc->uri->path)) in ipp_send_initial_request_block()
383 svc->post = strdup(svc->uri->path); in ipp_send_initial_request_block()
467 char *uri = svc->post; in setAuthString() local
[all …]
/illumos-gate/usr/src/lib/print/libipp-listener/common/
H A Dipp-listener.c372 uri_t *uri = NULL; in cyclical_service_check() local
387 if (uri_from_string(s, &uri) < 0) in cyclical_service_check()
390 if ((uri == NULL) || (uri->scheme == NULL) || (uri->host == NULL)) { in cyclical_service_check()
391 uri_free(uri); in cyclical_service_check()
396 if (strcasecmp(uri->scheme, "ipp") != 0) { in cyclical_service_check()
397 uri_free(uri); in cyclical_service_check()
402 if (is_localhost(uri->host) != 0) { in cyclical_service_check()
403 uri_free(uri); in cyclical_service_check()
409 ((uri->port != NULL) && (atoi(uri->port) != port))) { in cyclical_service_check()
410 uri_free(uri); in cyclical_service_check()
[all …]
/illumos-gate/usr/src/tools/scripts/
H A Donu.sh.in97 --set-property signature-policy=verify -O $uri $redistpub
175 uri=""
206 uri=$OPTARG
229 [ -z "$uri" ] && uri=$ONURI
230 [ -z "$uri" ] && uri=$DEFAULTONURI
253 uri="file://$redistdir"
/illumos-gate/usr/src/cmd/hal/addons/network-devices/
H A Dcommon.c33 char **serial_no, char ***command_set, char **uri);
85 char *uri = NULL, addr_string[INET6_ADDRSTRLEN]; in is_listening() local
177 *uri = NULL, *sn, *serial; in add_network_printer() local
195 &description, &serial, NULL, &uri); in add_network_printer()
215 if ((uri != NULL) || (device != NULL)) in add_network_printer()
217 "printer.device", (uri ? uri : device), &error); in add_network_printer()
241 NP(uri))); in add_network_printer()
251 if (uri != NULL) in add_network_printer()
252 free(uri); in add_network_printer()
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/
H A Dlpstat.c172 char *uri = NULL; in print_description() local
178 if ((uri != NULL) && (uri_from_string(uri, &u) == 0)) { in print_description()
205 char *uri = NULL; in report_device() local
223 if ((uri != NULL) && (uri_from_string(uri, &u) == 0)) { in report_device()
334 char *uri = NULL; in get_remote_hostname() local
344 if (uri != NULL) { in get_remote_hostname()
848 if (uri != NULL) { in report_job()
870 uri = NULL; in report_job()
888 uri = puri; in report_job()
897 if ((uri != NULL) && (uri_from_string(uri, &u) == 0)) { in report_job()
[all …]
H A Din.lpd.c584 uri_t *uri = NULL; in cyclical_service_check() local
599 if (uri_from_string(s, &uri) < 0) in cyclical_service_check()
602 if ((uri == NULL) || (uri->scheme == NULL) || (uri->host == NULL)) { in cyclical_service_check()
603 uri_free(uri); in cyclical_service_check()
608 if (strcasecmp(uri->scheme, "lpd") != 0) { in cyclical_service_check()
609 uri_free(uri); in cyclical_service_check()
614 if (is_localhost(uri->host) != 0) { in cyclical_service_check()
615 uri_free(uri); in cyclical_service_check()
619 uri_free(uri); in cyclical_service_check()
/illumos-gate/usr/src/lib/libscf/common/
H A Dscf_type.c189 char uri[URI_COMPONENT_COUNT][REP_PROTOCOL_VALUE_LEN]; in valid_uri() local
198 if (regex(exp, str, uri[URI_SCHEME], uri[URI_AUTHORITY], uri[URI_PATH], in valid_uri()
199 uri[URI_QUERY], uri[URI_FRAGMENT]) == NULL) { in valid_uri()
205 if (strlen(uri[URI_PATH]) == 0) { in valid_uri()
/illumos-gate/usr/src/cmd/hal/probing/network-printer/
H A Dprobe-snmp.c197 char **serial_no, char ***command_set, char **uri) in snmp_xerox_phaser_printer_info() argument
259 char ***command_set, char **uri) in snmp_qms_printer_info() argument
287 *uri = tmp; in snmp_qms_printer_info()
425 char ***command_set, char **uri) in snmp_printer_info() argument
443 command_set, uri) == 0) { in snmp_printer_info()
446 model, description, serial_no, command_set, uri) == 0) { in snmp_printer_info()
481 **command_set = NULL, *uri = NULL; in main() local
485 &description, &serial_no, &command_set, &uri); in main()
491 printf("\tdevice = %s\n", NP(uri)); in main()
/illumos-gate/usr/src/cmd/print/scripts/
H A Dlpadmin273 uri=${server}
372 if [[ -z "${uri}" ]] ; then
373 uri="ipp://${server}/printers/${rem_printer}"
374 ${LPSTAT} -p ${uri} >/dev/null 2>&1
376 uri="lpd://${server}/printers/${rem_printer}#Solaris"
384 -a "printer-uri-supported=${uri}" \
/illumos-gate/usr/src/cmd/lp/lib/papi/
H A Dlpsched-misc.c103 printer_name_from_uri_id(char *uri, int32_t id) in printer_name_from_uri_id() argument
108 if (uri != NULL) { in printer_name_from_uri_id()
109 if ((result = strrchr(uri, '/')) != NULL) { in printer_name_from_uri_id()
112 result = (char *)uri; in printer_name_from_uri_id()
H A Dlpsched-printers.c158 char uri[BUFSIZ]; in lpsched_printer_configuration_to_attributes() local
160 snprintf(uri, sizeof (uri), "lpsched://localhost/printers/%s", in lpsched_printer_configuration_to_attributes()
163 "printer-uri-supported", uri); in lpsched_printer_configuration_to_attributes()
378 char uri[BUFSIZ]; in lpsched_class_configuration_to_attributes() local
380 snprintf(uri, sizeof (uri), "lpsched://localhost/printers/%s", in lpsched_class_configuration_to_attributes()
383 "printer-uri-supported", uri); in lpsched_class_configuration_to_attributes()

123