Functions | Variables
transport_security.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/tsi/transport_security.h"
#include <stdlib.h>
#include <string.h>
#include <grpc/support/alloc.h>
#include <grpc/support/string_util.h>
Include dependency graph for transport_security.cc:

Go to the source code of this file.

Functions

tsi_result tsi_construct_allocated_string_peer_property (const char *name, size_t value_length, tsi_peer_property *property)
 
tsi_result tsi_construct_peer (size_t property_count, tsi_peer *peer)
 
tsi_result tsi_construct_string_peer_property (const char *name, const char *value, size_t value_length, tsi_peer_property *property)
 
tsi_result tsi_construct_string_peer_property_from_cstring (const char *name, const char *value, tsi_peer_property *property)
 
void tsi_frame_protector_destroy (tsi_frame_protector *self)
 
tsi_result tsi_frame_protector_protect (tsi_frame_protector *self, const unsigned char *unprotected_bytes, size_t *unprotected_bytes_size, unsigned char *protected_output_frames, size_t *protected_output_frames_size)
 
tsi_result tsi_frame_protector_protect_flush (tsi_frame_protector *self, unsigned char *protected_output_frames, size_t *protected_output_frames_size, size_t *still_pending_size)
 
tsi_result tsi_frame_protector_unprotect (tsi_frame_protector *self, const unsigned char *protected_frames_bytes, size_t *protected_frames_bytes_size, unsigned char *unprotected_bytes, size_t *unprotected_bytes_size)
 
tsi_result tsi_handshaker_create_frame_protector (tsi_handshaker *self, size_t *max_output_protected_frame_size, tsi_frame_protector **protector)
 
void tsi_handshaker_destroy (tsi_handshaker *self)
 
tsi_result tsi_handshaker_extract_peer (tsi_handshaker *self, tsi_peer *peer)
 
tsi_result tsi_handshaker_get_bytes_to_send_to_peer (tsi_handshaker *self, unsigned char *bytes, size_t *bytes_size)
 
tsi_result tsi_handshaker_get_result (tsi_handshaker *self)
 
tsi_result tsi_handshaker_next (tsi_handshaker *self, const unsigned char *received_bytes, size_t received_bytes_size, const unsigned char **bytes_to_send, size_t *bytes_to_send_size, tsi_handshaker_result **handshaker_result, tsi_handshaker_on_next_done_cb cb, void *user_data)
 
tsi_result tsi_handshaker_process_bytes_from_peer (tsi_handshaker *self, const unsigned char *bytes, size_t *bytes_size)
 
tsi_result tsi_handshaker_result_create_frame_protector (const tsi_handshaker_result *self, size_t *max_output_protected_frame_size, tsi_frame_protector **protector)
 
void tsi_handshaker_result_destroy (tsi_handshaker_result *self)
 
tsi_result tsi_handshaker_result_extract_peer (const tsi_handshaker_result *self, tsi_peer *peer)
 
tsi_result tsi_handshaker_result_get_frame_protector_type (const tsi_handshaker_result *self, tsi_frame_protector_type *frame_protector_type)
 
tsi_result tsi_handshaker_result_get_unused_bytes (const tsi_handshaker_result *self, const unsigned char **bytes, size_t *bytes_size)
 
void tsi_handshaker_shutdown (tsi_handshaker *self)
 
tsi_peer_property tsi_init_peer_property (void)
 
static void tsi_peer_destroy_list_property (tsi_peer_property *children, size_t child_count)
 
void tsi_peer_destruct (tsi_peer *self)
 
const tsi_peer_propertytsi_peer_get_property_by_name (const tsi_peer *peer, const char *name)
 
void tsi_peer_property_destruct (tsi_peer_property *property)
 
const char * tsi_result_to_string (tsi_result result)
 
const char * tsi_security_level_to_string (tsi_security_level security_level)
 

Variables

grpc_core::TraceFlag tsi_tracing_enabled (false, "tsi")
 

Function Documentation

◆ tsi_construct_allocated_string_peer_property()

tsi_result tsi_construct_allocated_string_peer_property ( const char *  name,
size_t  value_length,
tsi_peer_property property 
)

Definition at line 329 of file transport_security.cc.

◆ tsi_construct_peer()

tsi_result tsi_construct_peer ( size_t  property_count,
tsi_peer peer 
)

Definition at line 359 of file transport_security.cc.

◆ tsi_construct_string_peer_property()

tsi_result tsi_construct_string_peer_property ( const char *  name,
const char *  value,
size_t  value_length,
tsi_peer_property property 
)

Definition at line 346 of file transport_security.cc.

◆ tsi_construct_string_peer_property_from_cstring()

tsi_result tsi_construct_string_peer_property_from_cstring ( const char *  name,
const char *  value,
tsi_peer_property property 
)

Definition at line 340 of file transport_security.cc.

◆ tsi_frame_protector_destroy()

void tsi_frame_protector_destroy ( tsi_frame_protector self)

Definition at line 135 of file transport_security.cc.

◆ tsi_frame_protector_protect()

tsi_result tsi_frame_protector_protect ( tsi_frame_protector self,
const unsigned char *  unprotected_bytes,
size_t *  unprotected_bytes_size,
unsigned char *  protected_output_frames,
size_t *  protected_output_frames_size 
)

Definition at line 87 of file transport_security.cc.

◆ tsi_frame_protector_protect_flush()

tsi_result tsi_frame_protector_protect_flush ( tsi_frame_protector self,
unsigned char *  protected_output_frames,
size_t *  protected_output_frames_size,
size_t *  still_pending_size 
)

Definition at line 104 of file transport_security.cc.

◆ tsi_frame_protector_unprotect()

tsi_result tsi_frame_protector_unprotect ( tsi_frame_protector self,
const unsigned char *  protected_frames_bytes,
size_t *  protected_frames_bytes_size,
unsigned char *  unprotected_bytes,
size_t *  unprotected_bytes_size 
)

Definition at line 119 of file transport_security.cc.

◆ tsi_handshaker_create_frame_protector()

tsi_result tsi_handshaker_create_frame_protector ( tsi_handshaker self,
size_t *  max_output_protected_frame_size,
tsi_frame_protector **  protector 
)

Definition at line 196 of file transport_security.cc.

◆ tsi_handshaker_destroy()

void tsi_handshaker_destroy ( tsi_handshaker self)

Definition at line 237 of file transport_security.cc.

◆ tsi_handshaker_extract_peer()

tsi_result tsi_handshaker_extract_peer ( tsi_handshaker self,
tsi_peer peer 
)

Definition at line 182 of file transport_security.cc.

◆ tsi_handshaker_get_bytes_to_send_to_peer()

tsi_result tsi_handshaker_get_bytes_to_send_to_peer ( tsi_handshaker self,
unsigned char *  bytes,
size_t *  bytes_size 
)

Definition at line 144 of file transport_security.cc.

◆ tsi_handshaker_get_result()

tsi_result tsi_handshaker_get_result ( tsi_handshaker self)

Definition at line 174 of file transport_security.cc.

◆ tsi_handshaker_next()

tsi_result tsi_handshaker_next ( tsi_handshaker self,
const unsigned char *  received_bytes,
size_t  received_bytes_size,
const unsigned char **  bytes_to_send,
size_t *  bytes_to_send_size,
tsi_handshaker_result **  handshaker_result,
tsi_handshaker_on_next_done_cb  cb,
void *  user_data 
)

Definition at line 215 of file transport_security.cc.

◆ tsi_handshaker_process_bytes_from_peer()

tsi_result tsi_handshaker_process_bytes_from_peer ( tsi_handshaker self,
const unsigned char *  bytes,
size_t *  bytes_size 
)

Definition at line 159 of file transport_security.cc.

◆ tsi_handshaker_result_create_frame_protector()

tsi_result tsi_handshaker_result_create_frame_protector ( const tsi_handshaker_result self,
size_t *  max_output_protected_frame_size,
tsi_frame_protector **  protector 
)

Definition at line 266 of file transport_security.cc.

◆ tsi_handshaker_result_destroy()

void tsi_handshaker_result_destroy ( tsi_handshaker_result self)

Definition at line 288 of file transport_security.cc.

◆ tsi_handshaker_result_extract_peer()

tsi_result tsi_handshaker_result_extract_peer ( const tsi_handshaker_result self,
tsi_peer peer 
)

Definition at line 244 of file transport_security.cc.

◆ tsi_handshaker_result_get_frame_protector_type()

tsi_result tsi_handshaker_result_get_frame_protector_type ( const tsi_handshaker_result self,
tsi_frame_protector_type frame_protector_type 
)

Definition at line 254 of file transport_security.cc.

◆ tsi_handshaker_result_get_unused_bytes()

tsi_result tsi_handshaker_result_get_unused_bytes ( const tsi_handshaker_result self,
const unsigned char **  bytes,
size_t *  bytes_size 
)

Definition at line 277 of file transport_security.cc.

◆ tsi_handshaker_shutdown()

void tsi_handshaker_shutdown ( tsi_handshaker self)

Definition at line 229 of file transport_security.cc.

◆ tsi_init_peer_property()

tsi_peer_property tsi_init_peer_property ( void  )

Definition at line 295 of file transport_security.cc.

◆ tsi_peer_destroy_list_property()

static void tsi_peer_destroy_list_property ( tsi_peer_property children,
size_t  child_count 
)
static

Definition at line 301 of file transport_security.cc.

◆ tsi_peer_destruct()

void tsi_peer_destruct ( tsi_peer self)

Definition at line 320 of file transport_security.cc.

◆ tsi_peer_get_property_by_name()

const tsi_peer_property* tsi_peer_get_property_by_name ( const tsi_peer peer,
const char *  name 
)

Definition at line 369 of file transport_security.cc.

◆ tsi_peer_property_destruct()

void tsi_peer_property_destruct ( tsi_peer_property property)

Definition at line 310 of file transport_security.cc.

◆ tsi_result_to_string()

const char* tsi_result_to_string ( tsi_result  result)

Definition at line 35 of file transport_security.cc.

◆ tsi_security_level_to_string()

const char* tsi_security_level_to_string ( tsi_security_level  security_level)

Definition at line 70 of file transport_security.cc.

Variable Documentation

◆ tsi_tracing_enabled

grpc_core::TraceFlag tsi_tracing_enabled(false, "tsi")


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