summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2022-06-29sq: Adapt packet decrypt to clap3's derive API.Nora Widdecke
2022-06-29sq: Print CliSessionKey session key securely.Nora Widdecke
- Printing a SessionKey requires explicit use of display_sensitive function, to prevent accidental leaks.
2022-06-29sq: Add sq decrypt --session-key.Nora Widdecke
- Allow multiple session keys, try all of them until one decrypts the message. - Closes #858.
2022-06-29sq: Adapt decrypt to clap3's derive.Nora Widdecke
2022-06-29sq: Add a utility function to return the primary key.Neal H. Walfield
- We have utility functions to return certification-capable keys and signature-capable keys. Add another variant that returns primary keys. This is needed when we need a key to create a self signature.
2022-06-27openpgp: Make Cert::insert_packets_merge take a FnMut.Justus Winter
- This way, the callback can have side-effects.
2022-06-27ci: Run the after_script in more jobs.Justus Winter
- It is harmless and quick, should degrade gracefully, and may print useful information, now or in the future. It shouldn't be disabled lightly.
2022-06-27ci: Drop the build-* jobs.Justus Winter
- These tests used to cargo build the source, without running any tests. I don't see any benefit of doing that.
2022-06-27ci: Don't run shell fragments using Powershell.Justus Winter
2022-06-27ci: Don't depend on the codespell job.Justus Winter
- They already are implicitly dependent on the codespell job because the codespell job runs in the pre-check phase, and the other jobs in the build phase.
2022-06-27ci: Rename MinGW jobs, pipeline them.Justus Winter
- Previously, the one job first tested all (!) Sequoia crates with the Nettle backend, then tested sequoia-openpgp with the CNG backend. This is one reason why the job took so long. Split it up. - Rename to platform-toolchain-cryptobackend. - Depend on the main configuration for better short-circuiting.
2022-06-27ci: Rename MSVC jobs, pipeline them.Justus Winter
- Rename to platform-toolchain-cryptobackend. - Depend on the main configuration for better short-circuiting.
2022-06-22sq: make use of sed in subplot more portableLars Wirzenius
Sponsored-by: pep.foundation
2022-06-20ipc: Improve error handling when importing keys.Justus Winter
2022-06-20ipc: Improve assertion message.Justus Winter
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-15openpgp: Fix typo.Justus Winter
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-14openpgp: Add a subkey builder.Neal H. Walfield
- Add `KeyBuilder` and `SubkeyBuilder` for creating a key, and attaching a subkey to a certificate. - See #483.
2022-06-14openpgp: Add Cert::insert_packets2 and Cert::insert_packets_merge.Justus Winter
- Cert::insert_packets2 is a variant of Cert::insert_packets that returns whether the certificate actually changed. Fixes #528. - Cert::insert_packets_merge is a variant of Cert::insert_packets2 that allows one to control how duplicate packets are handled. Fixes #494.
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-12net: fix WKD URL generationLars Wirzenius
In WKD, when a URL is generated for an email, the local part is added to the URL as a query parameter exactly as it's in the input. Sequoia was previously converting it to lower case. This fixes it to avoid the change. However, the local part still needs to be converted to lower case for hash computation, so we do that when we compute the hash. Fixes #874 Sponsored-by: pep.foundation
2022-06-10openpgp: Add docs to PublicKeyAlgorithm's Display impl.Wiktor Kwapisiewicz
- Adjust the attribute to reduce the number of #[allow]s.
2022-06-10openpgp: Provide short names for AEADAlgorithm.Wiktor Kwapisiewicz
- Long names are still supported using the alternate format specifier. - Update NEWS file. - Fixes #803.
2022-06-10openpgp: Provide short names for SymmetricAlgorithm.Wiktor Kwapisiewicz
- Long names are still supported using the alternate format specifier.
2022-06-10openpgp: Provide short curve names by default.Wiktor Kwapisiewicz
- Leave long names as alternate format.
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-09ipc: Use full names when referencing external types from public APINeal H. Walfield
- Improve the readability of the generated documentation, by using the full name of external types in public API.
2022-06-09ipc: Make sure the socket is non-blocking.Neal H. Walfield
- When using tokio 1, the socket needs to be non-blocking otherwise the server hangs.
2022-06-09ipc: Update to the latest versions of capnproto and tokio.Neal H. Walfield
- Use the latest versions of capnp and tokio. - The ipc crate exposes capnp and tokio symbols via its public API (sequoia_ipc::Handler). Thus any user of the ipc crate has to use the same version. Upgrade the dependencies so that downstream users can use the latest features.
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-09openpgp: Deprecate DataFormat::MIMEWiktor Kwapisiewicz
- Deprecate the enum variant in preparation for v2 removal to let API clients adjust their code as early as possible. - Update NEWS. - See #863.
2022-06-09openpgp: Fix armor::Reader::from_reader documentation.Wiktor Kwapisiewicz
- The documentation got out of sync with ReaderMode. - Describe various available modes in terms of ReaderMode. - Fixes #847.
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.