Skip to content

Fix nc not resetting when server issues new nonce without stale=true.#316

Merged
andywolk merged 1 commit into
masterfrom
dmitry/fix_nc_reset
May 11, 2026
Merged

Fix nc not resetting when server issues new nonce without stale=true.#316
andywolk merged 1 commit into
masterfrom
dmitry/fix_nc_reset

Conversation

@morbit85
Copy link
Copy Markdown
Collaborator

When a server challenged with a new nonce but omitted stale=true, the nonce count (nc) carried over from the previous nonce instead of resetting to 1. Detect nonce changes by comparing the new nonce against the stored one, and regenerate cnonce/reset nc accordingly.

@morbit85 morbit85 requested a review from andywolk February 25, 2026 14:52
@morbit85 morbit85 added the bug Something isn't working label Feb 25, 2026
@morbit85 morbit85 force-pushed the dmitry/fix_nc_reset branch from c66ce91 to c697a78 Compare February 25, 2026 19:23
When a server challenged with a new nonce but omitted stale=true,
the nonce count (nc) carried over from the previous nonce instead
of resetting to 1. Detect nonce changes by comparing the new nonce
against the stored one, and regenerate cnonce/reset nc accordingly.
@andywolk andywolk force-pushed the dmitry/fix_nc_reset branch from c697a78 to 25deac1 Compare May 11, 2026 14:34
@andywolk andywolk merged commit 54981e1 into master May 11, 2026
11 checks passed
@andywolk andywolk deleted the dmitry/fix_nc_reset branch May 11, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants