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

fix logic in transport test server #10

Merged
merged 1 commit into from
Oct 23, 2023
Merged

Conversation

efd6
Copy link
Contributor

@efd6 efd6 commented Oct 23, 2023

The challenge acceptance logic was inverted since the challenge would always fail as the server and client were using different cnonce values. Make sure they are using the same cnonce, and invert the authorized check.

The validity of the change can be tested by altering the test to use the wrong password. In the original state the test incorrectly continues to pass, but the new code will now fail in that case.

Please take a look.

The challenge acceptance logic was inverted since the challenge would
always fail as the server and client were using different cnonce values.
Make sure they are using the same cnonce, and invert the authorized
check.
@icholy icholy merged commit 1fc1d2b into icholy:master Oct 23, 2023
1 check passed
@icholy
Copy link
Owner

icholy commented Oct 23, 2023

Thanks Dan, I'm a fan of your work.

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.

2 participants