Go to the documentation of this file.
19 #ifndef GRPC_CORE_TSI_TRANSPORT_SECURITY_H
20 #define GRPC_CORE_TSI_TRANSPORT_SECURITY_H
36 const unsigned char* unprotected_bytes,
37 size_t* unprotected_bytes_size,
38 unsigned char* protected_output_frames,
39 size_t* protected_output_frames_size);
41 unsigned char* protected_output_frames,
42 size_t* protected_output_frames_size,
43 size_t* still_pending_size);
45 const unsigned char* protected_frames_bytes,
46 size_t* protected_frames_bytes_size,
47 unsigned char* unprotected_bytes,
48 size_t* unprotected_bytes_size);
65 const unsigned char*
bytes,
70 size_t* max_protected_frame_size,
77 size_t received_bytes_size,
78 const unsigned char** bytes_to_send,
79 size_t* bytes_to_send_size,
109 size_t* max_output_protected_frame_size,
114 size_t* max_output_protected_frame_size,
117 const unsigned char**
bytes,
tsi_result(* protect_flush)(tsi_frame_protector *self, unsigned char *protected_output_frames, size_t *protected_output_frames_size, size_t *still_pending_size)
const tsi_handshaker_vtable * vtable
bool frame_protector_created
tsi_result(* 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)
void(* shutdown)(tsi_handshaker *self)
tsi_result tsi_construct_string_peer_property_from_cstring(const char *name, const char *value, tsi_peer_property *property)
grpc_core::TraceFlag tsi_tracing_enabled
tsi_result(* 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(* 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(* process_bytes_from_peer)(tsi_handshaker *self, const unsigned char *bytes, size_t *bytes_size)
tsi_result(* extract_peer)(const tsi_handshaker_result *self, tsi_peer *peer)
tsi_result tsi_construct_string_peer_property(const char *name, const char *value, size_t value_length, tsi_peer_property *property)
const tsi_handshaker_result_vtable * vtable
void tsi_peer_property_destruct(tsi_peer_property *property)
tsi_peer_property tsi_init_peer_property(void)
void(* destroy)(tsi_handshaker *self)
void(* destroy)(tsi_handshaker_result *self)
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)
tsi_result(* get_bytes_to_send_to_peer)(tsi_handshaker *self, unsigned char *bytes, size_t *bytes_size)
void(* destroy)(tsi_frame_protector *self)
tsi_result tsi_construct_peer(size_t property_count, tsi_peer *peer)
tsi_result tsi_construct_allocated_string_peer_property(const char *name, size_t value_length, tsi_peer_property *property)
const tsi_peer_property * tsi_peer_get_property_by_name(const tsi_peer *peer, const char *name)
tsi_result(* create_frame_protector)(tsi_handshaker *self, size_t *max_protected_frame_size, tsi_frame_protector **protector)
tsi_result(* get_unused_bytes)(const tsi_handshaker_result *self, const unsigned char **bytes, size_t *bytes_size)
tsi_result(* create_frame_protector)(const tsi_handshaker_result *self, size_t *max_output_protected_frame_size, tsi_frame_protector **protector)
char * tsi_strdup(const char *src)
const tsi_frame_protector_vtable * vtable
tsi_result(* get_result)(tsi_handshaker *self)
tsi_result(* get_frame_protector_type)(const tsi_handshaker_result *self, tsi_frame_protector_type *frame_protector_type)
tsi_result(* extract_peer)(tsi_handshaker *self, tsi_peer *peer)
OPENSSL_EXPORT pem_password_cb * cb
bool handshaker_result_created
tsi_result(* create_zero_copy_grpc_protector)(const tsi_handshaker_result *self, size_t *max_output_protected_frame_size, tsi_zero_copy_grpc_protector **protector)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:40