Commit Graph

388 Commits

Author SHA1 Message Date
Neal H. Walfield
0d1da78356
Add a framework to format and test examples.
- The `--help` output for most subcommands includes one or more
    examples.

  - We should test these, like we test everything else.

  - Add a framework to format, and test the examples.

  - Fixes #190.

  - Also, fix some broken examples.
2024-02-09 18:08:09 +01:00
Justus Winter
825f4463de
Wrap human-readable pki output. 2024-02-08 16:23:19 +01:00
Justus Winter
8be8e04ae6
Simplify imports. 2024-02-08 14:07:46 +01:00
Justus Winter
26889b7ec2
Refactor caching of wrapping options. 2024-02-08 14:07:06 +01:00
Justus Winter
913513d2a5
Add constant for a non-breaking space. 2024-02-08 14:06:11 +01:00
Justus Winter
152be8cdc7
Support dumping multiple armor blocks in one stream.
- Fixes #41.
2024-02-08 12:36:04 +01:00
Justus Winter
9f8c6dbeff
Support inspecting multiple armor blocks in one stream.
- See #41.
2024-02-08 12:36:04 +01:00
Justus Winter
003abd46ed
Drop unused import. 2024-02-08 12:36:04 +01:00
Justus Winter
7362d3c8f0
Fix hint. 2024-02-08 12:36:04 +01:00
Justus Winter
2c319b6acb
Don't leak passwords into the process table.
- Remove the offending argument.  Without it, the linter will ask
    for passwords on the tty, aligning it with the rest of sq.
    Programmatic input of passwords is an open question, see #140.

  - Fixes #168.
2024-02-08 12:36:04 +01:00
Andriy Utkin
75559ac24c
Fix the hint message to use "sq pki link add FINGERPRINT" 2024-02-07 12:33:43 +01:00
Justus Winter
67d9c3c05e
Update iana-time-zone to avoid yanked crate. 2024-02-07 12:33:13 +01:00
Justus Winter
4105751001
Show when a revocation was issued.
- Fixes #8.
2024-02-07 12:19:06 +01:00
Justus Winter
d022a2350d
Deduplicate code. 2024-02-07 12:19:06 +01:00
Justus Winter
1259f0c237
Drop the compression-bzip2 feature, making compression mandatory.
- Fixes #42.  See #137.
2024-02-07 12:19:06 +01:00
Justus Winter
56aee171ca
Allow empty prefixes when splitting packets.
- Fixes dccae021.

  - Fixes #172.
2024-02-07 11:06:32 +01:00
Justus Winter
1e7f68a048
Escape literal data's file name when dumping packets.
- Fixes #176.
2024-02-07 10:59:43 +01:00
Justus Winter
4916eb589a
Avoid deprecated functionality. 2024-01-29 19:48:51 +01:00
Justus Winter
2bae7c8c30
Turn Autocrypt Gossip into PKI artifacts when importing. 2024-01-29 19:48:51 +01:00
Justus Winter
d2600790e6
Track the inner-most encryption layer when decrypting. 2024-01-29 19:07:14 +01:00
Justus Winter
cf39ba74d8
Make decryption and verification helpers public, add quiet mode. 2024-01-29 19:07:14 +01:00
Justus Winter
ab9c3bf875
Refactor autocrypt commands. 2024-01-29 19:07:14 +01:00
Neal H. Walfield
c45686c4da
Use sequoia-cert-store to manage shadow CAs.
- As of 0.4.1, sequoia-cert-store includes (better versions of)
    shadow CA functionality.

  - Prefer it.
2024-01-29 19:07:14 +01:00
Neal H. Walfield
1bb215e67f
Use certd's new interfaces to lookup special names. 2024-01-29 18:59:15 +01:00
Justus Winter
b8cb988182
Make sq packet join join concatenated armored blocks.
- Fixes #51.
2024-01-29 18:53:22 +01:00
Justus Winter
35fcfc29ae
Make sq packet split emit armored data by default, add --binary.
- This aligns the subcommand with the others which emit armored data
    by default.

  - If --binary is given, require the user to provide a prefix.
    Previously, we used the input file name as prefix, and falling
    back to a static prefix.  However, this leads to surprising
    results, such as writing the shards to a surprising location or
    clobbering existing data.

  - If neither --binary nor --prefix is given, a single stream with
    multiple armor blocks is emitted.  Currently, sq packet join can
    not operate on this, we'll fix that shortly.

  - See #51.
2024-01-29 18:53:22 +01:00
Justus Winter
a8110e1229
Update to sequoia-openpgp 1.18. 2024-01-29 18:52:02 +01:00
Justus Winter
0b368533c5
Fix Dockerfile.
- First, update to Debian Trixie.  Second, set CARGO_TARGET_DIR to a
    fresh directory in /tmp, as the one in the source copy might be
    clobbered by a symlink.
2024-01-22 12:33:12 +01:00
Justus Winter
7e6d0468eb
ci: Fix testing feature combinations.
- First, the autocrypt feature has been removed in
    86f599542c.

  - Second, cargo now considers it an error to give an empty string to
    --features.
2024-01-22 12:33:12 +01:00
Neal H. Walfield
043083a789
Upgrade smallvec.
- `smallvec` was yanked, due to a dependency bug in 1.13.0.  See:

    https://github.com/servo/rust-smallvec/commits/v1.13.1

  - Upgrade `smallvec` to the latest version.
2024-01-22 10:15:16 +01:00
Neal H. Walfield
be1f8a2ff5
Upgrade shlex.
- shlex has a number of security issues, as per the advisory:

    https://rustsec.org/advisories/RUSTSEC-2024-0006

  - Upgrade shlex to the latest version to resolve the issues.
2024-01-22 10:04:33 +01:00
Justus Winter
195ef2bf9b
Release 0.33.0. 2024-01-19 14:39:35 +01:00
Justus Winter
83f92ef064
Allow updating textwrap to 0.16.
- Don't actually update, as other dependencies are still on 0.15.
2024-01-19 14:39:29 +01:00
Justus Winter
1d92282aa2
Bump all dependencies. 2024-01-19 14:39:29 +01:00
Justus Winter
50ded9a469
Improve build and installation instructions. 2024-01-19 14:13:14 +01:00
Justus Winter
7866605750
Update NEWS. 2024-01-19 14:06:24 +01:00
Justus Winter
40041c5885
Fix markup. 2024-01-19 13:23:54 +01:00
Justus Winter
23ad94c9f8
Update h2 to fix RUSTSEC-2024-0003. 2024-01-19 13:19:31 +01:00
Justus Winter
4a236421da
Implement sq version, drop --version, move output-version there. 2024-01-19 12:55:13 +01:00
Justus Winter
5e2c6da79c
Add sq toolbox, move the armor and packet subcommands there. 2024-01-19 11:54:48 +01:00
Justus Winter
b7ef68ca35
Move sq import and export to sq cert. 2024-01-19 11:24:21 +01:00
Justus Winter
9394f6292d
Improve rendering of the user interface guidelines in API docs. 2024-01-17 14:40:55 +01:00
Justus Winter
10fd523fc4
Move sq inspect up, add guidance for subcommand order and structure. 2024-01-17 14:40:55 +01:00
Justus Winter
e2977a7a23
Respect NO_COLOR environment variable when linting certs. 2024-01-17 14:40:55 +01:00
Justus Winter
5e949ed638
Reset the color after printing GOOD or BAD when linting certs. 2024-01-17 14:40:55 +01:00
Justus Winter
b6893634d5
Add a workaround so that the UI guidelines are rendered by rustdoc. 2024-01-17 14:40:55 +01:00
Justus Winter
ce91bd73bd
Copy edit documentation and examples for sq pki link.
- Fixes #122.
2024-01-17 14:40:55 +01:00
Justus Winter
9ae84305c0
Work around a bug in the roff crate fixing apostrophes in man pages.
- See https://github.com/rust-cli/roff-rs/issues/38
2024-01-17 14:40:55 +01:00
Justus Winter
b5a7d15710
Move sq link to sq pki. 2024-01-17 14:40:55 +01:00
Justus Winter
47bab9c59f
Align spelling of Web of Trust. 2024-01-17 14:40:55 +01:00