GRPC Core  9.0.0
Functions
alts_tsi_utils.h File Reference
#include <grpc/support/port_platform.h>
#include <grpc/byte_buffer.h>
#include <grpc/grpc.h>
#include "src/core/tsi/transport_security_interface.h"
#include "src/proto/grpc/gcp/handshaker.upb.h"

Go to the source code of this file.

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.