Type Alias s2n_tls_sys::s2n_async_pkey_fn

source ·
pub type s2n_async_pkey_fn = Option<unsafe extern "C" fn(conn: *mut s2n_connection, op: *mut s2n_async_pkey_op) -> c_int>;
Expand description

Callback function for handling private key operations

Invoked every time an operation requiring the private key is encountered during the handshake.

§Safety

  • op is owned by the application and MUST be freed.

@param conn Connection which triggered the callback @param op An opaque object representing the private key operation

Aliased Type§

enum s2n_async_pkey_fn {
    None,
    Some(unsafe extern "C" fn(_: *mut s2n_connection, _: *mut s2n_async_pkey_op) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.