diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2019-10-27 22:45:01 -0400 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2019-10-27 22:45:01 -0400 |
commit | d3336f34c0d953b6cfd6cc9d4757fd31c1ac31ae (patch) | |
tree | aac95b974bd51187efc572a21fb28dd55b0b810e /openpgp-ffi | |
parent | 6b1c86756c1a3945fec84e3703e991ef1ee99fee (diff) |
Fix more spelling errors caught by codespell
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'openpgp-ffi')
-rw-r--r-- | openpgp-ffi/src/error.rs | 4 | ||||
-rw-r--r-- | openpgp-ffi/src/packet/pkesk.rs | 2 | ||||
-rw-r--r-- | openpgp-ffi/src/serialize.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/openpgp-ffi/src/error.rs b/openpgp-ffi/src/error.rs index 23b65c4e..3b64e250 100644 --- a/openpgp-ffi/src/error.rs +++ b/openpgp-ffi/src/error.rs @@ -99,7 +99,7 @@ pub enum Status { /// Unsupported Compression algorithm. UnsupportedCompressionAlgorithm = -28, - /// Unsupport signature type. + /// Unsupported signature type. UnsupportedSignatureType = -20, /// Invalid password. @@ -176,7 +176,7 @@ pub extern "C" fn pgp_status_to_string(status: Status) -> *const c_char { UnsupportedAEADAlgorithm => "Unsupported AEAD algorithm\x00", UnsupportedCompressionAlgorithm => "Unsupported compression algorithm\x00", - UnsupportedSignatureType => "Unsupport signature type\x00", + UnsupportedSignatureType => "Unsupported signature type\x00", InvalidPassword => "Invalid password\x00", InvalidSessionKey => "Invalid session key\x00", MissingSessionKey => "Missing session key\x00", diff --git a/openpgp-ffi/src/packet/pkesk.rs b/openpgp-ffi/src/packet/pkesk.rs index 55b1827c..8f844d6c 100644 --- a/openpgp-ffi/src/packet/pkesk.rs +++ b/openpgp-ffi/src/packet/pkesk.rs @@ -15,7 +15,7 @@ use crate::RefRaw; /// Returns the PKESK's recipient. /// -/// The return value is a reference ot a `KeyID`. The caller must not +/// The return value is a reference to a `KeyID`. The caller must not /// modify or free it. #[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C" fn pgp_pkesk_recipient(pkesk: *const PKESK) diff --git a/openpgp-ffi/src/serialize.rs b/openpgp-ffi/src/serialize.rs index 918c30fb..e799888c 100644 --- a/openpgp-ffi/src/serialize.rs +++ b/openpgp-ffi/src/serialize.rs @@ -143,7 +143,7 @@ pub extern "C" fn pgp_arbitrary_writer_new /// packet, then hashes and emits the data stream, then for every key /// writes a signature packet. /// -/// The hash is performed using the algorithm specificed in +/// The hash is performed using the algorithm specified in /// `hash_algo`. Pass 0 for the default (which is what you usually /// want). #[::sequoia_ffi_macros::extern_fn] #[no_mangle] |