alts_handshaker_client.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_HANDSHAKER_CLIENT_H
20 #define GRPC_CORE_TSI_ALTS_HANDSHAKER_ALTS_HANDSHAKER_CLIENT_H
21 
23 
24 #include <grpc/byte_buffer.h>
26 #include <grpc/grpc.h>
27 
32 
33 #define ALTS_SERVICE_METHOD "/grpc.gcp.HandshakerService/DoHandshake"
34 #define ALTS_APPLICATION_PROTOCOL "grpc"
35 #define ALTS_RECORD_PROTOCOL "ALTSRP_GCM_AES128_REKEY"
36 #define ALTS_HANDSHAKER_SERVICE_URL_FOR_TESTING "lame"
37 
38 const size_t kAltsAes128GcmRekeyKeyLength = 44;
39 
48 
49 /* A function that makes the grpc call to the handshaker service. */
51  size_t nops, grpc_closure* tag);
52 
53 /* V-table for ALTS handshaker client operations. */
63 
73 
86 
98 
107 
114 
143  const char* handshaker_service_url, grpc_pollset_set* interested_parties,
144  grpc_alts_credentials_options* options, const grpc_slice& target_name,
146  void* user_data, alts_handshaker_client_vtable* vtable_for_testing,
147  bool is_client, size_t max_frame_size);
148 
158  bool is_ok);
159 
160 #endif /* GRPC_CORE_TSI_ALTS_HANDSHAKER_ALTS_HANDSHAKER_CLIENT_H */
alts_grpc_caller
grpc_call_error(* alts_grpc_caller)(grpc_call *call, const grpc_op *ops, size_t nops, grpc_closure *tag)
Definition: alts_handshaker_client.h:50
grpc_call_error
grpc_call_error
Definition: grpc_types.h:464
alts_handshaker_client_vtable::destruct
void(* destruct)(alts_handshaker_client *client)
Definition: alts_handshaker_client.h:61
alts_handshaker_client_shutdown
void alts_handshaker_client_shutdown(alts_handshaker_client *client)
Definition: alts_handshaker_client.cc:895
alts_tsi_handshaker
Definition: alts_tsi_handshaker.cc:49
alts_handshaker_client_vtable::server_start
tsi_result(* server_start)(alts_handshaker_client *client, grpc_slice *bytes_received)
Definition: alts_handshaker_client.h:56
client
Definition: examples/python/async_streaming/client.py:1
alts_tsi_handshaker.h
grpc_pollset_set
struct grpc_pollset_set grpc_pollset_set
Definition: iomgr_fwd.h:23
options
double_dict options[]
Definition: capstone_test.c:55
alts_handshaker_client_start_client
tsi_result alts_handshaker_client_start_client(alts_handshaker_client *client)
Definition: alts_handshaker_client.cc:863
bytes_received
static int bytes_received
Definition: test-callback-stack.c:44
alts_handshaker_client_vtable
Definition: alts_handshaker_client.h:54
closure.h
alts_handshaker_client_vtable::client_start
tsi_result(* client_start)(alts_handshaker_client *client)
Definition: alts_handshaker_client.h:55
alts_handshaker_client_handle_response
void alts_handshaker_client_handle_response(alts_handshaker_client *client, bool is_ok)
Definition: alts_handshaker_client.cc:190
call
FilterStackCall * call
Definition: call.cc:750
byte_buffer_reader.h
client
static uv_tcp_t client
Definition: test-callback-stack.c:33
channel
wrapped_grpc_channel * channel
Definition: src/php/ext/grpc/call.h:33
kAltsAes128GcmRekeyKeyLength
const size_t kAltsAes128GcmRekeyKeyLength
Definition: alts_handshaker_client.h:38
tag
static void * tag(intptr_t t)
Definition: bad_client.cc:318
grpc.h
grpc_call
struct grpc_call grpc_call
Definition: grpc_types.h:70
alts_handshaker_client_vtable::shutdown
void(* shutdown)(alts_handshaker_client *client)
Definition: alts_handshaker_client.h:60
tsi_handshaker_on_next_done_cb
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:462
alts_handshaker_client_destroy
void alts_handshaker_client_destroy(alts_handshaker_client *client)
Definition: alts_handshaker_client.cc:902
tsi_result
tsi_result
Definition: transport_security_interface.h:31
pollset_set.h
grpc_op
Definition: grpc_types.h:640
alts_grpc_handshaker_client_create
alts_handshaker_client * alts_grpc_handshaker_client_create(alts_tsi_handshaker *handshaker, grpc_channel *channel, const char *handshaker_service_url, grpc_pollset_set *interested_parties, grpc_alts_credentials_options *options, const grpc_slice &target_name, grpc_iomgr_cb_func grpc_cb, tsi_handshaker_on_next_done_cb cb, void *user_data, alts_handshaker_client_vtable *vtable_for_testing, bool is_client, size_t max_frame_size)
Definition: alts_handshaker_client.cc:687
grpc_slice
Definition: include/grpc/impl/codegen/slice.h:65
alts_handshaker_client
Definition: alts_handshaker_client.cc:43
transport_security_interface.h
alts_handshaker_client_vtable::next
tsi_result(* next)(alts_handshaker_client *client, grpc_slice *bytes_received)
Definition: alts_handshaker_client.h:58
grpc_alts_credentials_options
Definition: grpc_alts_credentials_options.h:35
alts_handshaker_client_start_server
tsi_result alts_handshaker_client_start_server(alts_handshaker_client *client, grpc_slice *bytes_received)
Definition: alts_handshaker_client.cc:873
grpc_iomgr_cb_func
void(* grpc_iomgr_cb_func)(void *arg, grpc_error_handle error)
Definition: closure.h:53
grpc_channel
struct grpc_channel grpc_channel
Definition: grpc_types.h:62
alts_handshaker_client_next
tsi_result alts_handshaker_client_next(alts_handshaker_client *client, grpc_slice *bytes_received)
Definition: alts_handshaker_client.cc:884
grpc_closure
Definition: closure.h:56
ops
static grpc_op ops[6]
Definition: test/core/fling/client.cc:39
cb
OPENSSL_EXPORT pem_password_cb * cb
Definition: pem.h:351
alts_handshaker_client_vtable
struct alts_handshaker_client_vtable alts_handshaker_client_vtable
port_platform.h


grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:41