summaryrefslogtreecommitdiffstats
path: root/sq
AgeCommit message (Collapse)Author
2022-06-22sq: make use of sed in subplot more portableLars Wirzenius
Sponsored-by: pep.foundation
2022-06-17sq: Handle session keys with algorithm prefix.Nora Widdecke
- `sq packet dump` was unable to parse session keys with an algorithm indicator, the format established by GnuPG and SOP. - `sq` should parse such session keys, and use them only with the specified algorithm. - Fixes #749.
2022-06-17sq: Improve error message for --session-key.Nora Widdecke
- Add context to error if parsing the `--session key` argument to `sq packet dump` failed.
2022-06-14sq: Allow creating a certification with an expired or revoke keyNeal H. Walfield
- Add two new options to `sq certify`: `allow-not-alive-certifier` and `allow-revoked-certifier`. - If present, don't fail if the certifying key is not alive or revoked, respectively.
2022-06-13sq: fix up help text for "sq wkd generate" based on further feedbackLars Wirzenius
Sponsored-by: pep.foundation
2022-06-12sq: improve help text for "sq wkd generate"Lars Wirzenius
Fixes #393 Sponsored-by: pep.foundation
2022-06-12sq: fix how "sq wkd generate" gets its argumentsLars Wirzenius
In clap v3, when we use the derive feature to build a parser, and an argument is named `foo_bar` in the source (member of a struct), the parser names it `foo-bar` at runtime. In clap v2, getting the value with the wrong name returned a None value. In clap v3, it's a panic. Fix the calls to value_of and is_present to use the expected names to avoid panics. Later on, we'll finish the conversion to use the clap v3 derive feature fully, and access struct field by their Rust names. At that point, using the wrong name will be a compile time error, not a runtime problem. Sponsored-by: pep.foundation
2022-06-12sq: add "sq wkd direct-url" and subplot tests for wkd URL generationLars Wirzenius
Fixes #315, #513 Sponsored-by: pep.foundation
2022-06-10sq: Improve --prefix help.Nora Widdecke
2022-06-10sq: Add actual short about to sq wkd generate.Nora Widdecke
2022-06-10sq: add README.mdLars Wirzenius
Closes #129. Sponsored-by: pep.foundation
2022-06-09openpgp: Rename PacketParser::{set_,}encrypted to processed.Wiktor Kwapisiewicz
- Convert `encrypted` to `processed`. - Since `set_encrypted` is internal API it was directly renamed without forwarder stub. - `encrypted()` is public API thus the old function is converted to a forwarder of the negation of `processed()`. - `unprocessed()` marked as deprecated. - Update docs and NEWS file. - Fixes #845.
2022-06-09sq: Fix autocrypt conditional compilation.Nora Widdecke
2022-06-08sq: Reflow text for sq revoke.Nora Widdecke
- Closes #868.
2022-06-08sq: Undo change MESSAGE parameter help.Nora Widdecke
- In 207d4ba7, the text was changed by mistake.
2022-06-08sq: Remove leading newlines.Nora Widdecke
2022-06-08sq: Derive decrypt subcommand.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Derive encrypt subcommand.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Derive inspect subcommand.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Derive key subcommand.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Derive keyring subcommand.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Derive certify subcommand.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Derive packet subcommand.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Derive revoke subcommand.Nora Widdecke
- The changes in sq_usage.rs are formatting fixes. I avoided the additional effort of preserving formatting issues for the sake of exact equivalence. - This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Derive keyserver subcommand.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Derive wkd subcommand.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Adapt autocrypt command to clap3's derive.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Derive autocrypt subcommand.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Make input and output arguments reusable.Nora Widdecke
- Extract input and output arguments, including help texts, so they can be easily reused by other sq subcommands. - This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Adapt sign command to clap3's derive style.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Derive sign subcommand.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Adapt dearmor command to clap3's derive style.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Adapt verify command to clap3's derive style.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Derive verify subcommand.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Add some todos.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Adapt armor subcommand to clap3's derive style.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Derive dearmor subcommand.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Derive armor subcommand.Nora Widdecke
- This is part of the effort of moving to clap3's derive API and profit from the added type safety.
2022-06-08sq: Fix typo.Nora Widdecke
2022-06-08sq: Fix typo.Nora Widdecke
2022-06-08openpgp: Make PublicKeyAlgorithm descriptions shorter.Wiktor Kwapisiewicz
- Make the previously long description available using the "alternate" (#) format specifier. - Make the default description short. - Update subplot tests to use short algorithm names. - Fixes #803.
2022-06-08sq: Make sq keyring split gracefully handle v3 certs.Justus Winter
2022-06-08sq: Gracefully handle malformed certs in keyring list.Justus Winter
- Fixes #834.
2022-05-16sq: Add logging for shell completions.Nora Widdecke
- Output a cargo:warning with paths for generated shell completion files, or a warning if generation failed.
2022-05-16sq: Port command line handling from clap 2 to 3.Nora Widdecke
Change sq command line handling from using clap version 2 to version 3, and adapt to all the breaking changes. Clap version 3 is a major new version with a number of breaking changes. It also adds functionality to allow a structopt style declarative way of defining command line syntax. We want to use that, but first we need to port the old "builder style" of defining the command line syntax to clap version 3. The change to use the "derive style" comes later. The semantics of clap version 2's .multiple function were hard to understand and it was replaced with .multiple_occurences. Care was taken to preserve the original intention regarding an argument's number of occurrences and number of values. There are some changes to help output (in src/sq-usage.rs). These are mostly from upstream changes and we think the differences are minor so we are okay with following upstream's lead. In summary: FLAGS and OPTIONS are merged into just OPTIONS; the layout of subcommand lists are a little different (split into two lines); there is no "[--]" before filename arguments anymore; default and allowed values for options are on a separate line now; --version isn't repeated for every subcommand anymore; help is listed for each subcommand separately. In addition, we will help clap upstream fix a problem where the help output doesn't have a "..." to indicate that an option may be used several times. Further, upstream has changed --help text to be of the form "Print help", when it earlier was "Prints help". We will change our own help texts to follow suite in a future commit. We don't do it in this commit, to avoid making an even larger diff. By default, clap v3 now colors its help output. However, this does not support custom sections like our examples. Clap is tracking this as https://github.com/clap-rs/clap/issues/3108. In the meantime, disable colors.
2022-05-13sq: Fix subplot scenario.Nora Widdecke
- The subplot scenario "File is signed with all required keys" has a mistake, it uses a wrong argument, `--signer-key` instead of `--signer-cert`. - The issue was hidden, as the command was expected to fail with exit code 1, coincidentally the same exit code that clap 2 uses for usage errors. Clap 3 exits with 2 instead of 1, so now the test failed. - Fix the wrong argument.
2022-05-13sq: Do not try to use non-existent argument.Nora Widdecke
2022-05-11sq: Add the cryptographic backend to the version string.Justus Winter
2022-05-06sq: Add scenarios for auth-capable key generation.Nora Widdecke
- And update the other key generation scenarios to handle authentication-capable subkeys.
2022-05-06sq: Add option to generate an auth-capable subkey.Nora Widdecke
- Generate an authentication-capable subkey by default. - Add the flags `--can-authenticate` and `--cannot-authenticate` to sq key generate, analogous to `--can{not}-sign`. - Closes #844.