summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2022-01-20sq: Implement sq revoke subkey.Neal H. Walfield
2022-01-20sq: Remove redundant predicate.Neal H. Walfield
- `str::starts_with` already checks that the string is not empty. Don't first check that the string is not empty.
2022-01-20sq: Improve sq revoke's error messages.Neal H. Walfield
- There may be a valid key, but not at the specified time. When no key is found and a time stamp is given, add a diagnostic that this might be the problem.
2022-01-20sq: Implement sq revoke userid.Neal H. Walfield
- Generalize the existing code to handle revoking both certificates and User IDs.
2022-01-20sq: Move revoke's argument parsing into the dispatch function.Neal H. Walfield
2022-01-20sq: Generalize cert_stub.Neal H. Walfield
- Generate `cert_stub` to optionally take a User ID. If a User ID is specified emit that instead of the primary User ID.
2022-01-20sq: Move revocation subcommand dispatch to the revoke module.Neal H. Walfield
2022-01-20sq: add scenarios for encrypt/decrypt/sign/verify/certifyLars Wirzenius
Also, tidy up some older stuff a bit. Sponsored-by: NLnet Foundation; NGI Assure; European Commission
2022-01-19sq: add scenarios to verify signing dataLars Wirzenius
Sponsored-by: NLnet Foundation; NGI Assure; European Commission
2022-01-19sq: add verification scenarios for encryption and decryptionLars Wirzenius
Sponsored-by: NLnet Foundation; NGI Assure; European Commission
2022-01-19openpgp: Fix crashes in the cleartext signature parser.Justus Winter
2022-01-19openpgp: Fix documentation.Justus Winter
2022-01-19sq: add verification scenarios for armor/dearmorLars Wirzenius
Sponsored-by: NLnet Foundation; NGI Assure; European Commission
2022-01-19sq: add placeholder scenario for "sq keyring split"Lars Wirzenius
Sponsored-by: NLnet Foundation; NGI Assure; European Commission
2022-01-19sq: verify that "sq keyring filter" worksLars Wirzenius
Sponsored-by: NLnet Foundation; NGI Assure; European Commission
2022-01-17sq: add test scenarios for "sq keyring"Lars Wirzenius
Sponsored-by: NLnet Foundation; NGI Assure; European Commission
2022-01-17sq: move all "sq key" scenarios under a common headingLars Wirzenius
Sponsored-by: NLnet Foundation; NGI Assure; European Commission
2022-01-17readme: Remove ffi and python bindings.Nora Widdecke
Closes #799
2022-01-17docker: Mention in README.md.Nora Widdecke
2022-01-17docker: Remove python dependencies.Nora Widdecke
2022-01-17docker: Build image and push to gitlab registry.Nora Widdecke
2022-01-14test: verify "sq key extract-cert"Lars Wirzenius
Sponsored-by: NLnet Foundation; NGI Assure; European Commission
2022-01-14sq: Improve sq inspect's output for revocation certificates.Neal H. Walfield
- Show the revocation certificate's human-readable revocation message, if any. - If the revocation certificate is a third-party revocation, then also show the first issuer.
2022-01-14sq: Make sq certify work with password-protected keys.Neal H. Walfield
- Use `get_certification_keys` to get the certification key. This also unlocks the key, if needed. Fixes #776. - Add `--private-key-store` as an option to also work with keys stored on a PKS.
2022-01-14test: verify more aspects of key generationLars Wirzenius
Verify more aspects of how sq generates keys. The scenarios now cover all ways of running "sq key generate". Sponsored-by: NLnet Foundation; NGI Assure; European Commission
2022-01-14docs: add section on the testing approach for sqLars Wirzenius
Sponsored-by: NLnet Foundation; NGI Assure; European Commission
2022-01-14sq: Implement sq revoke certificate.Neal H. Walfield
- Add support for revoking certificates to sq.
2022-01-13sq: Refactor helper function.Neal H. Walfield
- Generalize get_signing_keys to lookup other types of keys. - Rename it to get_keys, take a `KeyFlags` parameter, and implement get_signing_keys in terms of get_keys.
2022-01-13sq: Change function to also take a reference.Neal H. Walfield
- Change `get_signing_keys` to also take a `&Cert`, not just a `Cert`, by making it polymorphic over the element type. Specifically, change it to take a `Borrow<Cert>` instead of a `Cert`.
2022-01-12Disable a number of clippy's lints.Neal H. Walfield
- clippy::collapsible-else-if: Warns about: if x { if y { } else { } } else { if y { } else { } } But, this can express the intent of the code better than the version that clippy prefers: if x { if y { } else { } } else if y { } else { } - clippy::needless-question-mark, clippy::try-err: While clippy is right that the ? could sometimes be replaced with a return, using a ? also does a conversion (`From`). So to allow global consistency, permit this construct. - clippy::redundant-clone: Clippy warns that the last use of a variable doesn't have to be cloned. This is true, but can make use of a variable in a function inconsistent. Also, if an additional case that uses the variable is added later, a `.clone()` may have to be added anyway.
2022-01-12ci: DRY out .gitlab-ci.yml.Neal H. Walfield
- Move common functionality in before_script and after_script code to separate stanzas.
2022-01-12ci: Set flags in .cargo/config.toml, not in .gitlab-ci.yml.Neal H. Walfield
- Setting complication flags in .gitlab-ci.yml means that they will only be used by the CI. - Instead, set flags in .cargo/config.toml so that compiling locally will use the same set of lints.
2022-01-12net: Fix link.Neal H. Walfield
- Detected by the rustdoc::bare-urls lint.
2022-01-12buffered-reader, ipc: Fix documentation typo.Neal H. Walfield
2022-01-11openpgp: Add convenience Decryptor implementations for Box.Wiktor Kwapisiewicz
- Currently Signer has default implementations for Box and Box + Send + Sync. - Add similar default implementations for Decryptor.
2022-01-10openpgp: Generalize test.Justus Winter
2022-01-10openpgp: Remove redundant cipher op parameter.Justus Winter
- The decryptor only decrypts, the encryptor only encrypts. No need to have that parameter (in fact, having the parameter presents the opportunity to get it wrong, see the previous commit).
2022-01-10openpgp: Fix typo.Justus Winter
- This only went unnoticed because we only hash and write the digest, and don't invoke the encrypt method (which would have panic'ed). No functional change.
2022-01-10openpgp: Deduplicate code parsing fingerprints.Justus Winter
2022-01-10pks: Fix "capability" parameter not being appended.Wiktor Kwapisiewicz
- Previous refactoring inadvertently broke capability URL construction. - Fix the bug by moving `append_pair` after `join`. - Add test cases to capability URL construction code.
2022-01-06openpgp: Generalize test to all curves.Justus Winter
2022-01-06openpgp: Improve documentation.Justus Winter
2022-01-06openpgp: Exhaustively handle curves in MPI::decode_point_common.Justus Winter
2022-01-06openpgp: Improve S2K::is_supported.Justus Winter
- Use exhaustive match.
2022-01-03ipc: Fix crate documentation.Alexander Kjäll
- The documentation link seems to be hardcoded to the 0.25.0 version, that doesn't exist on the server. Replaced it with a working link.
2022-01-03sq: Add missing test vectors.Justus Winter
- Previously, the tests for sq sign used test vectors from the openpgp crate. But, those are not bundled with the sq crate, breaking the test when using the crate's source tarball. - Fixes #787.
2022-01-03sq: Fix LICENSE.txt.Justus Winter
- The sq frontend is still licensed under the GPL2+. Replace the symlink to the top-level LICENSE.txt with a copy of the GPL2.
2021-12-31pks: Use appropriate Error objects instead of raw strings.Wiktor Kwapisiewicz
2021-12-31pks: Return correct acceptable hashes for the remote signer.Wiktor Kwapisiewicz
2021-12-31openpgp: Add ability to restrict hash algorithms for signing.Wiktor Kwapisiewicz