On Sat, 30 May 2020 17:40:43 +0200, Sebastien Marie wrote:
> I am looking to make smtpd to set SNI (SSL_set_tlsext_host_name)
> when connecting to smarthost when relaying mail.
>
> After digging a bit in libtls (to stole the right code) and smtpd (to
> see where to put the stolen code), I have the following diff:
Consider using a union for addrbuf, e.g.
union {
struct in_addr addr4;
struct in6_addr addr6;
} addrbuf;
There's no need to have both on the stack. Otherwise looks reasonable
to me.
- todd