summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/src/cert.rs
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2020-04-08 17:15:11 +0200
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2020-04-08 18:58:45 +0200
commit900633af144b23a801ed6837d74c51a9f65d5264 (patch)
tree53995aee948153ac6c6649c478a76ea0d9afdc54 /openpgp-ffi/src/cert.rs
parent0ea0bc335bba1108807fd0b016f0a621e23740f0 (diff)
openpgp: Change key's role function names.
- Change `mark_role_primary` to `role_into_primary`. - Change `mark_role_primary_ref` to `role_as_primary`. - Change `mark_role_subordinate` to `role_into_subordinate`. - Change `mark_role_subordinate_ref` to `role_as_subordinate`. - Change `mark_role_unspecified` to `role_into_unspecified`. - Change `mark_role_unspecified_ref` to `role_as_unspecified`. - Fixes #452.
Diffstat (limited to 'openpgp-ffi/src/cert.rs')
-rw-r--r--openpgp-ffi/src/cert.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/src/cert.rs b/openpgp-ffi/src/cert.rs
index 9516ad75..21f082a6 100644
--- a/openpgp-ffi/src/cert.rs
+++ b/openpgp-ffi/src/cert.rs
@@ -146,7 +146,7 @@ fn pgp_cert_as_tsk(cert: *const Cert) -> *mut TSK<'static> {
#[::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().key()
- .parts_as_unspecified().mark_role_unspecified_ref();
+ .parts_as_unspecified().role_as_unspecified();
key.move_into_raw()
}