GRPC C++  1.39.1
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"

Functions

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. More...
 
grpc_gcp_HandshakerRespalts_tsi_utils_deserialize_response (grpc_byte_buffer *resp_buffer, upb_arena *arena)
 This method deserializes a handshaker response returned from ALTS handshaker service. More...
 

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.

◆ 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.