Function s2n_tls_sys::s2n_async_pkey_op_apply
source · [−]pub unsafe extern "C" fn s2n_async_pkey_op_apply(
op: *mut s2n_async_pkey_op,
conn: *mut s2n_connection
) -> c_int
Expand description
Finalizes a private key operation and unblocks the connection.
Safety
conn
must match the connection that originally triggered the callback.- Must be called after the operation is performed.
- Can only be called once. Any subsequent calls will produce a
S2N_ERR_T_USAGE
error. - Safe to call from inside s2n_async_pkey_fn
- Safe to call from a different thread, as long as no other thread is operating on
op
.
@param op An opaque object representing the private key operation @param conn The connection associated with the operation that should be unblocked