diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-12-03 17:50:12 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-04 13:21:47 +0100 |
commit | 8354d849b19170a9a2c2b97179d9aaedb6fca6cf (patch) | |
tree | 12578d07af9c4d104571e1055e1d40af4eae99ed /openpgp-ffi/src | |
parent | 807eee2432de52715a2e3c7167d5e859ca3315a8 (diff) |
openpgp: Rename KeyFlag's accessors.
- Fixes #359.
Diffstat (limited to 'openpgp-ffi/src')
-rw-r--r-- | openpgp-ffi/src/packet/signature.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/openpgp-ffi/src/packet/signature.rs b/openpgp-ffi/src/packet/signature.rs index 14df1ce3..e3abedb3 100644 --- a/openpgp-ffi/src/packet/signature.rs +++ b/openpgp-ffi/src/packet/signature.rs @@ -69,37 +69,37 @@ fn pgp_signature_issuer_fingerprint(sig: *const Signature) /// Returns whether the KeyFlags indicates that the key can be used to /// make certifications. #[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C" -fn pgp_signature_can_certify(sig: *const Signature) -> bool { - sig.ref_raw().key_flags().can_certify() +fn pgp_signature_for_certification(sig: *const Signature) -> bool { + sig.ref_raw().key_flags().for_certification() } /// Returns whether the KeyFlags indicates that the key can be used to /// make signatures. #[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C" -fn pgp_signature_can_sign(sig: *const Signature) -> bool { - sig.ref_raw().key_flags().can_sign() +fn pgp_signature_for_signing(sig: *const Signature) -> bool { + sig.ref_raw().key_flags().for_signing() } /// Returns whether the KeyFlags indicates that the key can be used to /// encrypt data for transport. #[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C" -fn pgp_signature_can_encrypt_for_transport(sig: *const Signature) +fn pgp_signature_for_transport_encryption(sig: *const Signature) -> bool { - sig.ref_raw().key_flags().can_encrypt_for_transport() + sig.ref_raw().key_flags().for_transport_encryption() } /// Returns whether the KeyFlags indicates that the key can be used to /// encrypt data at rest. #[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C" -fn pgp_signature_can_encrypt_at_rest(sig: *const Signature) -> bool { - sig.ref_raw().key_flags().can_encrypt_at_rest() +fn pgp_signature_for_storage_encryption(sig: *const Signature) -> bool { + sig.ref_raw().key_flags().for_storage_encryption() } /// Returns whether the KeyFlags indicates that the key can be used /// for authentication. #[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C" -fn pgp_signature_can_authenticate(sig: *const Signature) -> bool { - sig.ref_raw().key_flags().can_authenticate() +fn pgp_signature_for_authentication(sig: *const Signature) -> bool { + sig.ref_raw().key_flags().for_authentication() } /// Returns whether the KeyFlags indicates that the key is a split |