diff options
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() } |