/external/grpc-grpc/src/core/lib/transport/ |
D | transport_op_string.cc | 38 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/ |
D | format_request.cc | 35 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/ |
D | minimal_stack_is_minimal_test.cc | 144 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/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/external/ |
D | external_account_credentials.cc | 244 request.http.path = gpr_strdup(uri->path().c_str()); in ExchangeToken() 250 headers[0].key = gpr_strdup("Content-Type"); in ExchangeToken() 251 headers[0].value = gpr_strdup("application/x-www-form-urlencoded"); in ExchangeToken() 257 headers[1].key = gpr_strdup("Authorization"); in ExchangeToken() 258 headers[1].value = gpr_strdup(str.c_str()); in ExchangeToken() 264 headers[0].key = gpr_strdup("Content-Type"); in ExchangeToken() 265 headers[0].value = gpr_strdup("application/x-www-form-urlencoded"); in ExchangeToken() 315 metadata_req_->response.body = gpr_strdup( in OnExchangeTokenInternal() 321 gpr_strdup(ctx_->response.hdrs[i].key); in OnExchangeTokenInternal() 323 gpr_strdup(ctx_->response.hdrs[i].value); in OnExchangeTokenInternal() [all …]
|
D | url_external_account_credentials.cc | 129 request.http.path = gpr_strdup(url_full_path_.c_str()); in RetrieveSubjectToken() 136 headers[i].key = gpr_strdup(header.first.c_str()); in RetrieveSubjectToken() 137 headers[i].value = gpr_strdup(header.second.c_str()); in RetrieveSubjectToken()
|
/external/grpc-grpc/src/core/lib/surface/ |
D | call_log_batch.cc | 33 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()
|
D | event_string.cc | 47 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/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/alts/ |
D | alts_credentials.cc | 42 ? gpr_strdup(GRPC_ALTS_HANDSHAKER_SERVICE_URL) in grpc_alts_credentials() 43 : gpr_strdup(handshaker_service_url)) { in grpc_alts_credentials() 67 ? gpr_strdup(GRPC_ALTS_HANDSHAKER_SERVICE_URL) in grpc_alts_server_credentials() 68 : gpr_strdup(handshaker_service_url)) { in grpc_alts_server_credentials()
|
/external/grpc-grpc/src/core/lib/security/credentials/ssl/ |
D | ssl_credentials.cc | 97 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/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/ssl/ |
D | ssl_credentials.cc | 98 config_.pem_root_certs = gpr_strdup(pem_root_certs); in build_config() 105 gpr_strdup(pem_key_cert_pair->cert_chain); in build_config() 107 gpr_strdup(pem_key_cert_pair->private_key); in build_config() 209 tsi_pairs[i].cert_chain = gpr_strdup(pem_key_cert_pairs[i].cert_chain); in grpc_convert_grpc_to_tsi_cert_pairs() 210 tsi_pairs[i].private_key = gpr_strdup(pem_key_cert_pairs[i].private_key); in grpc_convert_grpc_to_tsi_cert_pairs() 220 config_.pem_root_certs = gpr_strdup(pem_root_certs); in build_config() 243 config->pem_root_certs = gpr_strdup(pem_root_certs); in grpc_ssl_server_certificate_config_create() 254 gpr_strdup(pem_key_cert_pairs[i].cert_chain); in grpc_ssl_server_certificate_config_create() 256 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/ |
D | alts_credentials.cc | 82 ? 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/rust/crates/grpcio-sys/grpc/src/core/lib/channel/ |
D | channelz_registry.cc | 184 return gpr_strdup( in grpc_channelz_get_top_channels() 190 return gpr_strdup( in grpc_channelz_get_servers() 206 return gpr_strdup(json.Dump().c_str()); in grpc_channelz_get_server() 224 return gpr_strdup( in grpc_channelz_get_server_sockets() 241 return gpr_strdup(json.Dump().c_str()); in grpc_channelz_get_channel() 255 return gpr_strdup(json.Dump().c_str()); in grpc_channelz_get_subchannel() 269 return gpr_strdup(json.Dump().c_str()); in grpc_channelz_get_socket()
|
/external/grpc-grpc/src/core/lib/gpr/ |
D | string_util_windows.cc | 63 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()
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/gpr/ |
D | string_util_windows.cc | 63 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()
|
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/ |
D | resolver_registry.cc | 39 RegistryState() : default_prefix_(gpr_strdup("dns:///")) {} in RegistryState() 44 default_prefix_.reset(gpr_strdup(default_resolver_prefix)); in SetDefaultPrefix() 193 ? gpr_strdup(target) in AddDefaultPrefixIfNeeded() 194 : gpr_strdup(canonical_target.c_str())); in AddDefaultPrefixIfNeeded()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | resolve_address_windows.cc | 83 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()
|
D | resolve_address_posix.cc | 82 port = gpr_strdup(default_port); in posix_blocking_resolve_address() 177 r->name = gpr_strdup(name); in posix_resolve_address() 178 r->default_port = gpr_strdup(default_port); in posix_resolve_address()
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/oauth2/ |
D | oauth2_credentials.cc | 544 resource_(gpr_strdup(options->resource)), in StsTokenFetcherCredentials() 545 audience_(gpr_strdup(options->audience)), in StsTokenFetcherCredentials() 546 scope_(gpr_strdup(options->scope)), in StsTokenFetcherCredentials() 547 requested_token_type_(gpr_strdup(options->requested_token_type)), in StsTokenFetcherCredentials() 548 subject_token_path_(gpr_strdup(options->subject_token_path)), in StsTokenFetcherCredentials() 549 subject_token_type_(gpr_strdup(options->subject_token_type)), in StsTokenFetcherCredentials() 550 actor_token_path_(gpr_strdup(options->actor_token_path)), in StsTokenFetcherCredentials() 551 actor_token_type_(gpr_strdup(options->actor_token_type)) {} in StsTokenFetcherCredentials() 612 *body = gpr_strdup(body_str.c_str()); in FillBody()
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/jwt/ |
D | jwt_credentials.cc | 93 cached_.service_url = gpr_strdup(context.service_url); in get_request_metadata() 148 return gpr_strdup("<Json failed to parse.>"); in redact_private_key() 151 return gpr_strdup(json.Dump(/*indent=*/2).c_str()); in redact_private_key()
|
/external/rust/crates/grpcio-sys/grpc/src/cpp/common/ |
D | tls_credentials_options.cc | 82 c_arg_->target_name = gpr_strdup(target_name.c_str()); in set_target_name() 87 c_arg_->peer_cert = gpr_strdup(peer_cert.c_str()); in set_peer_cert() 92 c_arg_->peer_cert_full_chain = gpr_strdup(peer_cert_full_chain.c_str()); in set_peer_cert_full_chain()
|
/external/grpc-grpc/src/core/ext/filters/client_channel/ |
D | resolver_registry.cc | 35 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()
|
/external/grpc-grpc/src/core/lib/debug/ |
D | stats.cc | 148 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/ |
D | jwt_credentials.cc | 90 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()
|
/external/grpc-grpc/test/core/json/ |
D | json_test.cc | 144 char* scratchpad = gpr_strdup(pair->input); in test_pairs() 172 char* scratchpad = gpr_strdup("[[],[],[]]"); in test_atypical()
|
/external/grpc-grpc/test/core/slice/ |
D | slice_weak_hash_table_test.cc | 50 table->Add(key, UniquePtr<char>(gpr_strdup("value"))); in TEST() 81 table->Add(key, UniquePtr<char>(gpr_strdup(oss.str().c_str()))); in TEST()
|