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