Functions
alts_tsi_utils.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/tsi/alts/handshaker/alts_tsi_utils.h"
#include <grpc/byte_buffer_reader.h>
#include "src/core/lib/slice/slice_internal.h"
Include dependency graph for alts_tsi_utils.cc:

Go to the source code of this file.

Functions

tsi_result alts_tsi_utils_convert_to_tsi_result (grpc_status_code code)
 
grpc_gcp_HandshakerRespalts_tsi_utils_deserialize_response (grpc_byte_buffer *resp_buffer, upb_Arena *arena)
 

Function Documentation

◆ alts_tsi_utils_convert_to_tsi_result()

tsi_result alts_tsi_utils_convert_to_tsi_result ( grpc_status_code  code)

This method converts grpc_status_code code to the corresponding tsi_result code.

  • code: grpc_status_code code.

It returns the converted tsi_result code.

Definition at line 27 of file alts_tsi_utils.cc.

◆ alts_tsi_utils_deserialize_response()

grpc_gcp_HandshakerResp* alts_tsi_utils_deserialize_response ( grpc_byte_buffer resp_buffer,
upb_Arena arena 
)

This method deserializes a handshaker response returned from ALTS handshaker service.

  • bytes_received: data returned from ALTS handshaker service.
  • arena: upb arena.

It returns a deserialized handshaker response on success and nullptr on failure.

Definition at line 44 of file alts_tsi_utils.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:02