Age | Commit message (Collapse) | Author |
|
- All types that are `Send` and `Sync` are checked now.
- Fixes #627.
|
|
|
|
- See #627.
|
|
- Since `set_features` requires ownership of `Features`, it should take
ownership rather than borrowing and cloning them.
See https://rust-lang.github.io/api-guidelines/flexibility.html#caller-decides-where-to-copy-and-place-data-c-caller-control .
- See #616.
|
|
- Make `generate_key` polymorphic over `AsRef<KeyFlags>`.
- Since `set_key_flags` requires ownership of the key flags, it should
take ownership rather than borrowing and cloning the them.
See https://rust-lang.github.io/api-guidelines/flexibility.html#caller-decides-where-to-copy-and-place-data-c-caller-control .
- See #616.
|
|
|
|
- Split Padder::new() into new and build.
- Adjust code in dependent projects (sop and sq).
- Fixes #600.
|
|
- Fixes #563
- With an MSRV >= 1.40.0, we can use #[non_exhaustive], as mentioned
in #406.
- This is also a clippy lint:
https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
|
|
|
|
- This is closer to collection types such as HashMap, and
distinguishes the function from Cert::merge that merges two
certificates.
- See #572.
|
|
- In order to deduplicate signatures, we need to be able to sort
them. This change implements PartialOrd and Ord for all relevant
types. Like PartialEq and Eq it is based on the serialized form,
and can be derived for most of the types.
|
|
|
|
- Adjust code to test for `cfg(test)` only,
- Remove `quickcheck` and `rand` from dependencies so that they stay
only in dev-dependencies,
- Remove mention of `x-quickcheck` feature from the documentation,
- Fixes #545.
|
|
- Make `SubpacketArea::lookup`'s name more consistent with
`SubpacketArea::subpackets`, `SubpacketAreas::subpacket`, and
`SubpacketAreas::subpackets`.
|
|
- Make sure not to generate unknown curves with OIDs exceeding 255
bytes as OpenPGP cannot represent those.
- Fixes #542 and #543.
|
|
|
|
|
|
- Align our examples with how the code in the examples of the Rust
standard library is formatted. We are writing examples in the
hope that downstream users will copy fragments of them, therefore
using idiomatic formatting in these snippets is important.
|
|
- In contrast with the other bitfields, this one has a fixed size.
Account for that in the API. Don't implement Default.
- Fixes #525.
|
|
- See #525.
|
|
|
|
- `CertBuilder::set_expiration_time` takes an absolute time.
- Most callers use a relative time.
- Internally, we need a relative time (that's what the Key
Expiration Time packet takes).
- Converting the absolute time to a relative time is error prone:
should it be relative to the creation time when called or when
`CertBuilder` is finalized?
- KISS: Change it to just take a relative time.
- To better reflect the new semantics, also change the name to
`CertBuilder::set_validity_period`.
|
|
- This also drops the implementation of PartialOrd since we did not
use it in the key selection after all.
- Fixes #525.
|
|
- Also improve the documentation of the KSP::no_modify and the
corresponding setters.
- See #525.
|
|
|
|
|
|
|
|
- The implementation of `Default` for `Features` returned an empty
feature set. This is not a reasonable feature set: the MDC flag
should almost always be set.
- Remove the `Default` implementation and use `Features::empty` when
an empty feature set is really required.
|
|
- Change Features to only store the raw value, a vector of bytes.
Extract features on demand.
- Add methods to query and manipulate unknown features.
- Change `PartialEq` to implement serialized equality (like most
other data structures). Add `normalized_eq` to implement semantic
equality.
|
|
|
|
- Make quickcheck dependency optional.
- Make quickcheck a dev-dependency for tests.
- Fix doctests for
- cert::ValidCert::user_attributes,
- cert::builder::CertBuilder::add_user_attribute,
- cert::revoke::UserAttributeRevocationBuilder
- cert::revoke::UserAttributeRevocationBuilder::build.
Doctests do not use cfg(test), so we cannot use quickcheck in there.
|
|
- Fixes #475.
|
|
- Allow RevocationType to be used in unit tests.
|
|
|
|
|
|
|
|
- Fixes #463.
|
|
|
|
|
|
|
|
|
|
- Also compare and hash unknown bits.
|
|
|
|
|
|
- Avoid repeating the type name.
- Avoid self referential, trivial descriptions.
- Avoid the terms OpenPGP and Sequoia.
- Fix mistakes from the Message -> PacketPile rework.
|
|
|
|
|
|
|
|
|
|
- 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.
|