/external/rust/crates/grpcio-sys/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 …]
|
/external/rust/crates/grpcio-sys/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 | 303 return TSI_OK; in ssl_get_x509_common_name() 313 if (result != TSI_OK) { in peer_property_from_x509_common_name() 353 tsi_result result = TSI_OK; in add_subject_alt_names_properties_to_peer() 380 if (result != TSI_OK) { in add_subject_alt_names_properties_to_peer() 420 if (result != TSI_OK) break; in add_subject_alt_names_properties_to_peer() 449 if (result != TSI_OK) return result; in peer_from_x509() 456 if (result != TSI_OK) break; in peer_from_x509() 460 if (result != TSI_OK) break; in peer_from_x509() 464 if (result != TSI_OK) break; in peer_from_x509() 470 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()
|
/external/grpc-grpc/src/core/tsi/ |
D | fake_transport_security.cc | 107 return TSI_OK; in tsi_fake_handshake_message_from_string() 217 return TSI_OK; in tsi_fake_frame_decode() 236 return TSI_OK; in tsi_fake_frame_encode() 249 return TSI_OK; in tsi_fake_frame_set_data() 264 tsi_result result = TSI_OK; in fake_protector_protect() 281 if (result != TSI_OK) { in fake_protector_protect() 284 result = TSI_OK; in fake_protector_protect() 307 if (result != TSI_OK) { in fake_protector_protect() 308 if (result == TSI_INCOMPLETE_DATA) result = TSI_OK; in fake_protector_protect() 318 if (result == TSI_INCOMPLETE_DATA) result = TSI_OK; in fake_protector_protect() [all …]
|
D | ssl_transport_security.cc | 291 return TSI_OK; in ssl_get_x509_common_name() 301 if (result != TSI_OK) { in peer_property_from_x509_common_name() 342 tsi_result result = TSI_OK; in add_subject_alt_names_properties_to_peer() 390 if (result != TSI_OK) break; in add_subject_alt_names_properties_to_peer() 412 if (result != TSI_OK) return result; in peer_from_x509() 418 if (result != TSI_OK) break; in peer_from_x509() 422 if (result != TSI_OK) break; in peer_from_x509() 426 if (result != TSI_OK) break; in peer_from_x509() 431 if (result != TSI_OK) break; in peer_from_x509() 438 if (result != TSI_OK) tsi_peer_destruct(peer); in peer_from_x509() [all …]
|
D | local_transport_security.cc | 62 return TSI_OK; in local_zero_copy_grpc_protector_protect() 75 return TSI_OK; in local_zero_copy_grpc_protector_unprotect() 101 return TSI_OK; in local_zero_copy_grpc_protector_create() 108 return TSI_OK; in handshaker_result_extract_peer() 120 if (ok != TSI_OK) { in handshaker_result_create_zero_copy_grpc_protector() 154 return TSI_OK; in create_handshaker_result() 175 return TSI_OK; in handshaker_next() 208 return TSI_OK; in local_tsi_handshaker_create()
|
D | transport_security.cc | 37 case TSI_OK: in tsi_result_to_string() 174 if (tsi_handshaker_get_result(self) != TSI_OK) { in tsi_handshaker_extract_peer() 190 if (tsi_handshaker_get_result(self) != TSI_OK) return TSI_FAILED_PRECONDITION; in tsi_handshaker_create_frame_protector() 194 if (result == TSI_OK) { in tsi_handshaker_create_frame_protector() 310 return TSI_OK; in tsi_construct_allocated_string_peer_property() 325 if (result != TSI_OK) return result; in tsi_construct_string_peer_property() 329 return TSI_OK; in tsi_construct_string_peer_property() 339 return TSI_OK; in tsi_construct_peer()
|
/external/grpc-grpc/test/core/security/ |
D | alts_security_connector_test.cc | 47 GPR_ASSERT(tsi_construct_peer(0, &peer) == TSI_OK); in test_empty_certificate_type_failure() 57 GPR_ASSERT(tsi_construct_peer(1, &peer) == TSI_OK); in test_empty_peer_property_failure() 60 &peer.properties[0]) == TSI_OK); in test_empty_peer_property_failure() 70 GPR_ASSERT(tsi_construct_peer(kTsiAltsNumOfPeerProperties, &peer) == TSI_OK); in test_missing_rpc_protocol_versions_property_failure() 73 &peer.properties[0]) == TSI_OK); in test_missing_rpc_protocol_versions_property_failure() 76 &peer.properties[1]) == TSI_OK); in test_missing_rpc_protocol_versions_property_failure() 86 GPR_ASSERT(tsi_construct_peer(kTsiAltsNumOfPeerProperties, &peer) == TSI_OK); in test_unknown_peer_property_failure() 89 &peer.properties[0]) == TSI_OK); in test_unknown_peer_property_failure() 91 "unknown", "alice", &peer.properties[1]) == TSI_OK); in test_unknown_peer_property_failure() 123 GPR_ASSERT(tsi_construct_peer(kTsiAltsNumOfPeerProperties, &peer) == TSI_OK); in test_alts_peer_to_auth_context_success() [all …]
|
D | security_connector_test.cc | 86 GPR_ASSERT(tsi_construct_peer(1, &peer) == TSI_OK); in test_unauthenticated_ssl_peer() 89 &peer.properties[0]) == TSI_OK); in test_unauthenticated_ssl_peer() 180 GPR_ASSERT(tsi_construct_peer(3, &peer) == TSI_OK); in test_cn_only_ssl_peer_to_auth_context() 183 &peer.properties[0]) == TSI_OK); in test_cn_only_ssl_peer_to_auth_context() 186 &peer.properties[1]) == TSI_OK); in test_cn_only_ssl_peer_to_auth_context() 189 &peer.properties[2]) == TSI_OK); in test_cn_only_ssl_peer_to_auth_context() 213 GPR_ASSERT(tsi_construct_peer(4, &peer) == TSI_OK); in test_cn_and_one_san_ssl_peer_to_auth_context() 216 &peer.properties[0]) == TSI_OK); in test_cn_and_one_san_ssl_peer_to_auth_context() 219 &peer.properties[1]) == TSI_OK); in test_cn_and_one_san_ssl_peer_to_auth_context() 222 &peer.properties[2]) == TSI_OK); in test_cn_and_one_san_ssl_peer_to_auth_context() [all …]
|
/external/grpc-grpc/test/core/tsi/alts/zero_copy_frame_protector/ |
D | alts_grpc_record_protocol_test.cc | 127 extra_copy, &fixture->client_protect) == TSI_OK); in test_fixture_integrity_only_create() 134 extra_copy, &fixture->client_unprotect) == TSI_OK); in test_fixture_integrity_only_create() 141 extra_copy, &fixture->server_protect) == TSI_OK); in test_fixture_integrity_only_create() 148 extra_copy, &fixture->server_unprotect) == TSI_OK); in test_fixture_integrity_only_create() 185 &fixture->client_protect) == TSI_OK); in test_fixture_privacy_integrity_create() 192 &fixture->client_unprotect) == TSI_OK); in test_fixture_privacy_integrity_create() 199 &fixture->server_protect) == TSI_OK); in test_fixture_privacy_integrity_create() 206 &fixture->server_unprotect) == TSI_OK); in test_fixture_privacy_integrity_create() 281 GPR_ASSERT(status == TSI_OK); in random_seal_unseal() 286 GPR_ASSERT(status == TSI_OK); in random_seal_unseal() [all …]
|
D | alts_zero_copy_grpc_protector_test.cc | 116 &fixture->client) == TSI_OK); in alts_zero_copy_grpc_protector_test_fixture_create() 120 &fixture->server) == TSI_OK); in alts_zero_copy_grpc_protector_test_fixture_create() 176 sender, &var->original_sb, &var->protected_sb) == TSI_OK); in seal_unseal_small_buffer() 187 receiver, &var->staging_sb, &var->unprotected_sb) == TSI_OK); in seal_unseal_small_buffer() 191 TSI_OK); in seal_unseal_small_buffer() 209 sender, &var->original_sb, &var->protected_sb) == TSI_OK); in seal_unseal_large_buffer() 221 TSI_OK); in seal_unseal_large_buffer() 225 TSI_OK); in seal_unseal_large_buffer()
|
/external/grpc-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 …]
|
/external/rust/crates/grpcio-sys/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()
|
/external/grpc-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()
|
/external/rust/crates/grpcio-sys/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()
|
/external/grpc-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() 262 if (status == TSI_OK) { in alts_zero_copy_grpc_protector_create() 266 if (status == TSI_OK) { in alts_zero_copy_grpc_protector_create() 288 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()
|
/external/grpc-grpc/src/core/tsi/alts/handshaker/ |
D | alts_tsi_handshaker.cc | 81 if (ok != TSI_OK) { in handshaker_result_extract_peer() 89 if (ok != TSI_OK) { in handshaker_result_extract_peer() 99 if (ok != TSI_OK) { in handshaker_result_extract_peer() 109 if (ok != TSI_OK) { in handshaker_result_extract_peer() 133 if (ok != TSI_OK) { in handshaker_result_create_zero_copy_grpc_protector() 154 if (ok != TSI_OK) { in handshaker_result_create_frame_protector() 173 return TSI_OK; in handshaker_result_get_unused_bytes() 234 return TSI_OK; in create_handshaker_result() 252 tsi_result ok = TSI_OK; in handshaker_next() 256 if (ok != TSI_OK) { in handshaker_next() [all …]
|
/external/rust/crates/grpcio-sys/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 …]
|
/external/rust/crates/grpcio-sys/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()
|
/external/grpc-grpc/src/core/lib/security/transport/ |
D | secure_endpoint.cc | 148 tsi_result result = TSI_OK; in on_read() 180 if (result != TSI_OK) { in on_read() 202 if (result != TSI_OK) break; in on_read() 219 if (result != TSI_OK) { in on_read() 261 tsi_result result = TSI_OK; in endpoint_write() 295 if (result != TSI_OK) { in endpoint_write() 308 if (result != TSI_OK) break; in endpoint_write() 310 if (result == TSI_OK) { in endpoint_write() 319 if (result != TSI_OK) break; in endpoint_write() 336 if (result != TSI_OK) { in endpoint_write()
|