Home
last modified time | relevance | path

Searched refs:gpr_zalloc (Results 1 – 25 of 131) sorted by relevance

123456

/external/grpc-grpc/src/core/lib/security/credentials/ssl/
Dssl_credentials.cc103 gpr_zalloc(sizeof(tsi_ssl_pem_key_cert_pair))); in ssl_build_config()
122 gpr_zalloc(sizeof(grpc_ssl_credentials))); in grpc_ssl_credentials_create()
171 gpr_zalloc(num_key_cert_pairs * sizeof(tsi_ssl_pem_key_cert_pair))); in grpc_convert_grpc_to_tsi_cert_pairs()
202 gpr_zalloc(sizeof(grpc_ssl_server_certificate_config))); in grpc_ssl_server_certificate_config_create()
209 gpr_zalloc(num_key_cert_pairs * sizeof(grpc_ssl_pem_key_cert_pair))); in grpc_ssl_server_certificate_config_create()
245 gpr_zalloc(sizeof(grpc_ssl_server_credentials_options))); in grpc_ssl_server_credentials_create_options_using_config()
263 gpr_zalloc(sizeof(grpc_ssl_server_certificate_config_fetcher))); in grpc_ssl_server_credentials_create_options_using_config_fetcher()
269 gpr_zalloc(sizeof(grpc_ssl_server_credentials_options))); in grpc_ssl_server_credentials_create_options_using_config_fetcher()
335 gpr_zalloc(sizeof(grpc_ssl_server_credentials))); in grpc_ssl_server_credentials_create_with_options()
/external/grpc-grpc/src/core/tsi/alts/handshaker/
Dalts_handshaker_service_api_util.cc27 static_cast<repeated_field*>(gpr_zalloc(sizeof(*field))); in add_repeated_field()
65 static_cast<grpc_slice*>(gpr_zalloc(sizeof(*cb_slice))); in create_slice()
116 static_cast<grpc_slice*>(gpr_zalloc(sizeof(*cb_slice))); in decode_string_or_bytes_cb()
127 static_cast<grpc_gcp_identity*>(gpr_zalloc(sizeof(*identity))); in decode_repeated_identity_cb()
139 static_cast<grpc_slice*>(gpr_zalloc(sizeof(*cb_slice))); in decode_repeated_string_cb()
Dalts_handshaker_service_api.cc32 static_cast<grpc_gcp_handshaker_req*>(gpr_zalloc(sizeof(*req))); in grpc_gcp_handshaker_req_create()
196 static_cast<grpc_gcp_identity*>(gpr_zalloc(sizeof(*target_identity))); in grpc_gcp_handshaker_req_add_target_identity_hostname()
215 static_cast<grpc_gcp_identity*>(gpr_zalloc(sizeof(*target_identity))); in grpc_gcp_handshaker_req_add_target_identity_service_account()
404 static_cast<grpc_gcp_identity*>(gpr_zalloc(sizeof(*local_identity))); in grpc_gcp_handshaker_req_param_add_local_identity_hostname()
426 static_cast<grpc_gcp_identity*>(gpr_zalloc(sizeof(*local_identity))); in grpc_gcp_handshaker_req_param_add_local_identity_service_account()
462 static_cast<grpc_gcp_handshaker_resp*>(gpr_zalloc(sizeof(*resp))); in grpc_gcp_handshaker_resp_create()
Dalts_tsi_handshaker.cc216 static_cast<alts_tsi_handshaker_result*>(gpr_zalloc(sizeof(*result))); in create_handshaker_result()
218 static_cast<char*>(gpr_zalloc(kAltsAes128GcmRekeyKeyLength)); in create_handshaker_result()
364 static_cast<alts_tsi_handshaker*>(gpr_zalloc(sizeof(*handshaker))); in alts_tsi_handshaker_create()
368 static_cast<unsigned char*>(gpr_zalloc(handshaker->buffer_size)); in alts_tsi_handshaker_create()
398 static_cast<unsigned char*>(gpr_zalloc(result->unused_bytes_size)); in set_unused_bytes()
/external/grpc-grpc/test/core/tsi/
Dtransport_security_test_lib.cc61 static_cast<handshaker_args*>(gpr_zalloc(sizeof(*args))); in handshaker_args_create()
65 static_cast<unsigned char*>(gpr_zalloc(args->handshake_buffer_size)); in handshaker_args_create()
194 static_cast<unsigned char*>(gpr_zalloc(config->protected_buffer_size)); in tsi_test_frame_protector_send_message_to_peer()
251 gpr_zalloc(config->read_buffer_allocated_size)); in tsi_test_frame_protector_receive_message_from_peer()
253 gpr_zalloc(config->message_buffer_allocated_size)); in tsi_test_frame_protector_receive_message_from_peer()
429 static_cast<unsigned char*>(gpr_zalloc(TSI_TEST_DEFAULT_CHANNEL_SIZE)); in tsi_test_do_ping_pong()
441 static_cast<unsigned char*>(gpr_zalloc(TSI_TEST_DEFAULT_CHANNEL_SIZE)); in tsi_test_do_ping_pong()
498 static_cast<unsigned char*>(gpr_zalloc(sizeof(unsigned char) * size)); in generate_random_message()
514 gpr_zalloc(sizeof(*config))); in tsi_test_frame_protector_config_create()
589 static_cast<tsi_test_channel*>(gpr_zalloc(sizeof(*channel))); in tsi_test_channel_create()
[all …]
Dssl_transport_security_test.cc377 gpr_zalloc(sizeof(char) * (strlen(dir_path) + strlen(file_name) + 1))); in load_file()
390 static_cast<ssl_tsi_test_fixture*>(gpr_zalloc(sizeof(*ssl_fixture))); in ssl_tsi_test_fixture_create()
396 static_cast<ssl_key_cert_lib*>(gpr_zalloc(sizeof(*key_cert_lib))); in ssl_tsi_test_fixture_create()
439 static_cast<ssl_alpn_lib*>(gpr_zalloc(sizeof(*alpn_lib))); in ssl_tsi_test_fixture_create()
441 gpr_zalloc(sizeof(char*) * SSL_TSI_TEST_ALPN_NUM)); in ssl_tsi_test_fixture_create()
443 gpr_zalloc(sizeof(char*) * SSL_TSI_TEST_ALPN_NUM)); in ssl_tsi_test_fixture_create()
588 gpr_zalloc(sizeof(unsigned int) * TSI_TEST_NUM_OF_ARGUMENTS)); in ssl_tsi_test_do_round_trip_for_all_configs()
Dfake_transport_security_test.cc68 static_cast<fake_tsi_test_fixture*>(gpr_zalloc(sizeof(*fake_fixture))); in fake_tsi_test_fixture_create()
96 gpr_zalloc(sizeof(unsigned int) * TSI_TEST_NUM_OF_ARGUMENTS)); in fake_tsi_test_do_round_trip_for_all_configs()
/external/grpc-grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/
Dload_balancer_api.cc54 static_cast<grpc_grpclb_server*>(gpr_zalloc(sizeof(grpc_grpclb_server))); in decode_serverlist()
113 gpr_zalloc(sizeof(grpc_grpclb_request))); in grpc_grpclb_load_report_request_create_locked()
194 gpr_zalloc(sizeof(grpc_grpclb_serverlist))); in grpc_grpclb_response_parse_serverlist()
209 gpr_zalloc(sizeof(grpc_grpclb_server*) * sl->num_servers)); in grpc_grpclb_response_parse_serverlist()
240 gpr_zalloc(sizeof(grpc_grpclb_serverlist))); in grpc_grpclb_serverlist_copy()
/external/grpc-grpc/src/core/tsi/
Dlocal_transport_security.cc98 static_cast<local_zero_copy_grpc_protector*>(gpr_zalloc(sizeof(*impl))); in local_zero_copy_grpc_protector_create()
150 static_cast<local_tsi_handshaker_result*>(gpr_zalloc(sizeof(*result))); in create_handshaker_result()
204 static_cast<local_tsi_handshaker*>(gpr_zalloc(sizeof(*handshaker))); in local_tsi_handshaker_create()
Dssl_transport_security.cc772 gpr_zalloc(sizeof(tsi_ssl_root_certs_store))); in tsi_ssl_root_certs_store_create()
1037 gpr_zalloc(sizeof(*new_properties) * new_property_count)); in ssl_handshaker_result_extract_peer()
1073 gpr_zalloc(sizeof(*protector_impl))); in ssl_handshaker_result_create_frame_protector()
1143 static_cast<tsi_ssl_handshaker_result*>(gpr_zalloc(sizeof(*result))); in ssl_handshaker_result_create()
1383 impl = static_cast<tsi_ssl_handshaker*>(gpr_zalloc(sizeof(*impl))); in create_tsi_ssl_handshaker()
1390 static_cast<unsigned char*>(gpr_zalloc(impl->outgoing_bytes_buffer_size)); in create_tsi_ssl_handshaker()
1659 gpr_zalloc(sizeof(*impl))); in tsi_create_ssl_client_handshaker_factory_with_options()
1782 gpr_zalloc(sizeof(*impl))); in tsi_create_ssl_server_handshaker_factory_with_options()
1787 gpr_zalloc(options->num_key_cert_pairs * sizeof(SSL_CTX*))); in tsi_create_ssl_server_handshaker_factory_with_options()
1789 gpr_zalloc(options->num_key_cert_pairs * sizeof(tsi_peer))); in tsi_create_ssl_server_handshaker_factory_with_options()
/external/grpc-grpc/src/core/lib/security/credentials/local/
Dlocal_credentials.cc60 gpr_zalloc(sizeof(grpc_local_credentials))); in grpc_local_credentials_create()
71 gpr_zalloc(sizeof(grpc_local_server_credentials))); in grpc_local_server_credentials_create()
/external/grpc-grpc/src/core/lib/security/credentials/composite/
Dcomposite_credentials.cc85 gpr_zalloc(sizeof(grpc_composite_call_credentials_metadata_context))); in composite_call_get_request_metadata()
154 gpr_zalloc(sizeof(grpc_composite_call_credentials))); in grpc_composite_call_credentials_create()
163 static_cast<grpc_call_credentials**>(gpr_zalloc(creds_array_byte_size)); in grpc_composite_call_credentials_create()
256 static_cast<grpc_composite_channel_credentials*>(gpr_zalloc(sizeof(*c))); in grpc_composite_channel_credentials_create()
/external/grpc-grpc/src/core/ext/filters/client_channel/resolver/dns/c_ares/
Dgrpc_ares_wrapper.cc111 address_sorting_sortable* sortables = (address_sorting_sortable*)gpr_zalloc( in grpc_cares_wrapper_address_sorting_sort()
120 grpc_lb_address* sorted_lb_addrs = (grpc_lb_address*)gpr_zalloc( in grpc_cares_wrapper_address_sorting_sort()
159 gpr_zalloc(sizeof(grpc_ares_hostbyname_request))); in create_hostbyname_request_locked()
393 r = static_cast<grpc_ares_request*>(gpr_zalloc(sizeof(grpc_ares_request))); in grpc_dns_lookup_ares_continue_after_check_localhost_and_ip_literals_locked()
625 gpr_zalloc(sizeof(grpc_resolved_addresses))); in on_dns_lookup_done_cb()
628 static_cast<grpc_resolved_address*>(gpr_zalloc( in on_dns_lookup_done_cb()
659 gpr_zalloc(sizeof(grpc_resolve_address_ares_request))); in grpc_resolve_address_ares_impl()
/external/grpc-grpc/src/core/lib/security/credentials/alts/
Dgrpc_alts_credentials_client_options.cc42 gpr_zalloc(sizeof(target_service_account))); in target_service_account_create()
77 gpr_zalloc(sizeof(grpc_alts_credentials_client_options))); in grpc_alts_credentials_client_options_create()
Dalts_credentials.cc78 gpr_zalloc(sizeof(grpc_alts_credentials))); in grpc_alts_credentials_create_customized()
97 gpr_zalloc(sizeof(grpc_alts_server_credentials))); in grpc_alts_server_credentials_create_customized()
Dgrpc_alts_credentials_server_options.cc42 gpr_zalloc(sizeof(*server_options))); in grpc_alts_credentials_server_options_create()
/external/grpc-grpc/src/core/lib/security/credentials/fake/
Dfake_credentials.cc62 gpr_zalloc(sizeof(grpc_channel_credentials))); in grpc_fake_transport_security_credentials_create()
128 gpr_zalloc(sizeof(grpc_md_only_test_credentials))); in grpc_md_only_test_credentials_create()
/external/grpc-grpc/src/core/lib/gpr/
Darena.cc47 gpr_arena* arena = (gpr_arena*)gpr_zalloc(sizeof(*arena)); in gpr_arena_create()
66 void* retval = arena->ptrs[arena->num_ptrs++] = gpr_zalloc(size); in gpr_arena_alloc()
/external/grpc-grpc/src/core/ext/filters/client_channel/
Dbackup_poller.cc132 g_poller = static_cast<backup_poller*>(gpr_zalloc(sizeof(backup_poller))); in g_poller_init_locked()
134 static_cast<grpc_pollset*>(gpr_zalloc(grpc_pollset_size())); in g_poller_init_locked()
Dlb_policy_factory.cc34 static_cast<grpc_lb_addresses*>(gpr_zalloc(sizeof(grpc_lb_addresses))); in grpc_lb_addresses_create()
39 static_cast<grpc_lb_address*>(gpr_zalloc(addresses_size)); in grpc_lb_addresses_create()
/external/grpc-grpc/test/cpp/microbenchmarks/
Dbm_pollset.cc115 grpc_pollset* ps = static_cast<grpc_pollset*>(gpr_zalloc(ps_sz)); in BM_PollEmptyPollset()
137 grpc_pollset* ps = static_cast<grpc_pollset*>(gpr_zalloc(ps_sz)); in BM_PollAddFd()
219 grpc_pollset* ps = static_cast<grpc_pollset*>(gpr_zalloc(ps_sz)); in BM_SingleThreadPollOneFd()
/external/grpc-grpc/test/core/tsi/alts/frame_protector/
Dalts_counter_test.cc94 static_cast<unsigned char*>(gpr_zalloc(counter_size)); in alts_counter_test_overflow_full_range()
140 static_cast<unsigned char*>(gpr_zalloc(counter_size)); in alts_counter_test_overflow_single_increment()
/external/grpc-grpc/src/core/tsi/alts/frame_protector/
Dframe_handler.cc49 static_cast<alts_frame_writer*>(gpr_zalloc(sizeof(*writer))); in alts_create_frame_writer()
122 static_cast<alts_frame_reader*>(gpr_zalloc(sizeof(*reader))); in alts_create_frame_reader()
/external/grpc-grpc/src/core/lib/security/security_connector/
Dlocal_security_connector.cc201 gpr_zalloc(sizeof(grpc_local_channel_security_connector))); in grpc_local_channel_security_connector_create()
236 gpr_zalloc(sizeof(grpc_local_server_security_connector))); in grpc_local_server_security_connector_create()
/external/grpc-grpc/include/grpc/support/
Dalloc.h44 GPRAPI void* gpr_zalloc(size_t size);

123456