-
Notifications
You must be signed in to change notification settings - Fork 17
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
struct Ntlm
field session_key
never set to non-None
value
#349
Comments
Do you think you could take at look at this? @TheBestTvarynka |
Yep, let me handle it 😉 |
@malcolmstill here is my conclusion: The
It's not actually true. We store the session key when using
So, I'd consider it a small bug. We don't often use the |
Ah yes, I see now I spoke too generally, thanks for the correction and clarification! Do you have a preference for making the change yourselves vs me putting a PR in (I'm happy with whichever of those makes your lives easier)? |
We encourage external contributions. I'd be happy to review your PR 😊 |
Quick note from my side: I’m glad we are getting this kind of small bugs fixed now, because server-side IronRDP is using sspi-rs! Currently the main consumer is a QEMU project for an RDP Display server, but this is definitely aligned with our future priorities! |
struct Ntlm
has asession_key
field which isOption<[u8; SESSION_KEY_SIZE]>
:sspi-rs/src/ntlm/mod.rs
Lines 85 to 94 in a8272f7
In all cases this field seems to be initialised with the value
None
. However, I don't see anywhere in the code where this is set to a non-None
value. As such the getter for thesession_key
field always returnsNone
:sspi-rs/src/ntlm/mod.rs
Lines 214 to 216 in a8272f7
It looks like the place where this should be set is:
sspi-rs/src/ntlm/messages/server/complete_authenticate.rs
Lines 36 to 58 in a8272f7
E.g. a
context.session_key = Some(session_key);
line before, say, line 55context.state = NtlmState::Final;
The text was updated successfully, but these errors were encountered: