Skip to content

Update to pgp and RustCrypto (ssh-key, etc.) pre-release APIs#97

Draft
overhacked wants to merge 2 commits intowiktor-k:mainfrom
overhacked:overhacked/rustcrypto-pgp-prereleases
Draft

Update to pgp and RustCrypto (ssh-key, etc.) pre-release APIs#97
overhacked wants to merge 2 commits intowiktor-k:mainfrom
overhacked:overhacked/rustcrypto-pgp-prereleases

Conversation

@overhacked
Copy link
Collaborator

NOTE: If the pgp crate or any RustCrypto crate APIs change before their next release, this pull request will need to be modified.

NOTE: This PR will not compile without modifying Cargo.toml to use path dependencies to vendor the below-noted, unreleased changes to pgp. Currently the RustCrypto crates are pushing pre-releases to crates.io, so path dependencies are not required for ssh-key, etc.

The pgp crate hasn't yet released a version compatible with upcoming RustCrypto 0.9.x (currently in pre-release). These changes are compatible with pgp crate API changes as well as pending pull requests rpgp/rpgp#573 and rpgp/rpgp#705. This commit has been tested against a merge of pgp main (as of rpgp/rpgp@21b56ad) and the above pull requests.

This pull request includes the dependency updates from #96.

Incomplete work. `cargo test --lib --tests` works, but
`cargo test --examples` won't compile, mostly because `pgp` crate
dependencies don't get along with crypto pre-releases, yet.

Signed-off-by: Ross Williams <ross@ross-williams.net>
The `pgp` crate hasn't yet released a version compatible with upcoming
RustCrypto >0.9.x (currently in pre-release). These changes are
compatible with `pgp` crate API changes as well as pending pull requests
rpgp/rpgp#573 and rpgp/rpgp#705. This commit has been tested against a
merge of `pgp` main (as of rpgp/rpgp@21b56ad) and the above pull
requests. If the `pgp` crate API changes before its next release, this
commit will need to be modified.

Signed-off-by: Ross Williams <ross@ross-williams.net>
@nadzyah
Copy link

nadzyah commented Feb 24, 2026

I'm packaging this crate for Debian and also need the pgp dependency to be updated, so thanks for your work!

@wiktor-k
Copy link
Owner

After thinking about it for a while it seems the pgp dependency, as used in the example, is proving a bit more trouble than necessary.

I'd be OK with dropping that example. Updates to other deps seem more straightforward so we could merge them in.

What do you think about it @overhacked ? (I don't want to drop your hard work if it can still be salvaged)

@overhacked
Copy link
Collaborator Author

I'm inclined to agree with you, for simplicity's sake. I did have quite the adventure adapting to the new rpgp APIs but I'd be fine chalking that up as a learning experience, because I think ssh-agent-lib would be more maintainable without the pgp example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants