summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/revoke.rs
AgeCommit message (Collapse)Author
2020-06-29openpgp: Don't unnecessarily set signature subpackets.Neal H. Walfield
- When using the `SignatureBuilder`, the signature creation time and issuer subpackets will be correctly set by default. - Don't do it explicitly.
2020-06-08openpgp: Introduce feature flag for quickcheck.Nora Widdecke
- 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.
2020-05-15openpgp: Document cert::revokeNeal H. Walfield
- Improve documentation for public data structures and public methods in `cert::revoke`. - See #466.
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-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-21openpgp: Rename signature::Builder to signature::SignatureBuilder.Wiktor Kwapisiewicz
- Rename all calls to `Builder` with `SignatureBuilder`. - Fixes #481.
2020-04-07openpgp: Simplify some default time unwrappingIgor Matuszewski
2020-04-03Change function names to align to Rust naming conventions.Wiktor Kwapisiewicz
- Change `mark_parts_public` to `parts_into_public`, - Change `mark_parts_public_ref` to `parts_as_public`, - Change `mark_parts_secret` to `parts_into_secret`, - Change `mark_parts_secret_ref` to `parts_as_secret`, - Change `mark_parts_unspecified` to `parts_into_unspecified`, - Change `mark_parts_unspecified_ref` to `parts_as_unspecified`, - Fixes #452.
2020-02-26openpgp: Add a prelude file to import things related to certificatesNeal H. Walfield
- Add `openpgp/src/cert/prelude.rs` to import most types and traits related to certificates. - Use it instead of using the types and traits individually.
2020-02-20openpgp: Rename the Amalgamation trait to ValidAmalgamation.Neal H. Walfield
- The Amalgamation trait only applies to ValidComponents. Rename it accordingly.
2020-02-19openpgp: Move RevocationStatus to module types.Justus Winter
2020-02-06openpgp: Rename methods 'set_policy' to 'with_policy'.Justus Winter
- Fixes #427.
2020-01-31openpgp: Add a policy object.Neal H. Walfield
- Change all functions that need to evaluate the validity of a signature (either directly or indirectly to take a policy object. - Use the policy object to allow the user to place additional constraints on a signature's validity. - This addresses the first half of #274 (it introduces the policy object, but does not yet implement any policy).
2020-01-24openpgp: Introduce trait Amalgamation.Justus Winter
- First, we implement it for ValidComponentAmalgamation.
2020-01-21openpgp: Split ConponentAmalgamation.Justus Winter
2020-01-21openpgp: Rename Cert::primary to Cert::primary_key.Justus Winter
2020-01-21openpgp: Avoid use of Cert::primary_key.Justus Winter
2020-01-21openpgp: Rename Cert::primary to Cert::primary_key.Neal H. Walfield
2020-01-20openpgp: Use the new framework for Cert::userid.Justus Winter
- Fixes #414.
2020-01-20openpgp: New lookup interface for user attributes.Justus Winter
- Makes Cert::user_attributes behave like Cert::keys. By default, naked &UserAttributes are returned. ComponentIter::policy(t) changes the iterator to return the new ComponentAmalgamation type. Finally, ComponentIter::components() returns all component bindings like Cert::user_attributes() used to do. - The same abstractions can be used for Cert::userids later. - See #414.
2020-01-18openpgp: Add KeyIter::{components,subkeys}, make subkeys() private.Justus Winter
- See #414.
2020-01-08openpgp: Remove creation time argument from *::bind.Justus Winter
- This can already be achieved by customizing the signature builder, and by default the signature builder uses the current time.
2019-12-18openpgp: Make functions polymorphic over key parts if appropriate.Justus Winter
2019-12-06openpgp: Rename signature types.Justus Winter
- This aligns our terminology with that of the RFC.
2019-12-05openpgp: Make crypto::{Signer,Decryptor} non-polymorphic.Justus Winter
- These are low-level cryptographic traits that are not concerned with the role of a key. - Fixes #382.
2019-12-04openpgp: Refine CertBuilder::add_encryption_subkey.Justus Winter
2019-12-03openpgp: Drop algorithm argument from signature::Builder::sign_hash.Justus Winter
- The hash context knows the algorithm.
2019-12-03openpgp: Remove all calls to Time::canonicalize.Justus Winter
- Now that we store timestamps in OpenPGP's native encoding, the canonicalization happens when converting to it.
2019-11-28Call TPKs Certificates, update identifiers, documentation.Justus Winter
- Fixes #387.