Type Definition s2n_tls_sys::s2n_key_log_fn
source · [−]pub type s2n_key_log_fn = Option<unsafe extern "C" fn(ctx: *mut c_void, conn: *mut s2n_connection, logline: *mut u8, len: usize) -> c_int>;
Expand description
Callback function for handling key log events
THIS SHOULD BE USED FOR DEBUGGING PURPOSES ONLY!
Each log line is formatted with the NSS Key Log Format without a newline.
Safety
ctx
MUST be cast into the same type of pointer that was originally createdlogline
bytes MUST be copied or discarded before this function returns
@param ctx Context for the callback @param conn Connection for which the log line is being emitted @param logline Pointer to the log line data @param len Length of the log line data