Update IXSocketMbedTLS.cpp (#138)

fix bug just introduced.

mbedstl_pk_setup() gets automatically called later.
This commit is contained in:
James Tyra 2019-12-30 17:14:50 -06:00 committed by Benjamin Sergeant
parent 98e98f083e
commit b5481262fb

View File

@ -40,9 +40,6 @@ namespace ix
mbedtls_x509_crt_init(&_cacert);
mbedtls_x509_crt_init(&_cert);
mbedtls_pk_init(&_pkey);
// FIXME: This will only work for RSA Private keys, what about other types? (ECDSA for
// example)
mbedtls_pk_setup(&_pkey, mbedtls_pk_info_from_type(MBEDTLS_PK_RSA));
}
bool SocketMbedTLS::init(const std::string& host, bool isClient, std::string& errMsg)