Go to the source code of this file.
◆ TSI_ALTS_CERTIFICATE_TYPE
#define TSI_ALTS_CERTIFICATE_TYPE "ALTS" |
◆ TSI_ALTS_CONTEXT
#define TSI_ALTS_CONTEXT "alts_context" |
◆ TSI_ALTS_RPC_VERSIONS
#define TSI_ALTS_RPC_VERSIONS "rpc_versions" |
◆ TSI_ALTS_SERVICE_ACCOUNT_PEER_PROPERTY
#define TSI_ALTS_SERVICE_ACCOUNT_PEER_PROPERTY "service_account" |
◆ alts_tsi_handshaker
◆ alts_tsi_handshaker_create()
This method creates a ALTS TSI handshaker instance.
- options: ALTS credentials options containing information passed from TSI caller (e.g., rpc protocol versions).
- target_name: the name of the endpoint that the channel is connecting to, and will be used for secure naming check.
- handshaker_service_url: address of ALTS handshaker service in the format of "host:port".
- is_client: boolean value indicating if the handshaker is used at the client (is_client = true) or server (is_client = false) side.
- interested_parties: set of pollsets interested in this connection.
- self: address of ALTS TSI handshaker instance to be returned from the method.
It returns TSI_OK on success and an error status code on failure. Note that if interested_parties is nullptr, a dedicated TSI thread will be created and used.
◆ alts_tsi_handshaker_has_shutdown()
This method returns a boolean value indicating if an ALTS TSI handshaker has been shutdown or not.
◆ alts_tsi_handshaker_result_create()
This method creates an ALTS TSI handshaker result instance.
- resp: data received from the handshaker service.
- is_client: a boolean value indicating if the result belongs to a client or not.
- result: address of ALTS TSI handshaker result instance.
◆ alts_tsi_handshaker_result_set_unused_bytes()
This method sets unused bytes of ALTS TSI handshaker result instance.
- result: an ALTS TSI handshaker result instance.
- recv_bytes: data received from the handshaker service.
- bytes_consumed: size of data consumed by the handshaker service.
◆ kTsiAltsNumOfPeerProperties
const size_t kTsiAltsNumOfPeerProperties = 4 |