34 #ifndef GRPC_INTERNAL_CORE_TSI_TRANSPORT_SECURITY_INTERFACE_H
35 #define GRPC_INTERNAL_CORE_TSI_TRANSPORT_SECURITY_INTERFACE_H
48 TSI_UNKNOWN_ERROR = 1,
49 TSI_INVALID_ARGUMENT = 2,
50 TSI_PERMISSION_DENIED = 3,
51 TSI_INCOMPLETE_DATA = 4,
52 TSI_FAILED_PRECONDITION = 5,
53 TSI_UNIMPLEMENTED = 6,
54 TSI_INTERNAL_ERROR = 7,
55 TSI_DATA_CORRUPTED = 8,
57 TSI_PROTOCOL_FAILURE = 10,
58 TSI_HANDSHAKE_IN_PROGRESS = 11,
59 TSI_OUT_OF_RESOURCES = 12
62 const char* tsi_result_to_string(tsi_result result);
67 extern int tsi_tracing_enabled;
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);
143 tsi_result tsi_frame_protector_protect_flush(
145 size_t* protected_output_frames_size,
size_t* still_pending_size);
167 tsi_result tsi_frame_protector_unprotect(
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"
194 size_t property_count;
198 void tsi_peer_destruct(
tsi_peer*
self);
280 tsi_result tsi_handshaker_get_bytes_to_send_to_peer(
tsi_handshaker*
self,
281 unsigned char* bytes,
293 tsi_result tsi_handshaker_process_bytes_from_peer(
tsi_handshaker*
self,
294 const unsigned char* bytes,
305 #define tsi_handshaker_is_in_progress(h) \
306 (tsi_handshaker_get_result((h)) == TSI_HANDSHAKE_IN_PROGRESS)
330 tsi_result tsi_handshaker_create_frame_protector(
Definition: transport_security.h:65
Definition: transport_security_interface.h:192
Definition: transport_security.h:86
Definition: transport_security_interface.h:184