Skip to content

Enable single label host names - #59

Open
padelsbach wants to merge 1 commit into
wolfSSL:masterfrom
padelsbach:single-label
Open

padelsbach wants to merge 1 commit into
wolfSSL:masterfrom
padelsbach:single-label

Conversation

@padelsbach

Copy link
Copy Markdown
Contributor

Allow host names without a dot. WolfSSL already has a special case for localhost.

Copilot AI balanced review requested due to automatic review settings November 17, 2026 04:29

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.

🟢 Approval recommended

No active review issues are recorded for the change enabling single-label hostnames in the Mbed TLS compatibility layer.

No open issues 🎉

What changed in this PR

Enables single-label hostnames such as router in the Mbed TLS compatibility layer by configuring wolfSSL to accept them.

Changes:

  • Enables wolfSSL’s single-label hostname option.
  • Adds certificate-verification tests for matching, case-insensitive, and mismatched single-label names.
  • Updates documentation and the rejected-hostname test to reflect the remaining DNS-name restrictions.
File Description
user_settings.h Enables single-label hostnames for Mbed TLS compatibility.
test/​mbedtls_compat/​ssl_test.c Adds a certificate fixture and hostname-verification tests; updates the rejected-name case.
README.md Replaces the single-label limitation with the remaining hostname restrictions.

Review effort: Balanced

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.

3 participants