From 86b59de8d0f9fca089ca33ab394646f444c671ce Mon Sep 17 00:00:00 2001 From: 0xd34df00d <0xd34df00d@gmail.com> Date: Sun, 13 Oct 2019 17:21:43 -0400 Subject: [PATCH] Set SNI name in the gnutls backend as well --- src/vmime/net/tls/gnutls/TLSSocket_GnuTLS.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vmime/net/tls/gnutls/TLSSocket_GnuTLS.cpp b/src/vmime/net/tls/gnutls/TLSSocket_GnuTLS.cpp index 73d52231..eea2a15b 100644 --- a/src/vmime/net/tls/gnutls/TLSSocket_GnuTLS.cpp +++ b/src/vmime/net/tls/gnutls/TLSSocket_GnuTLS.cpp @@ -94,6 +94,8 @@ void TLSSocket_GnuTLS::connect(const string& address, const port_t port) { try { + gnutls_server_name_set(*m_session->m_gnutlsSession, GNUTLS_NAME_DNS, address.c_str(), address.size()); + m_wrapped->connect(address, port); handshake();