Home
last modified time | relevance | path

Searched refs:TSI_OK (Results 1 – 25 of 33) sorted by relevance

12

/external/grpc-grpc/src/core/tsi/
Dfake_transport_security.cc107 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 …]
Dssl_transport_security.cc291 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 …]
Dlocal_transport_security.cc62 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()
Dtransport_security.cc37 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/
Dalts_security_connector_test.cc47 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 …]
Dsecurity_connector_test.cc86 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 …]
Dsecure_endpoint_test.cc89 GPR_ASSERT(result == TSI_OK); in secure_endpoint_create_fixture_tcp_socketpair()
103 GPR_ASSERT(result == TSI_OK); in secure_endpoint_create_fixture_tcp_socketpair()
/external/grpc-grpc/test/core/tsi/alts/zero_copy_frame_protector/
Dalts_grpc_record_protocol_test.cc127 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 …]
Dalts_zero_copy_grpc_protector_test.cc116 &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/
Dtransport_security_test_lib.cc96 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 …]
Dtransport_security_test.cc266 TSI_OK); in peer_from_cert_name_test_entry()
269 &peer.properties[0]) == TSI_OK); in peer_from_cert_name_test_entry()
275 strlen(nl->name), &peer.properties[i++]) == TSI_OK); in peer_from_cert_name_test_entry()
285 strlen(nl->name), &peer.properties[i++]) == TSI_OK); in peer_from_cert_name_test_entry()
329 {TSI_OK, "TSI_OK"}, in test_result_strings()
Dssl_transport_security_test.cc131 TSI_OK); in ssl_test_setup_handshakers()
164 TSI_OK); in ssl_test_setup_handshakers()
169 &ssl_fixture->base.client_handshaker) == TSI_OK); in ssl_test_setup_handshakers()
172 &ssl_fixture->base.server_handshaker) == TSI_OK); in ssl_test_setup_handshakers()
299 ssl_fixture->base.client_result, &peer) == TSI_OK); in ssl_test_check_handshaker_peers()
312 ssl_fixture->base.server_result, &peer) == TSI_OK); in ssl_test_check_handshaker_peers()
688 &options, &client_handshaker_factory) == TSI_OK); in test_tsi_ssl_client_handshaker_factory_refcounting()
700 TSI_OK); in test_tsi_ssl_client_handshaker_factory_refcounting()
732 &server_handshaker_factory) == TSI_OK); in test_tsi_ssl_server_handshaker_factory_refcounting()
741 server_handshaker_factory, &handshaker[i]) == TSI_OK); in test_tsi_ssl_server_handshaker_factory_refcounting()
/external/grpc-grpc/src/core/tsi/alts/frame_protector/
Dalts_frame_protector.cc73 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/
Dalts_zero_copy_grpc_protector.cc140 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()
Dalts_grpc_privacy_integrity_record_protocol.cc69 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()
Dalts_grpc_integrity_only_record_protocol.cc75 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()
/external/grpc-grpc/src/core/tsi/alts/handshaker/
Dalts_tsi_handshaker.cc81 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 …]
Dalts_handshaker_client.cc81 return TSI_OK; in make_grpc_call()
132 if (result != TSI_OK) { in handshaker_client_start_client()
180 if (result != TSI_OK) { in handshaker_client_start_server()
218 if (result != TSI_OK) { in handshaker_client_next()
Dalts_tsi_utils.cc30 return TSI_OK; in alts_tsi_utils_convert_to_tsi_result()
/external/grpc-grpc/src/core/lib/security/transport/
Dsecure_endpoint.cc148 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()
Dsecurity_handshaker.cc157 if (result != TSI_OK && result != TSI_UNIMPLEMENTED) { in on_peer_checked_inner()
170 if (result != TSI_OK) { in on_peer_checked_inner()
221 if (result != TSI_OK) { in check_peer_locked()
246 if (result != TSI_OK) { in on_handshake_next_done_locked()
/external/grpc-grpc/test/core/tsi/alts/handshaker/
Dalts_tsi_handshaker_test.cc190 GPR_ASSERT(status == TSI_OK); in on_client_start_success_cb()
217 GPR_ASSERT(status == TSI_OK); in on_server_start_success_cb()
244 GPR_ASSERT(status == TSI_OK); in on_client_next_success_cb()
252 GPR_ASSERT(tsi_handshaker_result_extract_peer(result, &peer) == TSI_OK); in on_client_next_success_cb()
264 &bytes_size) == TSI_OK); in on_client_next_success_cb()
271 result, nullptr, &protector) == TSI_OK); in on_client_next_success_cb()
282 GPR_ASSERT(status == TSI_OK); in on_server_next_success_cb()
289 GPR_ASSERT(tsi_handshaker_result_extract_peer(result, &peer) == TSI_OK); in on_server_next_success_cb()
301 &bytes_size) == TSI_OK); in on_server_next_success_cb()
307 result, nullptr, &protector) == TSI_OK); in on_server_next_success_cb()
[all …]
/external/grpc-grpc/test/core/tsi/alts/frame_protector/
Dalts_frame_protector_test.cc53 &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()
/external/grpc-grpc/src/core/lib/http/
Dhttpcli_security_connector.cc61 if (result != TSI_OK) { in httpcli_ssl_add_handshakers()
105 tsi_result result = TSI_OK; in httpcli_ssl_channel_security_connector_create()
128 if (result != TSI_OK) { in httpcli_ssl_channel_security_connector_create()
/external/grpc-grpc/src/core/lib/security/security_connector/
Dlocal_security_connector.cc75 TSI_OK); in local_channel_add_handshakers()
85 TSI_OK); in local_server_add_handshakers()

12