Function alpm_sys::alpm_pkg_get_sig
source · pub unsafe extern "C" fn alpm_pkg_get_sig(
pkg: *mut alpm_pkg_t,
sig: *mut *mut c_uchar,
sig_len: *mut usize
) -> c_int
Expand description
Extracts package signature either from embedded package signature or if it is absent then reads data from detached signature file. @param pkg a pointer to package. @param sig output parameter for signature data. Callee function allocates a buffer needed for the signature data. Caller is responsible for freeing this buffer. @param sig_len output parameter for the signature data length. @return 0 on success, negative number on error.