1 Aug 2011 13:18
[patch] Send TLS SNI when setting up TLS
Phil Pennock <mutt-dev <at> spodhuis.org>
2011-08-01 11:18:04 GMT
2011-08-01 11:18:04 GMT
TLS supports sending the expected server hostname during the handshake, via the SNI extension. This can be used to select a server certificate to issue to the client, permitting virtual-hosting without requiring multiple IP addresses. I had this lying around in my hg checkout for, uhm, a couple of years; I never tested it, because I don't know of any IMAP servers which actually use this, but it's hopefully correct-by-inspection. I made similar changes back then to a number of other pieces of software, so this was one of a set and all the others worked fine. FWIW, this was part of the binary I used for testing the next patch I'll post, which was tested in connecting to Gmail with IMAPS, so it didn't break connecting to Gmail. At some point (far down my todo list), I'm likely to add SNI server-side support to Exim as an MTA, so I'll be happy to have mutt as a client for the SMTP/TLS side of that. Regards, -Phil
RSS Feed