Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pageant: Implement NamedPipes-based stream #472

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amtelekom
Copy link
Contributor

@amtelekom amtelekom commented Feb 21, 2025

Adds an implementation of the newer NamedPipes-based access to the Pageant Stream.

Right now, it can be switched to via feature, i.e. the binary crate imports

pageant = { version = "0.0.3", features = ["namedpipes"] }

to enable it.

While the original client has some backwards-compatibility for very old Windows versions (the comments in some of the called code speak of Win9x and XP SP2), I've just implemented the primary path, which should work on all platforms the current MSRV supports (7+).

This is a breaking change both on the API-Surface of the Pageant crate (new needs to be async + have error handling), as well as in russh (also to introduce a Result return type).

Alternatively to this implementation, we could also just offer the generation of the Named-Pipe path in this crate and let users create a NamedPipe-Backed agent using the existing code in Russh, although this version seemed more comfortable to me.

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.

1 participant