[][src]Function sequoia_ffi::store::sq_key_import

#[no_mangle]pub extern "C" fn sq_key_import(
    ctx: *mut Context,
    key: *const Key,
    cert: *const Cert
) -> Maybe<Cert>

Updates this stored key with the given Cert.

C Declaration

sq_key_import (pgp_context_t ctx,
               const pgp_key_t key,
               const pgp_cert_t cert);

If the new key cert matches the current key, i.e. they have the same fingerprint, both keys are merged and normalized. The returned key contains all packets known to Sequoia, and should be used instead of cert.

If the new key does not match the current key, Error::Conflict is returned.