Age | Commit message (Collapse) | Author |
|
|
|
|
|
- Instead of giving a set of TPKs to the encryptor, hand in a set of
recipients, which are (keyid, key)-tuples, conveniently created
from key queries over TPKs. This simplifies the encryptor, and
makes the key selection explicit.
- Drop the EncryptionMode type.
- As a nice side effect, we can now generate encrypted messages with
wildcard recipient addresses.
|
|
|
|
- This introduces a configurable limit for
non-data (i.e. non-container) packets. This prevents a trivial
DoS on our parser, which previously assumed that all non-data
packets can be buffered.
- Fixes #242.
|
|
- In addition to providing some added protection, this allows us to
implement 'From<Key<_, _>> for Packet'.
|
|
|
|
- Automatically using AEAD if all recipients claim support is a
policy decision, which we'd rather avoid in the openpgp crate.
- Fixes #293.
|
|
|
|
|
|
|
|
|
|
- This is the result of running `cargo fix --edition`, with some
manual adjustments.
- The vast majority of changes merely qualify module paths with
'crate::'.
- Two instances of adding an anonymous pattern to a trait's
function.
- `async` is a keyword in Rust 2018, and hence it needs to be
escaped (e.g. in the case of the net::r#async module).
- The manual adjustments were needed due to various shortcomings of
the analysis employed by `cargo fix`, e.g. unexpanded macros,
procedural macros, lalrpop grammars.
|
|
|
|
|
|
- See #154.
|
|
- Introduce two new types, `Encrypted` and `Unencrypted`, to make
the fields of enum `SecretKey` private. Add accessors, implement
From<..> to make the new types ergonomic to use, update callsites.
|
|
|
|
|
|
|
|
- Add bindings for the new User ID constructors,
UserID::from_address and UserID::from_unchecked_address.
|
|
- Change ffi_try! to explicitly coerce errors to failure::Error so
that the caller doesn't need to do it.
|
|
|
|
- Providing bindings for UserID::other and
UserID::address_or_other.
- Improve related documentation to reflect the changes to the
parser.
|
|
- 0.5.6 fixes cross-building from macOS for Android.
- Fixes #284.
|
|
|
|
|
|
|
|
- The documentation for pgp_tpk_key_iter_all and
pgp_tpk_key_iter_valid was backwards.
|
|
|
|
- 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.
|
|
|
|
- `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.
|
|
- Use failure, improve error message when invoking make fails.
|
|
- 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.)
|
|
Reported-by: Thomas Muenz
|
|
- 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.
|
|
|
|
- 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.
|
|
- 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.
|
|
|
|
- Fixes #100.
|
|
|
|
|
|
|
|
|
|
|
|
- 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.
|
|
- Apparently, some platforms use name mangling to differentiate
calling conventions. Deal with that in `make check-headers`.
- Fixes 8ed5842580a1c172fc8d5ebe5d0444ee5e011a01.
|
|
|