Skip to content

ALPN select callback fix to handle opaque protocol names - #431

Merged
rlm2002 merged 1 commit into
wolfSSL:masterfrom
cconlon:fenrirSept25_7
Oct 2, 2026
Merged

rlm2002 merged 1 commit into
wolfSSL:masterfrom
cconlon:fenrirSept25_7

Conversation

@cconlon

@cconlon cconlon commented Sep 28, 2026

Copy link
Copy Markdown
Member

This PR fixes F-13506: NativeALPNSelectCb parses the ALPN wire list directly, so names with commas, NUL or non-ASCII bytes reach the callback intact.

  • Names map one byte per char (ISO-8859-1), matching useALPN() and SunJSSE
  • Invalid selections (empty, over 255 bytes, NUL or char above U+00FF) fail the handshake
  • Adds JNI and JSSE tests, including a SunJSSE client test

@cconlon cconlon self-assigned this Sep 28, 2026
Copilot AI balanced review requested due to automatic review settings September 28, 2026 22:00

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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

Scan targets checked: wolfssljni-src, wolfssljni-bugs
Coverage: 1 of 4 in-scope changed file(s) opened by the reviewer; not opened: src/java/com/wolfssl/WolfSSLALPNSelectCallback.java, src/test/com/wolfssl/provider/jsse/test/WolfSSLSocketTest.java, src/test/com/wolfssl/test/WolfSSLSessionTest.java

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

@cconlon cconlon assigned rlm2002 and unassigned cconlon Oct 1, 2026
@rlm2002
rlm2002 merged commit 9fd3926 into wolfSSL:master Oct 2, 2026
107 of 108 checks passed
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