pub type s2n_async_pkey_fn = Option<unsafe extern "C" fn(_: *mut s2n_connection, _: *mut s2n_async_pkey_op) -> i32>;
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§
None
No value.
Some(unsafe extern "C" fn(_: *mut s2n_connection, _: *mut s2n_async_pkey_op) -> i32)
Some value of type T
.