Function s2n_tls_sys::s2n_config_set_key_log_cb
source · pub unsafe extern "C" fn s2n_config_set_key_log_cb(
config: *mut s2n_config,
callback: s2n_key_log_fn,
ctx: *mut c_void
) -> c_int
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