(tls) Experimental TLS server support with mbedtls (windows) + process cert tlsoption (client + server)

This commit is contained in:
Benjamin Sergeant
2019-12-18 11:51:02 -08:00
parent 299afc1425
commit 494f408320
5 changed files with 65 additions and 9 deletions

View File

@ -44,11 +44,12 @@ namespace ix
mbedtls_entropy_context _entropy;
mbedtls_ctr_drbg_context _ctr_drbg;
mbedtls_x509_crt _cacert;
mbedtls_x509_crt _cert;
std::mutex _mutex;
SocketTLSOptions _tlsOptions;
bool init(const std::string& host, std::string& errMsg);
bool init(const std::string& host, bool isClient, std::string& errMsg);
void initMBedTLS();
};