Skip to content

internal: keep userauth verifier error codes - #1350

Open
ejohnstown wants to merge 1 commit into
wolfSSL:masterfrom
ejohnstown:userauth-verifier-errors
Open

ejohnstown wants to merge 1 commit into
wolfSSL:masterfrom
ejohnstown:userauth-verifier-errors

Conversation

@ejohnstown

Copy link
Copy Markdown
Contributor

The public-key userauth verifiers now return the error from the step
that failed, and the X.509 ECDSA verifier checks the signature's
algorithm name like its siblings. No change lets a login through.

  • EccCert and Ed25519 keep their argument, parse and type error codes
  • Rsa and RsaCert reject a hash with no OID, or a failed encode, before
    verifying
  • EccCert accepts the declared x509v3 name or RFC 6187's ecdsa-sha2
    name for the same curve; anything else is WS_INVALID_ALGO_ID

Issue: F-11654, F-12544, F-15665

The public-key userauth verifiers now return the error from the step
that failed, and map only the wolfCrypt key decode itself to
WS_CRYPTO_FAILED. The X.509 ECDSA verifier checks the signature's
algorithm name like its siblings.

- EccCert and Ed25519: argument, allocation, parse and type errors
  keep their own codes
- Rsa and RsaCert: a hash with no OID, or a failed encode, is
  WS_CRYPTO_FAILED before the verify
- EccCert: accept the declared x509v3 name or RFC 6187's ecdsa-sha2
  name for the same curve; anything else is WS_INVALID_ALGO_ID
- unit: cover each case; add wolfSSH_TestDoUserAuthRequestEccCert

Issue: F-11654, F-12544, F-15665
Copilot AI balanced review requested due to automatic review settings October 29, 2026 22:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fenrir Automated Review — PR #1350

Scan targets checked: wolfssh-src, wolfssh-bugs
Coverage: 2 of 3 in-scope changed file(s) opened by the reviewer; not opened: wolfssh/internal.h

Fenrir result: Approved ✅

No new issues found in the changed files.

Advisory only — this automated result does not count as a GitHub approval.

Review tier: Lite

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.

4 participants