shithub: tlssrv.sni

Download patch

ref: 1f4e0bdb4084f1e56282f2bf6c55170de12aec23
parent: 4a12110446a15951cd11e4e4fda1e0e62687b7ed
author: igor <igor@mux>
date: Thu Jan 25 04:20:40 EST 2024

SNI stands for Server Name Indication.

--- a/README
+++ b/README
@@ -1,6 +1,7 @@
-# Tlssrv with Server Name Indication (SNI) support
+# Tlssrv(8) with Server Name Indication (SNI) support
 
-A variant of tlssrv(8) supporting the [Server Name Indication (SNI)](https://en.wikipedia.org/wiki/Server_Name_Indication)
+A variant of tlssrv(8) supporting the [Server Name Indication
+(SNI)](https://en.wikipedia.org/wiki/Server_Name_Indication)
 extension.  With this extension it is possible to use *multiple* SSL
 certificates with a *single* IP address.
 
--- a/tlshand.c
+++ b/tlshand.c
@@ -747,7 +747,7 @@
 	if(checkClientExtensions(c, m.u.clientHello.extensions) < 0)
 		goto Err;
 	if(certlen > 0){
-		/* override default certificate using Server Name Identifier (SNI) extension */
+		/* override default certificate using Server Name Indication (SNI) extension */
 		if(c->serverName){
 			char path[512];
 			PEMChain *chain;