summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/src/cert.rs
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2020-04-01 11:21:33 +0200
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2020-04-03 15:11:08 +0200
commit9fa0c1972a9f36e3a55da95d4eed44601d4a3f9f (patch)
tree5cebc2b5ea251e485737eb6f5ec1fbcb076a959a /openpgp-ffi/src/cert.rs
parentb0dbca2064163a41f73559d787456e8bab7b5cb9 (diff)
Change function names to align to Rust naming conventions.
- Change `mark_parts_public` to `parts_into_public`, - Change `mark_parts_public_ref` to `parts_as_public`, - Change `mark_parts_secret` to `parts_into_secret`, - Change `mark_parts_secret_ref` to `parts_as_secret`, - Change `mark_parts_unspecified` to `parts_into_unspecified`, - Change `mark_parts_unspecified_ref` to `parts_as_unspecified`, - Fixes #452.
Diffstat (limited to 'openpgp-ffi/src/cert.rs')
-rw-r--r--openpgp-ffi/src/cert.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp-ffi/src/cert.rs b/openpgp-ffi/src/cert.rs
index fdc95ed1..2d57677f 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()
- .mark_parts_unspecified_ref().mark_role_unspecified_ref();
+ .parts_as_unspecified().mark_role_unspecified_ref();
key.move_into_raw()
}
@@ -611,7 +611,7 @@ pub extern "C" fn pgp_cert_key_iter_next<'a>(
iter_wrapper.next_called = true;
if let Some(ka) = iter_wrapper.iter.as_mut().unwrap().next() {
- Some(ka.mark_parts_unspecified()).move_into_raw()
+ Some(ka.parts_into_unspecified()).move_into_raw()
} else {
None
}
@@ -843,7 +843,7 @@ pub extern "C" fn pgp_cert_valid_key_iter_next<'a>(
*ptr = rs.move_into_raw();
}
- Some(ka.mark_parts_unspecified()).move_into_raw()
+ Some(ka.parts_into_unspecified()).move_into_raw()
} else {
None
}