Type Alias 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 created
  • logline 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

Aliased Type§

enum s2n_key_log_fn {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut s2n_connection, _: *mut u8, _: usize) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: *mut s2n_connection, _: *mut u8, _: usize) -> i32)

Some value of type T.