Subject: ii to work with pounce and TLS SNI standard

From: Spenser Truex <[email-masked]>
Date: Sun, 7 Sep 2025 21:08:47 -0700

>>>>>>>>>>>> (info for pounce list)
> ii is a simple IRC client that makes a folder with FIFO files called
> 'in' and 'out' in some directories so you can
>> echo "your message" >irc.website.com/#channel/in
>and
>> cat irc.website.com/#channel/out
>to use the IRC

>>>>>>>>>>>> (suckless list message)
Just had to add one line to the SSL patch which I included as a diff
here. It now supports "SNI". and works with causal.agency's "pounce"
bouncer. This diff applies on top of the SSL diff, I will send the whole
thing as a file for posting on the internet website and applying
directly to ii.

https://tools.suckless.org/ii/patches/ssl/

diff --git a/ii.c b/ii.c
index 8ec009e..253e302 100644
--- a/ii.c
+++ b/ii.c
@@ -444,6 +444,7 @@ tcpopen(conn *ircfd, const char *host, const char *service)
 		ERR_print_errors_fp(stderr);
 	ircfd->sslHandle = SSL_new(ircfd->sslContext);
 	if (!SSL_set_fd(ircfd->sslHandle, ircfd->irc) ||
+	    !SSL_set_tlsext_host_name(ircfd->sslHandle, host) ||
 	    (SSL_connect(ircfd->sslHandle) != 1))
 		ERR_print_errors_fp(stderr);
 }

-- 
CAEE B377 FC82 BAF9 102C  D22F C5CE D003 1AA8 E281
Spenser Truex        https://equwal.com