#[no_mangle]
pub extern "C" fn _pgpDigParamsCmp(
    p1: *const PgpDigParams,
    p2: *const PgpDigParams
) -> c_int
Expand description

“Compares” the two parameters and returns 1 if they differ and 0 if they match.

Two signatures are considered the same if they have the same parameters (version, signature type, public key and hash algorithms, and the first issuer packet). Note: this function explicitly does not check that the MPIs are the same, nor that the signature creation time is the same! This is intended. The only use of this function in the rpm code base is to check whether a key has already made a signature (cf. sign/rpmgensig.c:haveSignature).

Two certificates are considered the same if they have the same fingerprint. (rpm does not currently use this functionality.)

Two subkeys are considered the same if they have the same fingerprint. (rpm does not currently use this functionality.)