diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-09-18 18:49:29 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-09-18 18:49:29 +0200 |
commit | 6cbc940b4f59d9d9ddaef729fb8db7b6ec63e533 (patch) | |
tree | 25a52bb5e84216ca0f5a34b2ace8facfff5bdd4c /openpgp-ffi | |
parent | 044854773282eed2be23aab511d5dc38ffbe21ca (diff) |
openpgp: Change TPK::primary to return the key and not the binding
- The primary key is not a binding; it is a single component.
Thus, returning a ComponentBinding is misleading.
- Add methods to the TPK structure to return the direct signatures,
certifications, self revocations, and other revocations.
Diffstat (limited to 'openpgp-ffi')
-rw-r--r-- | openpgp-ffi/src/tpk.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/src/tpk.rs b/openpgp-ffi/src/tpk.rs index 0d59bf00..613dc2d4 100644 --- a/openpgp-ffi/src/tpk.rs +++ b/openpgp-ffi/src/tpk.rs @@ -149,7 +149,7 @@ fn pgp_tpk_as_tsk(tpk: *const TPK) -> *mut TSK<'static> { #[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C" fn pgp_tpk_primary_key(tpk: *const TPK) -> *const Key { let key : &self::openpgp::packet::key::UnspecifiedKey - = tpk.ref_raw().primary().key().into(); + = tpk.ref_raw().primary().into(); key.move_into_raw() } |