summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-05-07openpgp: Use a builder to construct Verifier.Justus Winter
- See #498.
2020-05-07openpgp: Drop obsolete comment.Justus Winter
2020-05-07openpgp: Use a builder to construct DetachedVerifier.Justus Winter
- See #498.
2020-05-07openpgp: Fix documentation, DetachedVerifier no longer is a filter.Justus Winter
2020-05-06openpgp: Improve documentation of parse::stream.Justus Winter
- See #471.
2020-05-06openpgp: Streamline iteration over MessageStructure.Justus Winter
- Implement IntoIter and Deref to &'a [MessageLayer<'a>], drop the custom iteration structs.
2020-05-06openpgp: Don't merge signatures in Cert::set_expiration_time.Justus Winter
- Align Cert::set_expiration_time with KeyAmalgamation::set_expiration_time, i.e. return the signatures instead of merging them directly. - Fixes #491.
2020-05-05openpgp: Change split_sigs' visability.Neal H. Walfield
2020-05-05openpgp: Don't export internal data structures.Neal H. Walfield
- Don't export CertValidity, KeyringValidator, KeyringValidity, or MessageValidity. - Fixes #490.
2020-05-05openpgp: Make sure the two User IDs are differentNeal H. Walfield
- Arbitrary could generate identical user ids, but we rely on the fact that they are different. Make sure that is the case.
2020-05-05openpgp: Fix spelling of keyring.Neal H. Walfield
- Keyring is spelt keyring, not key ring. - Cf. https://tools.ietf.org/html/rfc4880#section-3.6
2020-05-05openpgp: Improve ValidCert's documentation.Neal H. Walfield
- See #466.
2020-05-05openpgp: Move the "Common Operations" section closer to the frontNeal H. Walfield
- This will hopefully make it harder to overlook.
2020-04-30openpgp: Improve documentation of the parse module.Justus Winter
- See #471.
2020-04-30openpgp: Make Error implement Eq.Justus Winter
2020-04-30Extend READMEGerhard Bräunlich
2020-04-29openpgp: Fix Cert::revocation_keys.Neal H. Walfield
- Return revocation keys listed on any User ID's self signature in addition to those listed on direct key signatures.
2020-04-29openpgp: Fix ValidKeyAmalgamation::set_expiration_time's return typeNeal H. Walfield
- Change `ValidKeyAmalgamation::set_expiration_time` to return a `Result<Vec<Signature>>` instead of a `Result<Vec<Packet>>`.
2020-04-29openpgp: Reduce visibility of MessageValidator.Wiktor Kwapisiewicz
- Make MessageValidator `pub(crate)` instead of `pub`. - Move doctests into unit tests as doctests cannot access `pub(crate)` APIs. - Fixes #490.
2020-04-29openpgp: Reduce visibility of CertValidator.Wiktor Kwapisiewicz
- Make CertValidator `pub(crate)` instead of `pub`. - Remove unused methods. - Mark `push_token` as `#[cfg(test)]` as it is used only in tests.
2020-04-29openpgp: Re-add KeyID/Fingerprint::from/to_hex.Wiktor Kwapisiewicz
- Add KeyID::to_hex. - Add KeyID::from_hex. - Add Fingerprint::to_hex. - Add Fingerprint::from_hex. - Fixes #456.
2020-04-29openpgp: Change Cert::merge_packets to take an IntoIterator.Neal H. Walfield
- Change `Cert::merge_packets` to take an `IntoIterator` instead of a vector. - This change simplifies the most common case of passing in a single packet, and doesn't make the second most common case of passing in a vector of packets any more complicated.
2020-04-29openpgp: Implement IntoIterator for Packet, Signature, et al.Neal H. Walfield
- Implement `IntoIterator` for the `Packet` enum, and all of its variants. - Having this means we don't need to do something like `std::iter::once(p)` when we need an iterator over a packet.
2020-04-28openpgp: Simplify Cert::try_from conversions from packets.Wiktor Kwapisiewicz
- Convert Cert::try_from(PacketPile::from(packets)) into Cert::try_from(packets). - Fixes #496.
2020-04-28openpgp: Convert `Cert::from_packet_pile` into `TryFrom`Wiktor Kwapisiewicz
- Drop `Cert::from_packet_pile`. - Fixes #462.
2020-04-28openpgp: Fix tests.Justus Winter
- Fixes 3accc10973272de29f098c5db11951a122238d99. - Fixes #495.
2020-04-28openpgp: Rework Cert::revoke_in_place.Neal H. Walfield
- Rename `Cert::revoke_in_place` to `Cert::revoke`. - Return the revocation certificate; don't merge it. - Fixes #485.
2020-04-28openpgp: Rename Cert::revoked, etc. to revocation_statusNeal H. Walfield
- Rename `Cert::revoked`, `ValidCert::revoked`, `ValidAmalgamation::revoked`, and `ComponentBundle::revoked` to revocation_status to more accurately match what it does. - Don't rename `ValidComponentAmalgamationIter::revoked` or `ValidKeyAmalgamationIter::revoked`. They don't return the revocation status; they check whether the key is revoked.
2020-04-28openpgp: When extending the expiration, ignore revoked User IDsNeal H. Walfield
- When extending the expiration on the primary key, don't create a new binding signature for revoked User IDs. If the revocation is a soft revocation, then this will cause the User ID to become valid again.
2020-04-27openpgp: Fix tests when building without compression support.Justus Winter
- Fixes #495.
2020-04-26openpgp: Add conversion from Cert to Vec<Packet>.Neal H. Walfield
2020-04-26openpgp: Add conversion from Packet to Cert.Neal H. Walfield
2020-04-26openpgp: Add conversion from Vec<Packet> to Cert.Neal H. Walfield
2020-04-26openpgp: Add conversion function Cert::from_packets.Neal H. Walfield
- Add a function to convert a vector of `Packet`s to a `Cert`.
2020-04-26openpgp: Add a reference time to Cert::set_expiration_time.Neal H. Walfield
- Don't assume that the current binding signature should be used; include a reference time.
2020-04-26openpgp: Improve struct Cert's documentation.Neal H. Walfield
- See #466.
2020-04-23openpgp: Add doctests and fixes for docs to Message struct.Wiktor Kwapisiewicz
- Add Examples to all public functions. - Add example armored message to the header. - Fix wording. - Fixes #468.
2020-04-21openpgp: Rename signature::Builder to signature::SignatureBuilder.Wiktor Kwapisiewicz
- Rename all calls to `Builder` with `SignatureBuilder`. - Fixes #481.
2020-04-21sop: An implementation of the Stateless OpenPGP CLI using Sequoia.Justus Winter
- This adds a new frontend to Sequoia that implements the Stateless OpenPGP Command Line Interface. - Compared to sq, sop has a much smaller feature set and hence a smaller set of dependencies. It is less opinionated, and tries to faithfully implement the SOP protocol. We will use it to test Sequoia using the OpenPGP Interoperability Test Suite.
2020-04-21openpgp: Improve docs.Justus Winter
- We finalize the writer stack at the end of the streaming operation, but we build the filters using the builder pattern.
2020-04-21openpgp: Add Signer::with_template that takes a signature::Builder.Justus Winter
- This allows customization of the generated signatures.
2020-04-21sq: Use the new armoring filter.Justus Winter
2020-04-21sq: Rework recipient handling.Justus Winter
2020-04-21openpgp: Add a filter applying ASCII Armor to the streaming stack.Justus Winter
- Previously, when creating an armored message using the armor::Writer and the streaming serialization interface, one had to finalize both the writer stack and the armor writer, which is unergonomic, not obvious, and error prone. - This filter properly finalizes the armor writer when the writer stack is finalized. - Fixes #453.
2020-04-21openpgp: Improve reference.Justus Winter
2020-04-21openpgp: Add accessors for the inner writer to the armor::Writer.Justus Winter
2020-04-20openpgp: Add armor::Writer::with_headers.Justus Winter
- Add a new constructor that takes headers. This allows us to make the header argument polymorphic.
2020-04-20openpgp: Make armor::Writer's inner writer non-optional.Justus Winter
2020-04-20openpgp: Fix documentation.Justus Winter
2020-04-20openpgp: Don't finalize the armor::Writer in Drop.Justus Winter
- Previously, armor::Writer::drop made an effort to finalize the filter. This, however, is only a best-effort mechanism: It cannot report errors. - Because of this, we now believe that it actually exacerbates the problem of downstream users not finalizing the filter: It will work most of the time, but sometimes fail.