Skip to content

Guard IdentifyAsn1Key test on TEST_INTERNAL - #1157

Merged
philljj merged 1 commit into
wolfSSL:masterfrom
ejohnstown:winbuild
Aug 11, 2026
Merged

Guard IdentifyAsn1Key test on TEST_INTERNAL#1157
philljj merged 1 commit into
wolfSSL:masterfrom
ejohnstown:winbuild

Conversation

@ejohnstown

Copy link
Copy Markdown
Contributor

IdentifyAsn1Key is WOLFSSH_LOCAL, so the check and its DER blob only build when linking the test library.

- IdentifyAsn1Key is WOLFSSH_LOCAL, so the check and its DER blob
  only build when linking the test library.

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.

Pull request overview

Updates the API test suite to only compile/link the IdentifyAsn1Key-based assertion when internal test symbols are available, matching IdentifyAsn1Key’s WOLFSSH_LOCAL visibility and avoiding non-internal build/link failures.

Changes:

  • Guard the RSA SubjectPublicKeyInfo DER test blob with WOLFSSH_TEST_INTERNAL.
  • Guard the IdentifyAsn1Key assertions in test_wolfSSH_ReadPublicKey_pem() with WOLFSSH_TEST_INTERNAL.
  • Clarify the comment explaining why this check is internal-only.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@philljj philljj self-assigned this Aug 11, 2026

@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 #1157

Scan targets checked: wolfssh-bugs, wolfssh-src

No new issues found in the changed files. ✅

@philljj
philljj merged commit ddd9c1a into wolfSSL:master Aug 11, 2026
166 of 167 checks passed
@ejohnstown
ejohnstown deleted the winbuild branch August 11, 2026 16:56
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