-
-
Notifications
You must be signed in to change notification settings - Fork 2
ssh-userauth implementation #87
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
base: main
Are you sure you want to change the base?
Conversation
074bf79 to
fd50019
Compare
| mod proto; | ||
| use proto::{read, Decode, Decoded, Encode, ReadState}; | ||
| mod service; | ||
| mod userauth; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: should be called user_auth.
| Error, | ||
| }; | ||
|
|
||
| pub(crate) struct SshUserauth { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: drop the Ssh prefix, spell as UserAuth.
| } | ||
|
|
||
| #[expect(unused)] | ||
| pub(crate) fn poll_complete<S: Service>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the callback design?
| } | ||
| } | ||
|
|
||
| impl Service for SshUserauth { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is too much stuff in this commit, suggest splitting it up into smaller steps.
fd50019 to
322d058
Compare
83873ae to
27d523f
Compare
This does not yet implement proper handling of sequence numbers. That is a fairly significant refactor which should be done as part of the patches for the encryption/decryption channels.
This makes the packet type available on all messages, simplifying error handling downstream as it no longer needs to deal with the anomalous case of a completely empty packet.
27d523f to
986df04
Compare
Builds on the work in #85, uses the design from #81