Age | Commit message (Collapse) | Author |
|
- See #462.
|
|
- Avoid repeating the type name.
- Avoid self referential, trivial descriptions.
- Avoid the terms OpenPGP and Sequoia.
- Fix mistakes from the Message -> PacketPile rework.
|
|
|
|
|
|
- Packet bodies can now be either unprocessed (e.g. compressed,
encrypted), processed (e.g. uncompressed, decrypted), or
structured (e.g. parsed into packets).
- Make the container types deref to Container, and container deref
to packet bodies.
- This cleanly avoids the confusion when serializing containers: We
can serialize compressed data packets with either body, but we can
only serialize encryption containers with unprocessed bodies.
- Fixes #187.
|
|
- Likewise for the test.
|
|
- Use the anyhow crate instead of failure to implement the dynamic
side of our error handling. anyhow::Error derefs to dyn
std::error::Error, allowing better interoperability with other
stdlib-based error handling libraries.
- Fixes #444.
|
|
- See #405.
|
|
- See #405.
|
|
- The module contains only one exported item.
|
|
|
|
- This allows us to implement PartialEq and related traits more
selectively. See #93.
|
|
|
|
See https://github.com/rust-lang/rust/pull/65819. Warned against by
default since Rust 1.41.
Right now `into_iter` returns references to objects inside an array
rather than moving the values (as one would expect) so it makes sense to
use `iter()` or for-in-borrowed (which calls the same thing) to retain
the behaviour but make it less confusing.
|
|
- The hash context knows the algorithm.
|
|
- Fixes #381.
|
|
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
|
|
Newer Rust compilers requre `dyn` marking trait objects.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
- A drawback of this change is that currently AsRef<[u8]> is not
implemented for [u8; _], only for specific lengths. This is a
compiler limitation that may be lifted in the future. This
limitation required fixing some tests, notably those using
include_bytes!.
- Fixes #296.
|
|
|
|
|
|
- Add compile-time assertions that public types like Packet, TPK,
Message... can be send across thread boundaries, and can be
safely accessed from multiple threads.
- Fixes #334.
|
|
- This implements std::str::FromStr for types that have
string-representations and are reasonably likely to be encountered
by downstream users, e.g. fingerprints or messages. This allows
us to do `"xxx".parse()?`.
- Fixes #320.
|
|
- In addition to providing some added protection, this allows us to
implement 'From<Key<_, _>> for Packet'.
|
|
- 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.
|
|
|
|
|
|
- Closes #281
|
|
- To ease debugging, include the path of the packet that caused the
parse error.
|
|
- Don't merely look at the tag, but make sure that we understood the
packet.
|
|
|
|
- Fixes #234.
|
|
- Fixes #228.
|
|
- See #228.
|
|
- See #228.
|
|
- See #228.
|
|
- This patch makes packet::skesk public, exports the SKESK4 and
SKESK5 type there, and moves the SKESK enum to packet.
- This is a clean and faithful way to represent packet versions. It
allows us to cleanly support future versions, and offer partial
support for older versions. Parsing and understanding old
versions allows Sequoia to be used to access archived information.
- This is the first of a series of patches that introduces explicit
packet versions for all packet types in the form of enums like the
SKESK enum.
- See #228.
|
|
- This replaces PacketPile::from_packets.
|
|
ECC and RSA key need different parameters. It makes sense to have two
functions.
|
|
- See #173.
|
|
|
|
|
|
- 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.
|
|
|
|
|
|
|
|
- Trait Parse introduces a uniform interface to parse packets,
messages, keys, and related data structures.
|
|
|
|
|
|
|