GRPC Core  9.0.0
Data Structures | Typedefs | Functions
local_transport_security.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/tsi/local_transport_security.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/tsi/transport_security_grpc.h"

Data Structures

struct  local_zero_copy_grpc_protector
 
struct  local_tsi_handshaker_result
 
struct  local_tsi_handshaker
 

Typedefs

typedef struct local_zero_copy_grpc_protector local_zero_copy_grpc_protector
 
typedef struct local_tsi_handshaker_result local_tsi_handshaker_result
 
typedef struct local_tsi_handshaker local_tsi_handshaker
 

Functions

tsi_result local_zero_copy_grpc_protector_create (tsi_zero_copy_grpc_protector **protector)
 
tsi_result local_tsi_handshaker_create (bool is_client, tsi_handshaker **self)
 This method creates a local TSI handshaker instance. More...
 

Typedef Documentation

◆ local_tsi_handshaker

◆ local_tsi_handshaker_result

◆ local_zero_copy_grpc_protector

Function Documentation

◆ local_tsi_handshaker_create()

tsi_result local_tsi_handshaker_create ( bool  is_client,
tsi_handshaker **  self 
)

This method creates a local TSI handshaker instance.

  • is_client: boolean value indicating if the handshaker is used at the client (is_client = true) or server (is_client = false) side. The parameter is added for future extension.
  • self: address of local TSI handshaker instance to be returned from the method.

It returns TSI_OK on success and an error status code on failure.

◆ local_zero_copy_grpc_protector_create()

tsi_result local_zero_copy_grpc_protector_create ( tsi_zero_copy_grpc_protector **  protector)