GRPC Core  9.0.0
alts_tsi_handshaker_private.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2018 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef GRPC_CORE_TSI_ALTS_HANDSHAKER_ALTS_TSI_HANDSHAKER_PRIVATE_H
20 #define GRPC_CORE_TSI_ALTS_HANDSHAKER_ALTS_TSI_HANDSHAKER_PRIVATE_H
21 
23 
25 
26 namespace grpc_core {
27 namespace internal {
28 
33  alts_tsi_handshaker* handshaker);
34 
36  alts_tsi_handshaker* handshaker);
37 
40 
42  alts_tsi_handshaker* handshaker);
43 
46 
48  alts_handshaker_client* client);
49 
51  alts_handshaker_client* client);
52 
54  alts_handshaker_client* client);
55 
57  alts_handshaker_client* client, grpc_slice* recv_bytes);
58 
61  void* user_data, bool has_sent_start_message, grpc_slice* recv_bytes);
62 
64  alts_handshaker_client* client, alts_tsi_handshaker* handshaker,
65  tsi_handshaker_on_next_done_cb cb, void* user_data,
67 
70 
72  alts_handshaker_client* client);
73 
76 
78  alts_handshaker_client* client);
79 
82 
84 
85 } // namespace internal
86 } // namespace grpc_core
87 
88 #endif /* GRPC_CORE_TSI_ALTS_HANDSHAKER_ALTS_TSI_HANDSHAKER_PRIVATE_H */
grpc_call_error(* alts_grpc_caller)(grpc_call *call, const grpc_op *ops, size_t nops, grpc_closure *tag)
Definition: alts_handshaker_client.h:51
grpc_status_code
Definition: status.h:26
grpc_linked_mdelem status
Definition: lame_client.cc:44
grpc_byte_buffer * alts_handshaker_client_get_send_buffer_for_testing(alts_handshaker_client *c)
Definition: alts_handshaker_client.cc:729
void alts_handshaker_client_set_cb_for_testing(alts_handshaker_client *c, tsi_handshaker_on_next_done_cb cb)
Definition: alts_handshaker_client.cc:807
void alts_handshaker_client_set_grpc_caller_for_testing(alts_handshaker_client *c, alts_grpc_caller caller)
Definition: alts_handshaker_client.cc:721
grpc_byte_buffer ** alts_handshaker_client_get_recv_buffer_addr_for_testing(alts_handshaker_client *c)
Definition: alts_handshaker_client.cc:737
void alts_handshaker_client_set_fields_for_testing(alts_handshaker_client *c, alts_tsi_handshaker *handshaker, tsi_handshaker_on_next_done_cb cb, void *user_data, grpc_byte_buffer *recv_buffer, grpc_status_code status)
Definition: alts_handshaker_client.cc:761
void alts_handshaker_client_check_fields_for_testing(alts_handshaker_client *c, tsi_handshaker_on_next_done_cb cb, void *user_data, bool has_sent_start_message, grpc_slice *recv_bytes)
Definition: alts_handshaker_client.cc:775
void alts_tsi_handshaker_set_client_vtable_for_testing(alts_tsi_handshaker *handshaker, alts_handshaker_client_vtable *vtable)
Definition: alts_tsi_handshaker.cc:616
bool alts_tsi_handshaker_get_has_sent_start_message_for_testing(alts_tsi_handshaker *handshaker)
Definition: alts_tsi_handshaker.cc:610
void alts_handshaker_client_on_status_received_for_testing(alts_handshaker_client *c, grpc_status_code status, grpc_error *error)
Definition: alts_handshaker_client.cc:829
void alts_handshaker_client_set_vtable_for_testing(alts_handshaker_client *c, alts_handshaker_client_vtable *vtable)
Definition: alts_handshaker_client.cc:790
bool alts_tsi_handshaker_get_is_client_for_testing(alts_tsi_handshaker *handshaker)
Definition: alts_tsi_handshaker.cc:622
void alts_handshaker_client_set_recv_bytes_for_testing(alts_handshaker_client *c, grpc_slice *recv_bytes)
Definition: alts_handshaker_client.cc:753
grpc_closure * alts_handshaker_client_get_closure_for_testing(alts_handshaker_client *c)
Definition: alts_handshaker_client.cc:815
alts_tsi_handshaker * alts_handshaker_client_get_handshaker_for_testing(alts_handshaker_client *c)
Definition: alts_handshaker_client.cc:799
alts_handshaker_client * alts_tsi_handshaker_get_client_for_testing(alts_tsi_handshaker *handshaker)
Unsafe, use for testing only.
Definition: alts_tsi_handshaker.cc:628
void alts_handshaker_client_ref_for_testing(alts_handshaker_client *c)
Definition: alts_handshaker_client.cc:823
grpc_metadata_array * alts_handshaker_client_get_initial_metadata_for_testing(alts_handshaker_client *c)
Definition: alts_handshaker_client.cc:745
Round Robin Policy.
Definition: backend_metric.cc:24
Definition: alts_handshaker_client.h:55
Definition: alts_handshaker_client.cc:41
Definition: alts_tsi_handshaker.cc:45
Definition: grpc_types.h:40
A closure over a grpc_iomgr_cb_func.
Definition: closure.h:56
Definition: error_internal.h:39
Definition: grpc_types.h:529
A grpc_slice s, if initialized, represents the byte range s.bytes[0..s.length-1].
Definition: slice.h:60
void(* tsi_handshaker_on_next_done_cb)(tsi_result status, void *user_data, const unsigned char *bytes_to_send, size_t bytes_to_send_size, tsi_handshaker_result *handshaker_result)
Definition: transport_security_interface.h:417