Function sc_apdu2bytes

Source
pub unsafe extern "C" fn sc_apdu2bytes(
    ctx: *mut sc_context_t,
    apdu: *const sc_apdu_t,
    proto: c_uint,
    out: *mut u8,
    outlen: size_t,
) -> c_int
Expand description

Encodes a APDU as an octet string @param ctx sc_context_t object (used for logging) @param apdu APDU to be encoded as an octet string @param proto protocol version to be used @param out output buffer of size outlen. @param outlen size of hte output buffer @return SC_SUCCESS on success and an error code otherwise