Function s2n_quic_tls::ffi::s2n_config_set_key_log_cb
source · pub unsafe extern "C" fn s2n_config_set_key_log_cb(
config: *mut s2n_config,
callback: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut s2n_connection, _: *mut u8, _: usize) -> i32>,
ctx: *mut c_void,
) -> i32
Expand description
Sets a key logging callback on the provided config
THIS SHOULD BE USED FOR DEBUGGING PURPOSES ONLY!
Setting this function enables configurations to emit secrets in the NSS Key Log Format
§Safety
callback
MUST castctx
into the same type of pointer that was originally createdctx
MUST live for at least as long as it is set on the config
@param config Config to set the callback @param callback The function that should be called for each secret log entry @param ctx The context to be passed when the callback is called