Skip to content
Permalink
Browse files

Set SNI name in the gnutls backend as well

  • Loading branch information...
0xd34df00d committed Oct 13, 2019
1 parent 0fcf45b commit 86b59de8d0f9fca089ca33ab394646f444c671ce
Showing with 2 additions and 0 deletions.
  1. +2 −0 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();

0 comments on commit 86b59de

Please sign in to comment.
You can’t perform that action at this time.