summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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
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: Typo.Justus Winter
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: Add a conversion from &[u8] to UserIDNeal H. Walfield
- User IDs don't need to be UTF-8 and at the lowest level we don't assume that they are.
2019-05-08Improve build instructions.Justus Winter
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-08openpgp: Remove unused import.Justus Winter
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: Remove {Subkey,UserID}Binding::new().Justus Winter
- These functions are quite unflexible, and are therefore quite opinionated. Nowadays, we have a more flexible way of adding components to a TPK. - Fixes #175.
2019-05-07openpgp-ffi: Remove '#include <error.h>' from doctests.Justus Winter
2019-05-07Update Cargo.lock.Justus Winter
2019-05-07openpgp, net: Improve panic messages.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: Add a method to TPKBuilder to create a general-purpose keyNeal H. Walfield
- Add a convenience method to TPKBuilder to create a typical, general-purpose key, i.e., one with a certification- and signing-capable primary key, and an encryption-capable subkey.
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: Add a Default implementation for CipherSuiteNeal H. Walfield
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-07openpgp: Add email address normalizationNeal H. Walfield
- Provide a function to return a normalized email address, which is appropriate when comparing email addresses for equality.
2019-05-07openpgp: Fix commentNeal H. Walfield
2019-05-03Update Cargo.lock.Justus Winter
2019-05-03openpgp: Account for every octet in the size calculation.Justus Winter
2019-05-03openpgp: Improve test to also SerializeInto.Justus Winter
2019-05-03openpgp: Implement SerializeInto for TPK, TSK.Justus Winter
2019-05-03openpgp: Implement and use trait NetLength.Justus Winter
- Implement NetLength for all the packets that previously didn't implement it, and use it do compute the serialized length.
2019-05-03openpgp: Optimize generic_serialize_into.Justus Winter
- Assume that the object will fit into the buffer, and return the appropriate error on short writes. - Add test demonstrating this behavior.
2019-05-03openpgp: Move TPK/TSK serialization code to mod serialize.Justus Winter
2019-05-03ipc: New crate.Justus Winter
2019-05-03openpgp: Improve base64 decodingNeal H. Walfield
- Change get_base64_prefix to really only return valid base64 data. - Simplify is_armored_pgp_blob to exploit this assumption.
2019-05-03openpgp: Use assert_eq! instead of assert! when asserting equalityNeal H. Walfield
2019-05-03openpgp: More efficiently identify valid ASCII-armorNeal H. Walfield
- Don't decode base64 data that definitely can't possibly contain a valid OpenPGP message.
2019-05-03buffered-reader: Add convenience functions to drop some dataNeal H. Walfield
- Add convenience methods to the BufferReader trait to drop data until some byte is encountered (BufferedReader::drop_until and BufferedReader::drop_through).
2019-04-30openpgp: Avoid monomorphization of serializaton functions.Justus Winter
- Change the function signature to take a mut reference to a trait object instead. This trades the cost of a dynamic dispatch for executable size. The results are modest, but a step in the right direction. On my system, libsequoia_openpgp_ffi.so in release mode shrunk by 2.2% (61440 bytes) after stripping. - Fixes #250.
2019-04-30rfc2822: Improve documentationNeal H. Walfield
2019-04-30rfc2822: Improve commentsNeal H. Walfield
2019-04-29rfc2822: Use quickcheck. Fix edge cases.Neal H. Walfield
- Use quickcheck to test the parser. - To fix a number of edge cases that it uncovered, don't discard Component::WS, and compress them in components_merge more carefully intelligently. - Update the test vectors, and fix the edge cases.