Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: openssl: implement -starttls sieve for s_client
To:
Martijn van Duren <openbsd+tech@list.imperialat.at>
Cc:
tech@openbsd.org
Date:
Fri, 30 Jan 2026 11:59:37 +0100

Download raw body.

Thread
On Fri, Jan 30, 2026 at 10:44:27AM +0100, Martijn van Duren wrote:
> Hello tech@,
> 
> I had to do some sieve debugging, and wrote this snippet to allow me to
> connect. Is this worth having? Sieve STARTTLS is defined in RFC5804
> section 2.2.

No objection from me. I know it's basically just a copy-paste-tweak from
the IMAP case, but I'd prefer if this could be written more robustly with
a bit more error checking.

Maybe we should just port and improve on the upstream PR which is under
the old license (but use str*casecmp() instead of the silly
make_uppercase() stuff).

https://github.com/openssl/openssl/pull/2300

I'm also not against having the other things sthen mentions which were
written around the same time and should be easy to port for anyone who
wants them.