diff --git a/src/impl/tlstransport.cpp b/src/impl/tlstransport.cpp index 3660a7f3f..0cca128cd 100644 --- a/src/impl/tlstransport.cpp +++ b/src/impl/tlstransport.cpp @@ -344,6 +344,11 @@ TlsTransport::TlsTransport(variant, shared_ptrc_str()); + } + mbedtls::check(mbedtls_ssl_setup(&mSsl, &mConf)); mbedtls_ssl_set_bio(&mSsl, static_cast(this), WriteCallback, ReadCallback, NULL);