summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2019-05-17openpgp-ffi: Typo.Justus Winter
2019-05-17Spelling.Neal H. Walfield
2019-05-17openpgp-ffi: Fix documentation.Neal H. Walfield
- The documentation for pgp_tpk_key_iter_all and pgp_tpk_key_iter_valid was backwards.
2019-05-17rfc2822: Fix debug output to work with multi-byte charactersNeal H. Walfield
- Change the error handler for the tests to work with multi-byte characters.
2019-05-16ffi-macros: Generate function prototypes for C.Justus Winter
2019-05-15openpgp: Add an interface to TPKBuilder to set the expiration timeNeal H. Walfield
- Add TPKBuilder::set_expiration to allow the caller to control the expiration time.
2019-05-15openpgp-ffi: Add some bindings for Literal data packetsNeal H. Walfield
2019-05-15openpgp-ffi: Expose the inspect callback in the C APINeal H. Walfield
- DecryptionHelper has a default NULL implementation of the inspect callback. Allow C code to override it by exposing it in the pgp_decryptor_new API.
2019-05-15core, store, tool: Use realm instead of domain.Justus Winter
- Remove the domain parameter from core::Context. - Replace it with a realm to be passed in when opening a store. - For sq, merge store name and realm into the --store parameter. - Fixes #105.
2019-05-15tool: Fix test.Justus Winter
2019-05-15openpgp: Support generating 2k RSA keysNeal H. Walfield
2019-05-15ci: Tar the cache to efficiently handle hard links.Justus Winter
- GitLab uses zip to cache build artifacts. Zip, however, does not preserve hard links, leading to unnecessary inflation of archive size and CPU time spent on compression. - See https://gitlab.com/gitlab-org/gitlab-ce/issues/37444
2019-05-15ci: Don't cache Cargo.lock, that is checked in now.Justus Winter
2019-05-14openpgp: Clean up test data handling.Justus Winter
- Use the new framework instead of including the files everywhere.
2019-05-14ci: Clean our crates before the cache is prepared.Justus Winter
- On the assumption that our dependencies change rarely (we pin them by having our Cargo.lock checked in), and that recompiling them takes longer than using the cache, we keep our dependencies cached, but drop any artifacts related to Sequoia. - Hopefully addresses #194.
2019-05-14openpgp: Add a filesystem-like framework for test data.Justus Winter
- Fixes #267.
2019-05-14openpgp, openpgp-ffi: Normalize TPK::revoked()Neal H. Walfield
- `TPK::revoked` returns a revocation status, not a boolean. Rename it to `TPK::revocation_status()`, like it is called in the FFI. - Like other methods, provide a `foo_at()` method and a `foo()` method.
2019-05-13openpgp-ffi, ffi: Improve c-tests.rs.Justus Winter
- Use failure, improve error message when invoking make fails.
2019-05-13core, ipc: Defer the creation of the home directory.Justus Winter
- Fixes #271.
2019-05-13openpgp: Include all the test data.Justus Winter
- Fixes #267.
2019-05-13openpgp: New module containing the test data.Justus Winter
2019-05-13openpgp: Fix worst-case estimate of compressed data size.Justus Winter
- For short messages where the signature size dominates, compression algorithms may inflate the message size considerably.
2019-05-13openpgp: Typo.Justus Winter
2019-05-13openpgp-ffi: Only include unistd.h when neededNeal H. Walfield
- sequoia/openpgp.h doesn't require <unistd.h> so don't include it there. - Several examples do need <unistd.h> for STDIN_FILENO. So, include it locally. - Note: <unistd.h> is not available on Windows. This change makes <sequoia/openpgp.h> work there. (Although the examples now fail.)
2019-05-13openpgp-ffi: Use the C ABI, not the system ABINeal H. Walfield
Reported-by: Thomas Muenz
2019-05-11openpgp: Allow trust packets in TPKsNeal H. Walfield
- Change the KeyringValidator to allow trust packets anywhere a signature packet is allowed. - This is needed to parse GnuPG Keyrings.
2019-05-11openpgp: Include the packet's position in the TPKValidator errorNeal H. Walfield
- To ease debugging, include the path of the packet that caused the parse error.
2019-05-11openpgp: Include the path in the MessageValidator errorNeal H. Walfield
- To ease debugging, include the path of the packet that caused the parse error.
2019-05-11openpgp: Make error message more accurateNeal H. Walfield
- A TPK is not a message in our terminology.
2019-05-11tool: Make sq inspect fail more verboselyNeal H. Walfield
- If sq inspect doesn't recognize the packet sequence, then have it print the parse errors.
2019-05-11tool: Fix hintNeal H. Walfield
- 'sq dump' was renamed to 'sq packet dump', but this reference was not updated.
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-10Improve release checklist.Justus Winter
2019-05-10openpgp: Add a notation data interface.Justus Winter
- Fixes #122.
2019-05-10openpgp: Add constructor for NotationData.Justus Winter
2019-05-10openpgp: Implement {Into,From}Iterator for SubpacketArea.Justus Winter
- This way we can .collect() into a SubpacketArea.
2019-05-10openpgp: New type for the flags of notation data subpackets.Justus Winter
2019-05-10openpgp: Fix documentation.Justus 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: Add some context to errorsNeal H. Walfield
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: Fix formatting.Justus Winter
2019-05-09openpgp: Fix documentation.Justus Winter
- Fixes 0ac9db8b1e039b498169d63fcb01cbd11ee204ec. - Fixes #177.
2019-05-09openpgp: Typo.Justus Winter
2019-05-09openpgp: Communicate message structure from the decryptor.Justus Winter
- Fixes #100.
2019-05-09ffi-macros: Derive Iterator.Justus Winter
2019-05-09ffi-macros: Support arguments for derived implementations.Justus Winter
2019-05-09openpgp-ffi: Wrap RevocationStatus.Justus Winter