GRPC Core
9.0.0
|
#include <grpc/support/port_platform.h>
#include <stdint.h>
#include <stdlib.h>
#include "src/core/lib/debug/trace.h"
Go to the source code of this file.
Data Structures | |
struct | tsi_peer_property |
struct | tsi_peer |
Macros | |
#define | TSI_CERTIFICATE_TYPE_PEER_PROPERTY "certificate_type" |
#define | tsi_handshaker_is_in_progress(h) (tsi_handshaker_get_result((h)) == TSI_HANDSHAKE_IN_PROGRESS) |
Typedefs | |
typedef struct tsi_zero_copy_grpc_protector | tsi_zero_copy_grpc_protector |
typedef struct tsi_frame_protector | tsi_frame_protector |
typedef struct tsi_peer_property | tsi_peer_property |
typedef struct tsi_handshaker_result | tsi_handshaker_result |
typedef struct tsi_handshaker | tsi_handshaker |
typedef void(* | tsi_handshaker_on_next_done_cb) (tsi_result status, void *user_data, const unsigned char *bytes_to_send, size_t bytes_to_send_size, tsi_handshaker_result *handshaker_result) |
Functions | |
const char * | tsi_result_to_string (tsi_result result) |
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) |
void | tsi_frame_protector_destroy (tsi_frame_protector *self) |
void | tsi_peer_destruct (tsi_peer *self) |
tsi_result | tsi_handshaker_result_extract_peer (const tsi_handshaker_result *self, tsi_peer *peer) |
tsi_result | tsi_handshaker_result_create_frame_protector (const tsi_handshaker_result *self, size_t *max_output_protected_frame_size, tsi_frame_protector **protector) |
tsi_result | tsi_handshaker_result_get_unused_bytes (const tsi_handshaker_result *self, const unsigned char **bytes, size_t *byte_size) |
void | tsi_handshaker_result_destroy (tsi_handshaker_result *self) |
tsi_result | tsi_handshaker_get_bytes_to_send_to_peer (tsi_handshaker *self, unsigned char *bytes, size_t *bytes_size) |
tsi_result | tsi_handshaker_process_bytes_from_peer (tsi_handshaker *self, const unsigned char *bytes, size_t *bytes_size) |
tsi_result | tsi_handshaker_get_result (tsi_handshaker *self) |
tsi_result | tsi_handshaker_extract_peer (tsi_handshaker *self, tsi_peer *peer) |
tsi_result | tsi_handshaker_create_frame_protector (tsi_handshaker *self, size_t *max_output_protected_frame_size, tsi_frame_protector **protector) |
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) |
void | tsi_handshaker_shutdown (tsi_handshaker *self) |
void | tsi_handshaker_destroy (tsi_handshaker *self) |
void | tsi_init () |
void | tsi_destroy () |
Variables | |
grpc_core::TraceFlag | tsi_tracing_enabled |
#define TSI_CERTIFICATE_TYPE_PEER_PROPERTY "certificate_type" |
#define tsi_handshaker_is_in_progress | ( | h | ) | (tsi_handshaker_get_result((h)) == TSI_HANDSHAKE_IN_PROGRESS) |
typedef struct tsi_frame_protector tsi_frame_protector |
typedef struct tsi_handshaker tsi_handshaker |
typedef void(* tsi_handshaker_on_next_done_cb) (tsi_result status, void *user_data, const unsigned char *bytes_to_send, size_t bytes_to_send_size, tsi_handshaker_result *handshaker_result) |
typedef struct tsi_handshaker_result tsi_handshaker_result |
typedef struct tsi_peer_property tsi_peer_property |
typedef struct tsi_zero_copy_grpc_protector tsi_zero_copy_grpc_protector |
enum tsi_result |
void tsi_destroy | ( | ) |
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_unused_bytes | ( | const tsi_handshaker_result * | self, |
const unsigned char ** | bytes, | ||
size_t * | byte_size | ||
) |
void tsi_handshaker_shutdown | ( | tsi_handshaker * | self | ) |
void tsi_init | ( | ) |
void tsi_peer_destruct | ( | tsi_peer * | self | ) |
const char* tsi_result_to_string | ( | tsi_result | result | ) |
grpc_core::TraceFlag tsi_tracing_enabled |