-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Server Name Indication extension configuration
The [Server Name Indication][wiki-sni] (SNI) [TLS extension][rfc-5246-extensions] has become a de-facto client-side requirement for TLS connections; most servers will abort connections lacking the SNI extension. Whilst Mbed TLS provides client-side support for SNI (via the [MBEDTLS_SSL_SERVER_NAME_INDICATION][mbedtls-sni] option), the [ALTCP compatible Mbed TLS port][lwip-altcp-tls] supplied with lwIP does not provide an interface to correctly configure SNI. This is a [known missing feature][gh-lwip-pr] of lwIP's ALTCP interface. This commit adds a workaround to correctly configure the SNI extension. This is achieved via underlying Mbed TLS interfaces, thereby avoiding the need to patch lwIP. Fixes #1 [wiki-sni]: https://en.wikipedia.org/wiki/Server_Name_Indication [rfc-5246-extensions]: https://datatracker.ietf.org/doc/html/rfc5246#section-7.4.1.4 [mbedtls-sni]: https://github.com/Mbed-TLS/mbedtls/blob/mbedtls-2.28/include/mbedtls/config.h#L2134 [lwip-altcp-tls]: https://github.com/lwip-tcpip/lwip/tree/master/src/apps/altcp_tls [gh-lwip-pr]: lwip-tcpip/lwip@c53c9d0
- Loading branch information
1 parent
fee46f1
commit 922ef25
Showing
3 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters