34 #ifndef GRPC_INTERNAL_CORE_TSI_TRANSPORT_SECURITY_INTERFACE_H
35 #define GRPC_INTERNAL_CORE_TSI_TRANSPORT_SECURITY_INTERFACE_H
130 const unsigned char* unprotected_bytes,
131 size_t* unprotected_bytes_size,
132 unsigned char* protected_output_frames,
133 size_t* protected_output_frames_size);
145 size_t* protected_output_frames_size,
size_t* still_pending_size);
169 size_t* protected_frames_bytes_size,
unsigned char* unprotected_bytes,
170 size_t* unprotected_bytes_size);
180 #define TSI_CERTIFICATE_TYPE_PEER_PROPERTY "certificate_type"
281 unsigned char* bytes,
294 const unsigned char* bytes,
305 #define tsi_handshaker_is_in_progress(h) \
306 (tsi_handshaker_get_result((h)) == TSI_HANDSHAKE_IN_PROGRESS)
Definition: transport_security.h:65
tsi_result tsi_handshaker_process_bytes_from_peer(tsi_handshaker *self, const unsigned char *bytes, size_t *bytes_size)
Definition: transport_security.c:153
Definition: transport_security_interface.h:57
Definition: transport_security_interface.h:54
Definition: transport_security_interface.h:59
tsi_result tsi_handshaker_get_bytes_to_send_to_peer(tsi_handshaker *self, unsigned char *bytes, size_t *bytes_size)
Definition: transport_security.c:145
void tsi_peer_destruct(tsi_peer *self)
Definition: transport_security.c:226
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: transport_security.c:95
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: transport_security.c:122
char * data
Definition: transport_security_interface.h:187
struct tsi_peer_property::@12 value
Definition: transport_security_interface.h:55
Definition: transport_security_interface.h:192
Definition: transport_security_interface.h:51
Definition: transport_security_interface.h:50
Definition: transport_security_interface.h:52
tsi_peer_property * properties
Definition: transport_security_interface.h:193
size_t property_count
Definition: transport_security_interface.h:194
tsi_result
Definition: transport_security_interface.h:46
void tsi_handshaker_destroy(tsi_handshaker *self)
Definition: transport_security.c:194
Definition: transport_security_interface.h:53
tsi_result tsi_handshaker_create_frame_protector(tsi_handshaker *self, size_t *max_output_protected_frame_size, tsi_frame_protector **protector)
Definition: transport_security.c:177
int tsi_tracing_enabled
Definition: transport_security.c:41
Definition: transport_security_interface.h:56
tsi_result tsi_handshaker_get_result(tsi_handshaker *self)
Definition: transport_security.c:161
struct tsi_peer_property tsi_peer_property
Definition: transport_security_interface.h:49
char * name
Definition: transport_security_interface.h:185
tsi_result tsi_handshaker_extract_peer(tsi_handshaker *self, tsi_peer *peer)
Definition: transport_security.c:167
void tsi_frame_protector_destroy(tsi_frame_protector *self)
Definition: transport_security.c:136
Definition: transport_security_interface.h:58
Definition: transport_security.h:86
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: transport_security.c:110
const char * tsi_result_to_string(tsi_result result)
Definition: transport_security.c:58
size_t length
Definition: transport_security_interface.h:188
Definition: transport_security_interface.h:48
Definition: transport_security_interface.h:47
Definition: transport_security_interface.h:184