Skip to content
Permalink
Browse files

Fix #231 (GnuTLS)

  • Loading branch information
RichardSteele committed Nov 18, 2019
1 parent 44eb473 commit 39ece29feda826421a40e49797aac35cfd369cd3
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/vmime/net/tls/gnutls/TLSSocket_GnuTLS.cpp
@@ -94,8 +94,6 @@ 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();
@@ -319,6 +317,9 @@ void TLSSocket_GnuTLS::handshake() {

// Start handshaking process
try {
string peerAddress = getPeerAddress();

gnutls_server_name_set(*m_session->m_gnutlsSession, GNUTLS_NAME_DNS, peerAddress.c_str(), peerAddress.size());

while (true) {

0 comments on commit 39ece29

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