/third_party/grpc/test/core/security/ |
D | alts_security_connector_test.cc | 43 GPR_ASSERT(tsi_construct_peer(0, &peer) == TSI_OK); in test_empty_certificate_type_failure() 52 GPR_ASSERT(tsi_construct_peer(1, &peer) == TSI_OK); in test_empty_peer_property_failure() 55 &peer.properties[0]) == TSI_OK); in test_empty_peer_property_failure() 64 GPR_ASSERT(tsi_construct_peer(kTsiAltsNumOfPeerProperties, &peer) == TSI_OK); in test_missing_rpc_protocol_versions_property_failure() 67 &peer.properties[0]) == TSI_OK); in test_missing_rpc_protocol_versions_property_failure() 70 &peer.properties[1]) == TSI_OK); in test_missing_rpc_protocol_versions_property_failure() 79 GPR_ASSERT(tsi_construct_peer(kTsiAltsNumOfPeerProperties, &peer) == TSI_OK); in test_missing_security_level_property_failure() 82 &peer.properties[0]) == TSI_OK); in test_missing_security_level_property_failure() 85 &peer.properties[1]) == TSI_OK); in test_missing_security_level_property_failure() 102 &peer.properties[2]) == TSI_OK); in test_missing_security_level_property_failure() [all …]
|
D | security_connector_test.cc | 111 GPR_ASSERT(tsi_construct_peer(2, &peer) == TSI_OK); in test_unauthenticated_ssl_peer() 114 &peer.properties[0]) == TSI_OK); in test_unauthenticated_ssl_peer() 118 &peer.properties[1]) == TSI_OK); in test_unauthenticated_ssl_peer() 260 GPR_ASSERT(tsi_construct_peer(5, &peer) == TSI_OK); in test_cn_only_ssl_peer_to_auth_context() 263 &peer.properties[0]) == TSI_OK); in test_cn_only_ssl_peer_to_auth_context() 266 &peer.properties[1]) == TSI_OK); in test_cn_only_ssl_peer_to_auth_context() 269 &peer.properties[2]) == TSI_OK); in test_cn_only_ssl_peer_to_auth_context() 273 &peer.properties[3]) == TSI_OK); in test_cn_only_ssl_peer_to_auth_context() 276 &peer.properties[4]) == TSI_OK); in test_cn_only_ssl_peer_to_auth_context() 303 GPR_ASSERT(tsi_construct_peer(6, &peer) == TSI_OK); in test_cn_and_one_san_ssl_peer_to_auth_context() [all …]
|
D | tls_security_connector_test.cc | 283 GPR_ASSERT(tsi_construct_peer(1, &peer) == TSI_OK); in TEST_F() 286 &peer.properties[0]) == TSI_OK); in TEST_F() 298 GPR_ASSERT(tsi_construct_peer(1, &peer) == TSI_OK); in TEST_F() 301 &peer.properties[0]) == TSI_OK); in TEST_F()
|
/third_party/grpc/src/core/tsi/ |
D | fake_transport_security.cc | 103 return TSI_OK; in tsi_fake_handshake_message_from_string() 213 return TSI_OK; in tsi_fake_frame_decode() 232 return TSI_OK; in tsi_fake_frame_encode() 245 return TSI_OK; in tsi_fake_frame_set_data() 260 tsi_result result = TSI_OK; in fake_protector_protect() 277 if (result != TSI_OK) { in fake_protector_protect() 280 result = TSI_OK; in fake_protector_protect() 303 if (result != TSI_OK) { in fake_protector_protect() 304 if (result == TSI_INCOMPLETE_DATA) result = TSI_OK; in fake_protector_protect() 314 if (result == TSI_INCOMPLETE_DATA) result = TSI_OK; in fake_protector_protect() [all …]
|
D | ssl_transport_security.cc | 300 return TSI_OK; in ssl_get_x509_common_name() 310 if (result != TSI_OK) { in peer_property_from_x509_common_name() 350 tsi_result result = TSI_OK; in add_subject_alt_names_properties_to_peer() 377 if (result != TSI_OK) { in add_subject_alt_names_properties_to_peer() 417 if (result != TSI_OK) break; in add_subject_alt_names_properties_to_peer() 446 if (result != TSI_OK) return result; in peer_from_x509() 453 if (result != TSI_OK) break; in peer_from_x509() 457 if (result != TSI_OK) break; in peer_from_x509() 461 if (result != TSI_OK) break; in peer_from_x509() 467 if (result != TSI_OK) break; in peer_from_x509() [all …]
|
D | local_transport_security.cc | 64 return TSI_OK; in local_zero_copy_grpc_protector_protect() 77 return TSI_OK; in local_zero_copy_grpc_protector_unprotect() 104 return TSI_OK; in local_zero_copy_grpc_protector_create() 111 return TSI_OK; in handshaker_result_extract_peer() 124 if (ok != TSI_OK) { in handshaker_result_create_zero_copy_grpc_protector() 158 return TSI_OK; in create_handshaker_result() 179 return TSI_OK; in handshaker_next() 214 return TSI_OK; in tsi_local_handshaker_create()
|
D | transport_security.cc | 37 case TSI_OK: in tsi_result_to_string() 189 if (tsi_handshaker_get_result(self) != TSI_OK) { in tsi_handshaker_extract_peer() 205 if (tsi_handshaker_get_result(self) != TSI_OK) return TSI_FAILED_PRECONDITION; in tsi_handshaker_create_frame_protector() 209 if (result == TSI_OK) { in tsi_handshaker_create_frame_protector() 325 return TSI_OK; in tsi_construct_allocated_string_peer_property() 340 if (result != TSI_OK) return result; in tsi_construct_string_peer_property() 344 return TSI_OK; in tsi_construct_string_peer_property() 354 return TSI_OK; in tsi_construct_peer()
|
/third_party/grpc/test/core/tsi/alts/zero_copy_frame_protector/ |
D | alts_grpc_record_protocol_test.cc | 128 extra_copy, &fixture->client_protect) == TSI_OK); in test_fixture_integrity_only_create() 135 extra_copy, &fixture->client_unprotect) == TSI_OK); in test_fixture_integrity_only_create() 142 extra_copy, &fixture->server_protect) == TSI_OK); in test_fixture_integrity_only_create() 149 extra_copy, &fixture->server_unprotect) == TSI_OK); in test_fixture_integrity_only_create() 186 &fixture->client_protect) == TSI_OK); in test_fixture_privacy_integrity_create() 193 &fixture->client_unprotect) == TSI_OK); in test_fixture_privacy_integrity_create() 200 &fixture->server_protect) == TSI_OK); in test_fixture_privacy_integrity_create() 207 &fixture->server_unprotect) == TSI_OK); in test_fixture_privacy_integrity_create() 282 GPR_ASSERT(status == TSI_OK); in random_seal_unseal() 287 GPR_ASSERT(status == TSI_OK); in random_seal_unseal() [all …]
|
D | alts_zero_copy_grpc_protector_test.cc | 118 &fixture->client) == TSI_OK); in alts_zero_copy_grpc_protector_test_fixture_create() 120 fixture->client, &actual_max_protected_frame_size) == TSI_OK); in alts_zero_copy_grpc_protector_test_fixture_create() 125 &fixture->server) == TSI_OK); in alts_zero_copy_grpc_protector_test_fixture_create() 127 fixture->server, &actual_max_protected_frame_size) == TSI_OK); in alts_zero_copy_grpc_protector_test_fixture_create() 184 sender, &var->original_sb, &var->protected_sb) == TSI_OK); in seal_unseal_small_buffer() 195 receiver, &var->staging_sb, &var->unprotected_sb) == TSI_OK); in seal_unseal_small_buffer() 199 TSI_OK); in seal_unseal_small_buffer() 217 sender, &var->original_sb, &var->protected_sb) == TSI_OK); in seal_unseal_large_buffer() 229 TSI_OK); in seal_unseal_large_buffer() 233 TSI_OK); in seal_unseal_large_buffer()
|
/third_party/grpc/test/core/tsi/ |
D | transport_security_test_lib.cc | 96 result_with_unused_bytes, &bytes, &bytes_size) == TSI_OK); in check_unused_bytes() 100 result_without_unused_bytes, &bytes, &bytes_size) == TSI_OK); in check_unused_bytes() 201 tsi_result result = TSI_OK; in tsi_test_frame_protector_send_message_to_peer() 203 while (message_size > 0 && result == TSI_OK) { in tsi_test_frame_protector_send_message_to_peer() 210 GPR_ASSERT(result == TSI_OK); in tsi_test_frame_protector_send_message_to_peer() 224 GPR_ASSERT(result == TSI_OK); in tsi_test_frame_protector_send_message_to_peer() 227 } while (still_pending_size > 0 && result == TSI_OK); in tsi_test_frame_protector_send_message_to_peer() 228 GPR_ASSERT(result == TSI_OK); in tsi_test_frame_protector_send_message_to_peer() 231 GPR_ASSERT(result == TSI_OK); in tsi_test_frame_protector_send_message_to_peer() 248 tsi_result result = TSI_OK; in tsi_test_frame_protector_receive_message_from_peer() [all …]
|
D | transport_security_test.cc | 270 TSI_OK); in peer_from_cert_name_test_entry() 273 &peer.properties[0]) == TSI_OK); in peer_from_cert_name_test_entry() 279 strlen(nl->name), &peer.properties[i++]) == TSI_OK); in peer_from_cert_name_test_entry() 289 strlen(nl->name), &peer.properties[i++]) == TSI_OK); in peer_from_cert_name_test_entry() 328 {TSI_OK, "TSI_OK"}, in test_result_strings()
|
D | ssl_transport_security_test.cc | 137 TSI_OK); in ssl_test_setup_handshakers() 171 TSI_OK); in ssl_test_setup_handshakers() 176 &ssl_fixture->base.client_handshaker) == TSI_OK); in ssl_test_setup_handshakers() 179 &ssl_fixture->base.server_handshaker) == TSI_OK); in ssl_test_setup_handshakers() 340 ssl_fixture->base.client_result, &peer) == TSI_OK); in ssl_test_check_handshaker_peers() 358 ssl_fixture->base.server_result, &peer) == TSI_OK); in ssl_test_check_handshaker_peers() 781 &options, &client_handshaker_factory) == TSI_OK); in test_tsi_ssl_client_handshaker_factory_refcounting() 793 TSI_OK); in test_tsi_ssl_client_handshaker_factory_refcounting() 828 &options, &server_handshaker_factory) == TSI_OK); in test_tsi_ssl_server_handshaker_factory_refcounting() 837 server_handshaker_factory, &handshaker[i]) == TSI_OK); in test_tsi_ssl_server_handshaker_factory_refcounting() [all …]
|
/third_party/grpc/src/core/tsi/alts/zero_copy_frame_protector/ |
D | alts_zero_copy_grpc_protector.cc | 140 if (result != TSI_OK) { in create_alts_grpc_record_protocol() 144 return TSI_OK; in create_alts_grpc_record_protocol() 167 if (status != TSI_OK) { in alts_zero_copy_grpc_protector_protect() 213 if (status != TSI_OK) { in alts_zero_copy_grpc_protector_unprotect() 218 return TSI_OK; in alts_zero_copy_grpc_protector_unprotect() 242 return TSI_OK; in alts_zero_copy_grpc_protector_max_frame_size() 272 if (status == TSI_OK) { in alts_zero_copy_grpc_protector_create() 276 if (status == TSI_OK) { in alts_zero_copy_grpc_protector_create() 298 return TSI_OK; in alts_zero_copy_grpc_protector_create()
|
D | alts_grpc_privacy_integrity_record_protocol.cc | 69 return TSI_OK; in alts_grpc_privacy_integrity_protect() 115 return TSI_OK; in alts_grpc_privacy_integrity_unprotect() 137 if (result != TSI_OK) { in alts_grpc_privacy_integrity_record_protocol_create() 143 return TSI_OK; in alts_grpc_privacy_integrity_record_protocol_create()
|
D | alts_grpc_integrity_only_record_protocol.cc | 75 return TSI_OK; in alts_grpc_integrity_only_extra_copy_protect() 117 return TSI_OK; in alts_grpc_integrity_only_protect() 180 return TSI_OK; in alts_grpc_integrity_only_unprotect() 213 if (result != TSI_OK) { in alts_grpc_integrity_only_record_protocol_create() 225 return TSI_OK; in alts_grpc_integrity_only_record_protocol_create()
|
/third_party/grpc/src/core/tsi/alts/frame_protector/ |
D | alts_frame_protector.cc | 73 return TSI_OK; in seal() 98 return TSI_OK; in alts_protect_flush() 107 if (result != TSI_OK) { in alts_protect_flush() 137 return TSI_OK; in alts_protect_flush() 189 return TSI_OK; in alts_protect() 205 return TSI_OK; in unseal() 289 if (result != TSI_OK) { in alts_unprotect() 305 return TSI_OK; in alts_unprotect() 308 return TSI_OK; in alts_unprotect() 406 return TSI_OK; in alts_create_frame_protector()
|
/third_party/grpc/src/core/tsi/alts/handshaker/ |
D | alts_tsi_handshaker.cc | 98 if (ok != TSI_OK) { in handshaker_result_extract_peer() 106 if (ok != TSI_OK) { in handshaker_result_extract_peer() 116 if (ok != TSI_OK) { in handshaker_result_extract_peer() 126 if (ok != TSI_OK) { in handshaker_result_extract_peer() 136 if (ok != TSI_OK) { in handshaker_result_extract_peer() 146 if (ok != TSI_OK) { in handshaker_result_extract_peer() 190 if (ok != TSI_OK) { in handshaker_result_create_zero_copy_grpc_protector() 211 if (ok != TSI_OK) { in handshaker_result_create_frame_protector() 230 return TSI_OK; in handshaker_result_get_unused_bytes() 371 return TSI_OK; in alts_tsi_handshaker_result_create() [all …]
|
D | alts_handshaker_client.cc | 163 client->pending_recv_message_result->status != TSI_OK; in maybe_complete_tsi_next() 267 if (status != TSI_OK) { in alts_handshaker_client_handle_response() 344 return TSI_OK; in continue_make_grpc_call() 439 return TSI_OK; in make_grpc_call() 538 if (result != TSI_OK) { in handshaker_client_start_client() 595 if (result != TSI_OK) { in handshaker_client_start_server() 633 if (result != TSI_OK) { in handshaker_client_next()
|
/third_party/grpc/src/core/lib/security/transport/ |
D | secure_endpoint.cc | 175 tsi_result result = TSI_OK; in on_read() 207 if (result != TSI_OK) { in on_read() 229 if (result != TSI_OK) break; in on_read() 246 if (result != TSI_OK) { in on_read() 288 tsi_result result = TSI_OK; in endpoint_write() 322 if (result != TSI_OK) { in endpoint_write() 335 if (result != TSI_OK) break; in endpoint_write() 337 if (result == TSI_OK) { in endpoint_write() 346 if (result != TSI_OK) break; in endpoint_write() 363 if (result != TSI_OK) { in endpoint_write()
|
/third_party/grpc/test/core/tsi/alts/handshaker/ |
D | alts_tsi_handshaker_test.cc | 232 GPR_ASSERT(status == TSI_OK); in on_client_start_success_cb() 259 GPR_ASSERT(status == TSI_OK); in on_server_start_success_cb() 286 GPR_ASSERT(status == TSI_OK); in on_client_next_success_cb() 297 result, nullptr, &zero_copy_protector) == TSI_OK); in on_client_next_success_cb() 305 GPR_ASSERT(tsi_handshaker_result_extract_peer(result, &peer) == TSI_OK); in on_client_next_success_cb() 340 &bytes_size) == TSI_OK); in on_client_next_success_cb() 347 result, nullptr, &protector) == TSI_OK); in on_client_next_success_cb() 358 GPR_ASSERT(status == TSI_OK); in on_server_next_success_cb() 371 &zero_copy_protector) == TSI_OK); in on_server_next_success_cb() 379 GPR_ASSERT(tsi_handshaker_result_extract_peer(result, &peer) == TSI_OK); in on_server_next_success_cb() [all …]
|
D | alts_handshaker_client_test.cc | 401 GPR_ASSERT(alts_handshaker_client_start_client(config->client) == TSI_OK); in schedule_request_success_test() 414 config->server, &config->out_frame) == TSI_OK); in schedule_request_success_test() 422 &config->out_frame) == TSI_OK); in schedule_request_success_test() 430 &config->out_frame) == TSI_OK); in schedule_request_success_test()
|
/third_party/grpc/test/core/tsi/alts/frame_protector/ |
D | alts_frame_protector_test.cc | 53 &client_frame_protector) == TSI_OK); in alts_test_do_round_trip_check_frames() 62 &server_frame_protector) == TSI_OK); in alts_test_do_round_trip_check_frames() 349 &client_frame_protector) == TSI_OK); in alts_test_do_round_trip() 358 &server_frame_protector) == TSI_OK); in alts_test_do_round_trip()
|
/third_party/grpc/src/core/lib/security/security_connector/ssl/ |
D | ssl_security_connector.cc | 115 if (result != TSI_OK) { in InitializeHandshakerFactory() 133 if (result != TSI_OK) { in add_handshakers() 262 if (result != TSI_OK) { in InitializeHandshakerFactory() 279 if (result != TSI_OK) { in add_handshakers() 373 if (result != TSI_OK) { in try_replace_server_handshaker_factory()
|
/third_party/grpc/src/core/lib/security/security_connector/insecure/ |
D | insecure_security_connector.cc | 74 TSI_OK); in add_handshakers() 102 TSI_OK); in add_handshakers()
|
/third_party/grpc/src/core/lib/security/security_connector/local/ |
D | local_security_connector.cc | 128 if (result != TSI_OK) return; in local_check_peer() 161 TSI_OK); in add_handshakers() 219 &handshaker) == TSI_OK); in add_handshakers()
|