summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi
AgeCommit message (Collapse)Author
2019-03-21openpgp: Rename UserAttribute's accessors.Justus Winter
- See #224.
2019-03-21openpgp-ffi: Use crate for futimes fiddling.Justus Winter
- The previous solution of using libc::futimes turned out to be not portable because different platforms have differently sized timestamps. Use a crate for that instead. - Also, bring ffi's c-tests up-to-speed. - Fixes #225.
2019-03-21openpgp-ffi: Reify the verification wrapper.Justus Winter
- See #154.
2019-03-21openpgp-ffi: Fix memory leak.Justus Winter
2019-03-21openpgp-ffi: Reify the decryption wrapper.Justus Winter
- See #154.
2019-03-21openpgp-ffi: Allow passing 0 to select the default algorithmNeal H. Walfield
- 01db33b and 97cdc30 changed the Encryption::new and Signer::new APIs to optionally provide the algorithm to use for encryption and hashing. Also make it optional in the C API by recognizing 0 as meaning the default algorithm.
2019-03-20openpgp-ffi: Add test.Justus Winter
2019-03-20openpgp-ffi: Fix linkage.Justus Winter
2019-03-20openpgp-ffi: Simplify c-test.Justus Winter
- Use the line number instead of a hash. This makes it simpler, but also easier to locate the test in the source file.
2019-03-20openpgp-ffi: Move the decryption and verification code.Justus Winter
2019-03-20openpgp-ffi: Create parse subdirectory.Justus Winter
2019-03-19openpgp-ffi: New example.Justus Winter
2019-03-19openpgp-ffi: Simplify examples.Justus Winter
2019-03-18openpgp: Make cipher algorithm configurable in streaming Encryptor.Justus Winter
- Fixes #208.
2019-03-18openpgp: Make hash algorithm configurable in streaming Signer.Justus Winter
- See #208.
2019-03-14Release 0.5.0.v0.5.0Justus Winter
2019-03-14openpgp-ffi: Fix naming.Neal H. Walfield
2019-03-14openpgp-ffi: Fix prototype.Neal H. Walfield
- pgp_tpk_set_expiry now takes a pgp_signer_t instead of a pgp_tpk_t.
2019-03-14openpgp: Replace TPK::select_keys with an iterator.Neal H. Walfield
- TPK::select_keys mixes iterating and filtering. - Make KeyIter an implicit builder, which supports convenient filtering. - Provide a convenience function to key an iterator with a reasonable filter default.
2019-03-13Bump nettle to 5.0.Justus Winter
2019-03-11openpgp-ffi: Fix declarations.Neal H. Walfield
- pgp_signer_new and pgp_signer_new_detached take pgp_signer_t *'s, not pgp_tpk_t's.
2019-03-11openpgp-ffi: Don't try to reclaim referencesNeal H. Walfield
- The ids are references, not owned objects.
2019-03-11openpgp-ffi: Unwrap array of wrapped TPKs.Neal H. Walfield
2019-03-11openpgp-ffi: Improve error messageNeal H. Walfield
2019-03-11openpgp-ffi: Unwrap object.Neal H. Walfield
- Use ref_raw, not ffi_parame_ref! to access wrapped objects.
2019-03-11openpgp-ffi: Avoid C++ keywords in identifiersNeal H. Walfield
- public and this are C++ keywords, avoid them.
2019-03-11openpgp-ffi: Finish sq_ to pgp_ rename.Neal H. Walfield
2019-03-11openpgp-ffi: Move all type declarations to <sequoia/openpgp/types.h>Neal H. Walfield
- pgp_key_t was declared multiple times, once in <sequoia/openpgp.h> and again in <sequoia/openpgp/crypto.h>. Although the definitions were the same, this causes gcc to emit a warning, which is particularly annoying when combined with -Werror. - It's hard to remove one of the declarations as this would create a circular dependency. - To break this circular dependency, we move all of the type declarations to a separate header file.
2019-02-19Release 0.4.0.v0.4.0Justus Winter
2019-02-13openpgp: use nettle 4.0Kai Michaelis
2019-02-12openpgp-ffi: Wrap openpgp::packet::Key.Justus Winter
2019-02-12openpgp-ffi: Fix Signature wrapping.Justus Winter
2019-02-12openpgp-ffi: Use the correct type.Justus Winter
2019-02-12openpgp-ffi: Reduce FFI additions.Justus Winter
- See #154.
2019-02-12openpgp-ffi: Fix wrapping of Fingerprints and KeyIDs.Justus Winter
2019-02-12openpgp-ffi: Wrap openpgp::packet::signature::Signature.Justus Winter
2019-02-12openpgp-ffi: Improve derived functions.Justus Winter
- Explicitly use the Parse and Serialize traits so that the modules that derives these functions do not have to use them explicitly.
2019-02-12openpgp-ffi: Fix formatting.Justus Winter
2019-02-12openpgp-ffi: Return wrapped KeyIDs and Fingerprints.Justus Winter
2019-02-12openpgp-ffi: Rename function.Justus Winter
- See #160.
2019-02-12openpgp-ffi: Use the correct type.Justus Winter
2019-02-12openpgp-ffi: Drop empty file.Justus Winter
2019-02-12openpgp: Use a Signer to set the expiry.Justus Winter
2019-02-12openpgp: Drop superfluous function.Justus Winter
2019-02-07openpgp-ffi: Add example.Justus Winter
2019-02-06openpgp: New error for unsupported packet types.Justus Winter
2019-02-06openpgp: Rename consuming conversion functions.Justus Winter
- Rename functions that consume their receiver but are called .to_...() to .into_...(). - For the packet types, simply drop the conversion function in favor of using the From trait. - Fixes #160.
2019-02-05openpgp-ffi: Convert pgp_writer_t.Justus Winter
2019-02-05ffi-macros: Do not pull traits into the namespace.Justus Winter
- Previously, it was impossible to use the ffi_wrapper_type macro twice in the same module because importing a trait twice introduces a conflict.
2019-02-05openpgp-ffi: Convert pgp_reader_t to the new framework.Justus Winter