alts_tsi_handshaker.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_H
20 #define GRPC_CORE_TSI_ALTS_HANDSHAKER_ALTS_TSI_HANDSHAKER_H
21 
23 
24 #include <grpc/grpc.h>
25 
33 
34 #define TSI_ALTS_SERVICE_ACCOUNT_PEER_PROPERTY "service_account"
35 #define TSI_ALTS_CERTIFICATE_TYPE "ALTS"
36 #define TSI_ALTS_RPC_VERSIONS "rpc_versions"
37 #define TSI_ALTS_CONTEXT "alts_context"
38 
39 const size_t kTsiAltsNumOfPeerProperties = 5;
40 
41 // Frame size negotiation extends send frame size range to
42 // [kTsiAltsMinFrameSize, kTsiAltsMaxFrameSize].
43 const size_t kTsiAltsMinFrameSize = 16 * 1024;
44 const size_t kTsiAltsMaxFrameSize = 1024 * 1024;
45 
47 
71  const char* handshaker_service_url, bool is_client,
73  size_t user_specified_max_frame_size);
74 
84  bool is_client,
86 
95  grpc_slice* recv_bytes,
96  size_t bytes_consumed);
97 
103 
104 #endif /* GRPC_CORE_TSI_ALTS_HANDSHAKER_ALTS_TSI_HANDSHAKER_H */
altscontext.upb.h
alts_tsi_handshaker::handshaker_service_url
char * handshaker_service_url
Definition: alts_tsi_handshaker.cc:55
_gevent_test_main.result
result
Definition: _gevent_test_main.py:96
alts_tsi_handshaker
Definition: alts_tsi_handshaker.cc:49
tsi_handshaker
Definition: transport_security.h:84
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_tsi_handshaker::is_client
bool is_client
Definition: alts_tsi_handshaker.cc:52
kTsiAltsNumOfPeerProperties
const size_t kTsiAltsNumOfPeerProperties
Definition: alts_tsi_handshaker.h:39
alts_tsi_handshaker::target_name
grpc_slice target_name
Definition: alts_tsi_handshaker.cc:51
alts_tsi_handshaker_has_shutdown
bool alts_tsi_handshaker_has_shutdown(alts_tsi_handshaker *handshaker)
Definition: alts_tsi_handshaker.cc:633
alts_handshaker_client.h
grpc_gcp_HandshakerResp
struct grpc_gcp_HandshakerResp grpc_gcp_HandshakerResp
Definition: handshaker.upb.h:46
alts_tsi_handshaker::interested_parties
grpc_pollset_set * interested_parties
Definition: alts_tsi_handshaker.cc:56
http2_server_health_check.resp
resp
Definition: http2_server_health_check.py:31
grpc.h
alts_tsi_handshaker_result_set_unused_bytes
void alts_tsi_handshaker_result_set_unused_bytes(tsi_handshaker_result *result, grpc_slice *recv_bytes, size_t bytes_consumed)
Definition: alts_tsi_handshaker.cc:669
tsi_result
tsi_result
Definition: transport_security_interface.h:31
pollset_set.h
grpc_slice
Definition: include/grpc/impl/codegen/slice.h:65
grpc_alts_credentials_options.h
alts_tsi_handshaker_result_create
tsi_result alts_tsi_handshaker_result_create(grpc_gcp_HandshakerResp *resp, bool is_client, tsi_handshaker_result **result)
Definition: alts_tsi_handshaker.cc:265
transport_security_interface.h
handshaker.upb.h
kTsiAltsMinFrameSize
const size_t kTsiAltsMinFrameSize
Definition: alts_tsi_handshaker.h:43
grpc_alts_credentials_options
Definition: grpc_alts_credentials_options.h:35
alts_tsi_handshaker_create
tsi_result alts_tsi_handshaker_create(const grpc_alts_credentials_options *options, const char *target_name, const char *handshaker_service_url, bool is_client, grpc_pollset_set *interested_parties, tsi_handshaker **self, size_t user_specified_max_frame_size)
Definition: alts_tsi_handshaker.cc:639
transport_security.h
kTsiAltsMaxFrameSize
const size_t kTsiAltsMaxFrameSize
Definition: alts_tsi_handshaker.h:44
tsi_handshaker_result
Definition: transport_security.h:121
port_platform.h


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