/freebsd/contrib/wpa/src/utils/ |
H A D | browser.c | 62 const char *uri) in process_request_starting_uri() argument 66 if (g_str_has_prefix(uri, "osu://")) { in process_request_starting_uri() 67 ctx->success = atoi(uri + 6); in process_request_starting_uri() 69 } else if (g_str_has_prefix(uri, "http://localhost:12345")) { in process_request_starting_uri() 107 const gchar *uri = webkit_uri_request_get_uri(req); in view_cb_resource_load_starting() local 109 wpa_printf(MSG_DEBUG, "BROWSER:%s uri=%s", __func__, uri); in view_cb_resource_load_starting() 110 process_request_starting_uri(ctx, uri); in view_cb_resource_load_starting() 138 const gchar *uri; in view_cb_decide_policy() local 143 uri = webkit_uri_request_get_uri(req); in view_cb_decide_policy() 145 __func__, uri); in view_cb_decide_policy() [all …]
|
H A D | xml-utils.c | 16 xml_node_t *root, char *uri) in get_node_uri_iter() argument 22 end = strchr(uri, '/'); in get_node_uri_iter() 30 if (strcasecmp(name, uri) == 0) in get_node_uri_iter() 47 const char *uri) in get_node_uri() argument 52 search = os_strdup(uri); in get_node_uri() 228 xml_node_t *in, const char *uri) in node_to_tnds() argument 245 if (uri) in node_to_tnds() 246 xml_node_create_text(ctx, tnds, NULL, "Path", uri); in node_to_tnds() 254 new_uri = add_path(uri, name); in node_to_tnds() 338 xml_node_t *node, const char *uri) in add_mo_node() argument [all …]
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | regress_http.c | 2528 struct evhttp_uri *uri = NULL; in http_parse_uri_test() local 2530 #define URI_PARSE(uri) \ in http_parse_uri_test() argument 2531 evhttp_uri_parse_with_flags((uri), parse_flags) in http_parse_uri_test() 2534 char *ret = evhttp_uri_join(uri, url_tmp, sizeof(url_tmp)); \ in http_parse_uri_test() 2552 uri = URI_PARSE(s); \ in http_parse_uri_test() 2553 if (uri != NULL && !nonconform) { \ in http_parse_uri_test() 2555 } else if (uri == NULL && nonconform) { \ in http_parse_uri_test() 2559 if (uri) { \ in http_parse_uri_test() 2560 tt_want(evhttp_uri_join(uri, url_tmp, \ in http_parse_uri_test() 2562 evhttp_uri_free(uri); \ in http_parse_uri_test() [all …]
|
/freebsd/contrib/libevent/test/ |
H A D | regress_http.c | 2528 struct evhttp_uri *uri = NULL; in http_parse_uri_test() local 2530 #define URI_PARSE(uri) \ in http_parse_uri_test() argument 2531 evhttp_uri_parse_with_flags((uri), parse_flags) in http_parse_uri_test() 2534 char *ret = evhttp_uri_join(uri, url_tmp, sizeof(url_tmp)); \ in http_parse_uri_test() 2552 uri = URI_PARSE(s); \ in http_parse_uri_test() 2553 if (uri != NULL && !nonconform) { \ in http_parse_uri_test() 2555 } else if (uri == NULL && nonconform) { \ in http_parse_uri_test() 2559 if (uri) { \ in http_parse_uri_test() 2560 tt_want(evhttp_uri_join(uri, url_tmp, \ in http_parse_uri_test() 2562 evhttp_uri_free(uri); \ in http_parse_uri_test() [all …]
|
/freebsd/contrib/ntp/sntp/libevent/sample/ |
H A D | http-connect.c | 28 struct evhttp_uri *uri; in uri_parse() local 29 VERIFY(uri = evhttp_uri_parse(str)); in uri_parse() 30 VERIFY(evhttp_uri_get_host(uri)); in uri_parse() 31 VERIFY(evhttp_uri_get_port(uri) > 0); in uri_parse() 32 return uri; in uri_parse() 34 static char* uri_path(struct evhttp_uri *uri, char buffer[URL_MAX]) in uri_path() argument 38 VERIFY(evhttp_uri_join(uri, buffer, URL_MAX)); in uri_path() 48 static char* uri_hostport(struct evhttp_uri *uri, char buffer[URL_MAX]) in uri_hostport() argument 50 VERIFY(evhttp_uri_join(uri, buffer, URL_MAX)); in uri_hostport() 51 VERIFY(evhttp_uri_get_host(uri)); in uri_hostport() [all …]
|
H A D | https-client.c | 223 char uri[256]; in main() local 336 snprintf(uri, sizeof(uri) - 1, "%s", path); in main() 338 snprintf(uri, sizeof(uri) - 1, "%s?%s", path, query); in main() 340 uri[sizeof(uri) - 1] = '\0'; in main() 499 r = evhttp_make_request(evcon, req, data_file ? EVHTTP_REQ_POST : EVHTTP_REQ_GET, uri); in main()
|
/freebsd/contrib/libevent/sample/ |
H A D | http-connect.c | 28 struct evhttp_uri *uri; in uri_parse() local 29 VERIFY(uri = evhttp_uri_parse(str)); in uri_parse() 30 VERIFY(evhttp_uri_get_host(uri)); in uri_parse() 31 VERIFY(evhttp_uri_get_port(uri) > 0); in uri_parse() 32 return uri; in uri_parse() 34 static char* uri_path(struct evhttp_uri *uri, char buffer[URL_MAX]) in uri_path() argument 38 VERIFY(evhttp_uri_join(uri, buffer, URL_MAX)); in uri_path() 48 static char* uri_hostport(struct evhttp_uri *uri, char buffer[URL_MAX]) in uri_hostport() argument 50 VERIFY(evhttp_uri_join(uri, buffer, URL_MAX)); in uri_hostport() 51 VERIFY(evhttp_uri_get_host(uri)); in uri_hostport() [all …]
|
H A D | https-client.c | 223 char uri[256]; in main() local 336 snprintf(uri, sizeof(uri) - 1, "%s", path); in main() 338 snprintf(uri, sizeof(uri) - 1, "%s?%s", path, query); in main() 340 uri[sizeof(uri) - 1] = '\0'; in main() 499 r = evhttp_make_request(evcon, req, data_file ? EVHTTP_REQ_POST : EVHTTP_REQ_GET, uri); in main()
|
/freebsd/contrib/ntp/sntp/libevent/include/event2/ |
H A D | http.h | 794 enum evhttp_cmd_type type, const char *uri); 946 char *evhttp_decode_uri(const char *uri); 964 char *evhttp_uridecode(const char *uri, int decode_plus, 987 int evhttp_parse_query(const char *uri, struct evkeyvalq *headers); 1007 int evhttp_parse_query_str(const char *uri, struct evkeyvalq *headers); 1034 void evhttp_uri_set_flags(struct evhttp_uri *uri, unsigned flags); 1039 const char *evhttp_uri_get_scheme(const struct evhttp_uri *uri); 1045 const char *evhttp_uri_get_userinfo(const struct evhttp_uri *uri); 1059 const char *evhttp_uri_get_host(const struct evhttp_uri *uri); 1062 int evhttp_uri_get_port(const struct evhttp_uri *uri); [all …]
|
/freebsd/contrib/libevent/include/event2/ |
H A D | http.h | 794 enum evhttp_cmd_type type, const char *uri); 946 char *evhttp_decode_uri(const char *uri); 964 char *evhttp_uridecode(const char *uri, int decode_plus, 987 int evhttp_parse_query(const char *uri, struct evkeyvalq *headers); 1007 int evhttp_parse_query_str(const char *uri, struct evkeyvalq *headers); 1034 void evhttp_uri_set_flags(struct evhttp_uri *uri, unsigned flags); 1039 const char *evhttp_uri_get_scheme(const struct evhttp_uri *uri); 1045 const char *evhttp_uri_get_userinfo(const struct evhttp_uri *uri); 1059 const char *evhttp_uri_get_host(const struct evhttp_uri *uri); 1062 int evhttp_uri_get_port(const struct evhttp_uri *uri); [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | http.c | 452 method, req->uri, req->major, req->minor); in evhttp_make_header_request() 694 if (req->uri) { in evhttp_connection_incoming_fail() 695 mm_free(req->uri); in evhttp_connection_incoming_fail() 696 req->uri = NULL; in evhttp_connection_incoming_fail() 1722 char *uri; in evhttp_parse_request_line() local 1741 uri = line; in evhttp_parse_request_line() 1742 version = strrchr(uri, ' '); in evhttp_parse_request_line() 1743 if (!version || uri == version) in evhttp_parse_request_line() 1748 method_len = (uri - method) - 1; in evhttp_parse_request_line() 1868 if ((req->uri = mm_strdup(uri)) == NULL) { in evhttp_parse_request_line() [all …]
|
H A D | evrpc.c | 101 r = evrpc_unregister_rpc(base, rpc->uri); in evrpc_free() 211 evrpc_construct_uri(const char *uri) in evrpc_construct_uri() argument 216 constructed_uri_len = strlen(EVRPC_URI_PREFIX) + strlen(uri) + 1; in evrpc_construct_uri() 219 __func__, uri); in evrpc_construct_uri() 221 memcpy(constructed_uri + strlen(EVRPC_URI_PREFIX), uri, strlen(uri)); in evrpc_construct_uri() 231 char *constructed_uri = evrpc_construct_uri(rpc->uri); in evrpc_register_rpc() 258 if (strcmp(rpc->uri, name) == 0) in evrpc_unregister_rpc() 275 mm_free((char *)rpc->uri); in evrpc_unregister_rpc() 725 char *uri = NULL; in evrpc_schedule_request_closure() local 731 uri = evrpc_construct_uri(ctx->name); in evrpc_schedule_request_closure() [all …]
|
/freebsd/contrib/libevent/ |
H A D | http.c | 452 method, req->uri, req->major, req->minor); in evhttp_make_header_request() 694 if (req->uri) { in evhttp_connection_incoming_fail() 695 mm_free(req->uri); in evhttp_connection_incoming_fail() 696 req->uri = NULL; in evhttp_connection_incoming_fail() 1722 char *uri; in evhttp_parse_request_line() local 1741 uri = line; in evhttp_parse_request_line() 1742 version = strrchr(uri, ' '); in evhttp_parse_request_line() 1743 if (!version || uri == version) in evhttp_parse_request_line() 1748 method_len = (uri - method) - 1; in evhttp_parse_request_line() 1868 if ((req->uri = mm_strdup(uri)) == NULL) { in evhttp_parse_request_line() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/examples/ |
H A D | dpp-qrcode.py | 49 uri = None 52 uri = val.split('=', 1)[1] 54 if not uri: 56 if not uri.startswith('DPP:'): 59 print(uri) 65 res = wpas.request("DPP_QR_CODE " + uri); 100 uri = wpas.request("DPP_BOOTSTRAP_GET_URI %d" % id) 101 print(uri) 105 qr.add_data(uri, optimize=5)
|
H A D | dpp-nfc.py | 94 def dpp_nfc_uri_process(uri): argument 98 peer_id = wpas.request("DPP_NFC_URI " + uri) 103 summary("peer_id=%d for URI from NFC Tag: %s" % (peer_id, uri)) 133 uri = uribuf.decode() 137 summary("URI: " + uri) 138 if not uri.startswith("DPP:"): 141 return dpp_nfc_uri_process(uri) 253 def wpas_report_handover_req(uri): argument 258 cmd = "DPP_NFC_HANDOVER_REQ own=%d uri=%s" % (own_id, uri) 261 def wpas_report_handover_sel(uri): argument [all …]
|
/freebsd/crypto/openssl/providers/implementations/storemgmt/ |
H A D | file_store.c | 68 char *uri; /* The URI we currently try to load */ member 115 OPENSSL_free(ctx->uri); in free_file_ctx() 124 static struct file_ctx_st *new_file_ctx(int type, const char *uri, in new_file_ctx() argument 130 && (uri == NULL || (ctx->uri = OPENSSL_strdup(uri)) != NULL)) { in new_file_ctx() 152 static struct file_ctx_st *file_open_stream(BIO *source, const char *uri, in file_open_stream() argument 157 if ((ctx = new_file_ctx(IS_FILE, uri, provctx)) == NULL) { in file_open_stream() 170 static void *file_open_dir(const char *path, const char *uri, void *provctx) in file_open_dir() argument 174 if ((ctx = new_file_ctx(IS_DIR, uri, provctx)) == NULL) { in file_open_dir() 195 static void *file_open(void *provctx, const char *uri) in file_open() argument 213 path_data[path_data_n++].path = uri; in file_open() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Utility/ |
H A D | UriParser.cpp | 28 std::optional<URI> URI::Parse(llvm::StringRef uri) { in Parse() argument 32 auto pos = uri.find(kSchemeSep); in Parse() 37 ret.scheme = uri.substr(0, pos); in Parse() 39 auto path_pos = uri.find('/', host_pos); in Parse() 41 ret.path = uri.substr(path_pos); in Parse() 45 auto host_port = uri.substr( in Parse() 47 ((path_pos != std::string::npos) ? path_pos : uri.size()) - host_pos); in Parse()
|
/freebsd/contrib/wpa/hs20/client/ |
H A D | spp_client.c | 153 char *uri, *pos; in process_update_node() local 160 uri = get_spp_attr_value(ctx->xml, update, "managementTreeURI"); in process_update_node() 161 if (uri == NULL) { in process_update_node() 165 wpa_printf(MSG_INFO, "managementTreeUri: '%s'", uri); in process_update_node() 167 name = os_strrchr(uri, '/'); in process_update_node() 170 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node() 179 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node() 206 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node() 214 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node() 223 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node() [all …]
|
H A D | oma_dm_client.c | 82 char *uri, *ret = NULL; in oma_dm_get_target_locuri() local 88 uri = xml_node_get_text(ctx->xml, locuri); in oma_dm_get_target_locuri() 89 if (uri) in oma_dm_get_target_locuri() 90 ret = os_strdup(uri); in oma_dm_get_target_locuri() 91 xml_node_get_text_free(ctx->xml, uri); in oma_dm_get_target_locuri() 97 const char *element, const char *uri) in oma_dm_add_locuri() argument 104 xml_node_create_text(ctx->xml, node, NULL, "LocURI", uri); in oma_dm_add_locuri() 507 char *data, *uri, *upos, *end; in oma_dm_run_add() local 546 uri = os_strdup(pos); in oma_dm_run_add() 547 if (uri == NULL) in oma_dm_run_add() [all …]
|
/freebsd/crypto/openssl/engines/ |
H A D | e_loader_attic.c | 265 void *ui_data, const char *uri, 302 void *ui_data, const char *uri, in try_decode_PKCS12() argument 332 "PKCS12 import", uri, in try_decode_PKCS12() 438 const char *uri, in try_decode_PKCS8Encrypted() argument 469 "PKCS8 decrypt pass phrase", uri, in try_decode_PKCS8Encrypted() 514 void *ui_data, const char *uri, in try_decode_PrivateKey() argument 643 void *ui_data, const char *uri, in try_decode_PUBKEY() argument 679 void *ui_data, const char *uri, in try_decode_params() argument 757 const char *uri, in try_decode_X509Certificate() argument 813 void *ui_data, const char *uri, in try_decode_X509CRL() argument [all …]
|
/freebsd/crypto/openssl/apps/include/ |
H A D | apps.h | 114 X509 *load_cert_pass(const char *uri, int format, int maybe_stdin, 116 #define load_cert(uri, format, desc) load_cert_pass(uri, format, 1, NULL, desc) argument 117 X509_CRL *load_crl(const char *uri, int format, int maybe_stdin, 121 EVP_PKEY *load_key(const char *uri, int format, int maybe_stdin, 123 EVP_PKEY *load_pubkey(const char *uri, int format, int maybe_stdin, 125 EVP_PKEY *load_keyparams(const char *uri, int format, int maybe_stdin, 127 EVP_PKEY *load_keyparams_suppress(const char *uri, int format, int maybe_stdin, 131 int load_cert_certs(const char *uri, 139 int load_certs(const char *uri, int maybe_stdin, STACK_OF(X509) **certs, 141 int load_crls(const char *uri, STACK_OF(X509_CRL) **crls, [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | ossl_store_test.c | 72 static int get_params(const char *uri, const char *type) in get_params() argument 79 ctx = OSSL_STORE_open_ex(uri, NULL, NULL, NULL, NULL, NULL, NULL, NULL); in get_params() 106 char uri[PATH_MAX]; in test_store_get_params() local 142 if (!TEST_true(BIO_snprintf(uri, sizeof(uri), urifmt, datadir, type))) in test_store_get_params() 145 TEST_info("Testing uri: %s", uri); in test_store_get_params() 146 if (!TEST_true(get_params(uri, type))) in test_store_get_params()
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | x509_d2.c | 76 int X509_STORE_load_store_ex(X509_STORE *ctx, const char *uri, in X509_STORE_load_store_ex() argument 81 if (uri == NULL in X509_STORE_load_store_ex() 83 || X509_LOOKUP_add_store_ex(lookup, uri, libctx, propq) == 0) in X509_STORE_load_store_ex() 89 int X509_STORE_load_store(X509_STORE *ctx, const char *uri) in X509_STORE_load_store() argument 91 return X509_STORE_load_store_ex(ctx, uri, NULL, NULL); in X509_STORE_load_store()
|
/freebsd/crypto/openssl/apps/lib/ |
H A D | apps.c | 83 int load_key_certs_crls_suppress(const char *uri, int format, int maybe_stdin, 460 #define IS_HTTP(uri) ((uri) != NULL \ argument 461 && strncmp(uri, OSSL_HTTP_PREFIX, strlen(OSSL_HTTP_PREFIX)) == 0) 462 #define IS_HTTPS(uri) ((uri) != NULL \ argument 463 && strncmp(uri, OSSL_HTTPS_PREFIX, strlen(OSSL_HTTPS_PREFIX)) == 0) 465 X509 *load_cert_pass(const char *uri, int format, int maybe_stdin, in load_cert_pass() argument 472 if (IS_HTTPS(uri)) in load_cert_pass() 474 else if (IS_HTTP(uri)) in load_cert_pass() 475 cert = X509_load_http(uri, NULL, NULL, 0 /* timeout */); in load_cert_pass() 477 (void)load_key_certs_crls(uri, format, maybe_stdin, pass, desc, in load_cert_pass() [all …]
|
/freebsd/contrib/wpa/src/wps/ |
H A D | httpread.c | 71 char *uri; member 136 os_free(h->uri); in httpread_destroy() 251 char *uri; in httpread_hdr_analyze() local 265 h->uri = os_malloc((hbp - rawuri) + 1); in httpread_hdr_analyze() 266 if (h->uri == NULL) in httpread_hdr_analyze() 268 uri = h->uri; in httpread_hdr_analyze() 273 *uri++ = hex2byte(rawuri + 1); in httpread_hdr_analyze() 276 *uri++ = c; in httpread_hdr_analyze() 280 *uri = 0; /* null terminate */ in httpread_hdr_analyze() 782 return h->uri; in httpread_uri_get()
|