summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi
AgeCommit message (Collapse)Author
2019-05-13openpgp-ffi: Use the C ABI, not the system ABINeal H. Walfield
Reported-by: Thomas Muenz
2019-05-11openpgp: Make {is,possible}_{message,keyring,tpk} return a ResultNeal H. Walfield
- PacketParserEOF::is_message, PacketParserEOF::is_keyring, PacketParserEOF::is_tpk, PacketParserResult::possible_message, PacketParserResult::possible_keyring, and PacketParserResult::possible_tpk returned a boolean. - Change them to return a Result<()> instead, which is more Rusty, and, in particular, allows the caller to determine why the message didn't parse.
2019-05-10Release 0.7.0.v0.7.0Justus Winter
2019-05-10openpgp: Add a new parsing mode to the Armor ReaderNeal H. Walfield
- Add a strict "mode" to the armor reader that requires an armor header line, but doesn't care what the header is. - Closes issue #254.
2019-05-10openpgp-ffi: Use new-style unwrapping for packetsNeal H. Walfield
- pgp_tpk_merge_packets was still using old-style unwrapping for the array of Packets although Packets now use new-style wrapping. - Likewise pgp_signature_into_packet.
2019-05-10Fix typo.Neal H. Walfield
2019-05-09openpgp: Communicate message structure from the decryptor.Justus Winter
- Fixes #100.
2019-05-09openpgp-ffi: Wrap RevocationStatus.Justus Winter
2019-05-09openpgp-ffi: Fix commentNeal H. Walfield
2019-05-09openpgp-ffi: Add some bindings for TPKParserNeal H. Walfield
2019-05-08openpgp-ffi: Fix indentationNeal H. Walfield
2019-05-08openpgp-ffi: Use extern "C", not extern "system"Neal H. Walfield
2019-05-08openpgp-ffi: Add functions to instantiate UserIDsNeal H. Walfield
- Add pgp_user_id_new to instantiate from a c string. - Add pgp_user_id_from_raw to instantiate from a not-NUL-terminated buffer.
2019-05-08openpgp-ffi: Deal with name-mangling, 2nd try.Justus Winter
- Apparently, some platforms use name mangling to differentiate calling conventions. Deal with that in `make check-headers`. - Fixes 8ed5842580a1c172fc8d5ebe5d0444ee5e011a01.
2019-05-07openpgp-ffi, ffi: Reword.Justus Winter
2019-05-07openpgp-ffi, ffi: Improve 6911aed9.Justus Winter
- To preserve location information, replace the include.
2019-05-07openpgp-ffi: Deal with name-mangling.Justus Winter
- Apparently, some platforms use name mangling to differentiate calling conventions. Deal with that in `make check-headers`.
2019-05-07openpgp-ffi, ffi: Fix calling convention on Windows.Justus Winter
- Use `extern "C"` instead of `extern "system"`. The latter selects stdcall, which is only appropriate for talking to the Windows API.
2019-05-07openpgp-ffi: Remove '#include <error.h>' from doctests.Justus Winter
2019-05-07openpgp-ffi: Fix return typeNeal H. Walfield
- pgp_tpk_builder_generate returns a pgp_status_t, not a pgp_tpk_t.
2019-05-07openpgp-ffi: Wrap TPKBuilder::general_purposeNeal H. Walfield
2019-05-07openpgp-ffi: Fix C interface.Neal H. Walfield
- pgp_tpk_builder_autocrypt takes an optional string. Reflect this in the C declaration.
2019-05-07openpgp-ffi: Add missing values to pgp_tpk_cipher_suite_tNeal H. Walfield
2019-05-07openpgp-ffi: Fix int to cipher suite conversionNeal H. Walfield
- Factor out the code so it can be used elsewhere. - Map all CipherSuites.
2019-05-07openpgp: Rename TPKBuilder::default to TPKBuilder::newNeal H. Walfield
- One would think that TPKBuilder::default would return something filled with useful defaults, but it just returns a nearly empty builder. Rename it to TPKBuilder::new, which is less misleading.
2019-05-07TypoNeal H. Walfield
2019-05-07openpgp-ffi: Add a function to convert a Status to a stringNeal H. Walfield
2019-05-07openpgp-ffi: Add functions to extract the various parts of a User IDNeal H. Walfield
- Add pgp_user_id_name, pgp_user_id_comment, pgp_user_id_address, and pgp_user_id_address_normalized.
2019-05-03openpgp: Move TPK/TSK serialization code to mod serialize.Justus Winter
2019-04-29openpgp: New TSK type.Justus Winter
- With a1e226f8f1418de43e577fdaa1d087b68bbb09ae in place, we have a more general way to add components to a TPK. Retire the current `TSK` type and replace it with a thin shim that only allows serialization of secret keys. - Fixes #107.
2019-04-29openpgp-ffi: Introduce a new Packet type.Justus Winter
- See #156.
2019-04-29openpgp-ffi: Move packet prototypes to a new file.Justus Winter
2019-04-26ffi-macros: Fix the RefRaw trait.Justus Winter
- Do not hardcode the lifetime in the trait.
2019-04-12Release 0.6.0.v0.6.0Justus Winter
- Also bump rfc2822 to 0.6.0. After all, we create tags for the versions.
2019-04-09openpgp: Guard signature verifications with a time.Justus Winter
- In the streaming verifier and decryptor, check that signatures (and binding signatures) are valid at the given time. - Fixes #247.
2019-04-03openpgp-ffi: Typo.Justus Winter
2019-04-03openpgp: Reverse the order of signature groups.Justus Winter
- Previously, we reported the signature groups in the order encountered in the message. Reverse this order in preparation to reporting the message structure, which is the path from the start of the message to the literal data packet.
2019-04-02openpgp: Improve the VerificationHelper protocol.Justus Winter
- Change VerificationResult::GoodChecksum to include references to the TPK that contained the signing key, the key itself, a binding signature (if any), and any revocation information. - Fixes #140.
2019-04-01openpgp-ffi: Add a convenience function to pretty print a packetNeal H. Walfield
2019-03-28Fix intra-workspace dependencies.Justus Winter
- Specify versions for intra-workspace dependencies in the crates that are not yet released.
2019-03-28Point to the version-specific documentation.Justus Winter
2019-03-25openpgp: Rework the DecryptionHelper trait.Justus Winter
- Simplify the protocol by removing the iteration. Instead, the callee gets a proxy for PacketParser::decrypt() that she can use to decrypt the message. If successful, the session key can be cached without involving the DecryptionHelper trait. This also allows us to dump session keys. - Fixes #219.
2019-03-25openpgp-ffi: Wrap crypto::SessionKey and crypto::Password.Justus Winter
2019-03-25openpgp-ffi: Rename type.Justus Winter
2019-03-25openpgp-ffi: Rename types.Justus Winter
- Fixes e3cb52fede1872f93371677224201228a62ae6ce.
2019-03-25openpgp-ffi: Implement From<Fallible<T>> for Status.Justus Winter
2019-03-22Fix build on macOS.Justus Winter
- Use GNU install, use the correct extension for dynamic libraries. - Fixes #226.
2019-03-22openpgp-ffi: Replace glibc's error function.Justus Winter
- To make the tests and examples more portable, provide our own roughly compatible replacement for glibc's error(3).
2019-03-22openpgp-ffi: Add convenience functions to work with pgp_reader_t:s.Neal H. Walfield
- pgp_reader_copy: Copy up to n bytes from a reader to a writer. - pgp_reader_discard: Read to EOF and discard everything that is read.
2019-03-21openpgp: Rename `UserID::userid()` to `value()`.Justus Winter
- Fixes #224.