diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-21 16:32:07 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-21 16:38:09 +0100 |
commit | 0a90c63dd3fe0beaa905d1c28924513d79e48c89 (patch) | |
tree | ae848fd45ce2dd33c237e1781ffcf84a3aac7fb2 /openpgp-ffi | |
parent | ea15543a1bebb1e9c985ac85a348e8ae3d5a7cb3 (diff) |
openpgp: Avoid use of Cert::primary_key.
Diffstat (limited to 'openpgp-ffi')
-rw-r--r-- | openpgp-ffi/src/cert.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/src/cert.rs b/openpgp-ffi/src/cert.rs index 45154246..27d5714a 100644 --- a/openpgp-ffi/src/cert.rs +++ b/openpgp-ffi/src/cert.rs @@ -153,7 +153,7 @@ fn pgp_cert_as_tsk(cert: *const Cert) -> *mut TSK<'static> { /// The cert still owns the key. The caller must not modify the key. #[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C" fn pgp_cert_primary_key(cert: *const Cert) -> *const Key { - let key = cert.ref_raw().primary_key() + let key = cert.ref_raw().primary().key() .mark_parts_unspecified_ref().mark_role_unspecified_ref(); key.move_into_raw() } |