Home
last modified time | relevance | path

Searched refs:gpr_strdup (Results 1 – 25 of 99) sorted by relevance

1234

/external/grpc-grpc/src/core/lib/transport/
Dtransport_op_string.cc38 gpr_strvec_add(b, gpr_strdup("key=")); in put_metadata()
42 gpr_strvec_add(b, gpr_strdup(" value=")); in put_metadata()
50 if (m != md.list.head) gpr_strvec_add(b, gpr_strdup(", ")); in put_metadata_list()
69 gpr_strvec_add(&b, gpr_strdup(" ")); in grpc_transport_stream_op_batch_string()
70 gpr_strvec_add(&b, gpr_strdup("SEND_INITIAL_METADATA{")); in grpc_transport_stream_op_batch_string()
73 gpr_strvec_add(&b, gpr_strdup("}")); in grpc_transport_stream_op_batch_string()
77 gpr_strvec_add(&b, gpr_strdup(" ")); in grpc_transport_stream_op_batch_string()
86 gpr_strdup("SEND_MESSAGE(flag and length unknown, already orphaned)"); in grpc_transport_stream_op_batch_string()
92 gpr_strvec_add(&b, gpr_strdup(" ")); in grpc_transport_stream_op_batch_string()
93 gpr_strvec_add(&b, gpr_strdup("SEND_TRAILING_METADATA{")); in grpc_transport_stream_op_batch_string()
[all …]
/external/grpc-grpc/src/core/lib/http/
Dformat_request.cc35 gpr_strvec_add(buf, gpr_strdup(request->http.path)); in fill_common_header()
36 gpr_strvec_add(buf, gpr_strdup(" HTTP/1.0\r\n")); in fill_common_header()
38 gpr_strvec_add(buf, gpr_strdup("Host: ")); in fill_common_header()
39 gpr_strvec_add(buf, gpr_strdup(request->host)); in fill_common_header()
40 gpr_strvec_add(buf, gpr_strdup("\r\n")); in fill_common_header()
42 gpr_strvec_add(buf, gpr_strdup("Connection: close\r\n")); in fill_common_header()
44 gpr_strdup("User-Agent: " GRPC_HTTPCLI_USER_AGENT "\r\n")); in fill_common_header()
47 gpr_strvec_add(buf, gpr_strdup(request->http.hdrs[i].key)); in fill_common_header()
48 gpr_strvec_add(buf, gpr_strdup(": ")); in fill_common_header()
49 gpr_strvec_add(buf, gpr_strdup(request->http.hdrs[i].value)); in fill_common_header()
[all …]
/external/grpc-grpc/test/core/channel/
Dminimal_stack_is_minimal_test.cc144 if (v.count != 0) gpr_strvec_add(&v, gpr_strdup(", ")); in check_stack()
145 gpr_strvec_add(&v, gpr_strdup(a)); in check_stack()
158 if (v.count != 0) gpr_strvec_add(&v, gpr_strdup(", ")); in check_stack()
159 gpr_strvec_add(&v, gpr_strdup(name)); in check_stack()
169 gpr_strvec_add(&v, gpr_strdup("{")); in check_stack()
171 if (i > 0) gpr_strvec_add(&v, gpr_strdup(", ")); in check_stack()
172 gpr_strvec_add(&v, gpr_strdup(channel_args->args[i].key)); in check_stack()
173 gpr_strvec_add(&v, gpr_strdup("=")); in check_stack()
182 gpr_strvec_add(&v, gpr_strdup(channel_args->args[i].value.string)); in check_stack()
192 gpr_strvec_add(&v, gpr_strdup("}")); in check_stack()
/external/grpc-grpc/src/core/lib/surface/
Dcall_log_batch.cc33 gpr_strvec_add(b, gpr_strdup("(nil)")); in add_metadata()
37 gpr_strvec_add(b, gpr_strdup("\nkey=")); in add_metadata()
40 gpr_strvec_add(b, gpr_strdup(" value=")); in add_metadata()
55 gpr_strvec_add(&b, gpr_strdup("SEND_INITIAL_METADATA")); in grpc_op_string()
65 gpr_strvec_add(&b, gpr_strdup("SEND_CLOSE_FROM_CLIENT")); in grpc_op_string()
76 gpr_strvec_add(&b, gpr_strdup("(null)")); in grpc_op_string()
Devent_string.cc47 if (ev == nullptr) return gpr_strdup("null"); in grpc_event_string()
53 gpr_strvec_add(&buf, gpr_strdup("QUEUE_TIMEOUT")); in grpc_event_string()
56 gpr_strvec_add(&buf, gpr_strdup("QUEUE_SHUTDOWN")); in grpc_event_string()
59 gpr_strvec_add(&buf, gpr_strdup("OP_COMPLETE: ")); in grpc_event_string()
/external/grpc-grpc/src/core/lib/security/credentials/ssl/
Dssl_credentials.cc97 config->pem_root_certs = gpr_strdup(pem_root_certs); in ssl_build_config()
105 gpr_strdup(pem_key_cert_pair->cert_chain); in ssl_build_config()
107 gpr_strdup(pem_key_cert_pair->private_key); in ssl_build_config()
176 tsi_pairs[i].cert_chain = gpr_strdup(pem_key_cert_pairs[i].cert_chain); in grpc_convert_grpc_to_tsi_cert_pairs()
177 tsi_pairs[i].private_key = gpr_strdup(pem_key_cert_pairs[i].private_key); in grpc_convert_grpc_to_tsi_cert_pairs()
189 config->pem_root_certs = gpr_strdup(pem_root_certs); in ssl_build_server_config()
204 config->pem_root_certs = gpr_strdup(pem_root_certs); in grpc_ssl_server_certificate_config_create()
216 gpr_strdup(pem_key_cert_pairs[i].cert_chain); in grpc_ssl_server_certificate_config_create()
218 gpr_strdup(pem_key_cert_pairs[i].private_key); in grpc_ssl_server_certificate_config_create()
/external/grpc-grpc/src/core/lib/security/credentials/alts/
Dalts_credentials.cc82 ? gpr_strdup(GRPC_ALTS_HANDSHAKER_SERVICE_URL) in grpc_alts_credentials_create_customized()
83 : gpr_strdup(handshaker_service_url); in grpc_alts_credentials_create_customized()
101 ? gpr_strdup(GRPC_ALTS_HANDSHAKER_SERVICE_URL) in grpc_alts_server_credentials_create_customized()
102 : gpr_strdup(handshaker_service_url); in grpc_alts_server_credentials_create_customized()
/external/grpc-grpc/src/core/lib/gpr/
Dstring_util_windows.cc63 LPSTR gpr_tchar_to_char(LPCTSTR input) { return (LPSTR)gpr_strdup(input); } in gpr_tchar_to_char()
65 LPTSTR gpr_char_to_tchar(LPCTSTR input) { return (LPTSTR)gpr_strdup(input); } in gpr_char_to_tchar()
76 if (status == 0) return gpr_strdup("Unable to retrieve error string"); in gpr_format_message()
Denv_posix.cc39 return result == nullptr ? result : gpr_strdup(result); in gpr_getenv()
/external/grpc-grpc/src/core/lib/iomgr/
Dresolve_address_windows.cc83 port = gpr_strdup(default_port); in windows_blocking_resolve_address()
157 r->name = gpr_strdup(name); in windows_resolve_address()
158 r->default_port = gpr_strdup(default_port); in windows_resolve_address()
Dresolve_address_posix.cc77 port = gpr_strdup(default_port); in posix_blocking_resolve_address()
172 r->name = gpr_strdup(name); in posix_resolve_address()
173 r->default_port = gpr_strdup(default_port); in posix_resolve_address()
Dtcp_server_utils_posix_ifaddrs.cc135 addr_str = gpr_strdup("<error>"); in grpc_tcp_server_add_all_local_addrs()
153 err_str = gpr_strdup("Failed to add listener"); in grpc_tcp_server_add_all_local_addrs()
Dresolve_address_custom.cc53 r->port = gpr_strdup(svc[i][1]); in retry_named_port_failure()
110 *port = gpr_strdup(default_port); in try_split_host_port()
/external/grpc-grpc/src/core/ext/filters/client_channel/
Dresolver_registry.cc35 RegistryState() : default_prefix_(gpr_strdup("dns:///")) {} in RegistryState()
40 default_prefix_.reset(gpr_strdup(default_resolver_prefix)); in SetDefaultPrefix()
174 return UniquePtr<char>(canonical_target == nullptr ? gpr_strdup(target) in AddDefaultPrefixIfNeeded()
Dretry_throttle.cc122 return gpr_strdup(static_cast<const char*>(key)); in copy_server_name()
180 g_avl = grpc_avl_add(g_avl, gpr_strdup(server_name), in GetDataForServer()
Dlb_policy_factory.cc51 gpr_strdup(new_addresses->addresses[i].balancer_name); in grpc_lb_addresses_copy()
71 target->balancer_name = gpr_strdup(balancer_name); in grpc_lb_addresses_set_address()
/external/grpc-grpc/src/core/lib/debug/
Dstats.cc148 gpr_strvec_add(&v, gpr_strdup("{")); in grpc_stats_data_as_json()
171 gpr_strvec_add(&v, gpr_strdup("]")); in grpc_stats_data_as_json()
174 gpr_strvec_add(&v, gpr_strdup("}")); in grpc_stats_data_as_json()
/external/grpc-grpc/src/core/lib/security/credentials/jwt/
Djwt_credentials.cc90 c->cached.service_url = gpr_strdup(context.service_url); in jwt_get_request_metadata()
146 char* json_copy = gpr_strdup(json_key); in redact_private_key()
150 return gpr_strdup("<Json failed to parse.>"); in redact_private_key()
Djwt_verifier.cc360 ctx->audience = gpr_strdup(audience); in verifier_cb_ctx_create()
697 req.host = gpr_strdup(jwks_uri); in on_openid_config_retrieved()
743 mapping->key_url_prefix = gpr_strdup(key_url_prefix); in verifier_put_mapping()
746 v->mappings[v->num_mappings].email_domain = gpr_strdup(email_domain); in verifier_put_mapping()
747 v->mappings[v->num_mappings].key_url_prefix = gpr_strdup(key_url_prefix); in verifier_put_mapping()
807 req.host = gpr_strdup(mapping->key_url_prefix); in retrieve_key_and_verify()
819 req.host = gpr_strdup(strstr(iss, "https://") == iss ? iss + 8 : iss); in retrieve_key_and_verify()
822 req.http.path = gpr_strdup(GRPC_OPENID_CONFIG_URL_SUFFIX); in retrieve_key_and_verify()
/external/grpc-grpc/test/core/slice/
Dslice_weak_hash_table_test.cc50 table->Add(key, UniquePtr<char>(gpr_strdup("value"))); in TEST()
81 table->Add(key, UniquePtr<char>(gpr_strdup(oss.str().c_str()))); in TEST()
/external/grpc-grpc/test/core/json/
Djson_test.cc144 char* scratchpad = gpr_strdup(pair->input); in test_pairs()
172 char* scratchpad = gpr_strdup("[[],[],[]]"); in test_atypical()
/external/grpc-grpc/src/core/lib/security/context/
Dsecurity_context.cc282 prop->name = gpr_strdup(name);
298 prop->name = gpr_strdup(name);
299 prop->value = gpr_strdup(value);
/external/grpc-grpc/include/grpc/support/
Dstring_util.h34 GPRAPI char* gpr_strdup(const char* src);
/external/grpc-grpc/test/core/http/
Dhttpcli_test.cc172 root = gpr_strdup("."); in main()
177 args[0] = gpr_strdup(argv[1]); in main()
Dhttpscli_test.cc172 root = gpr_strdup("."); in main()
177 args[0] = gpr_strdup(argv[1]); in main()

1234