Use server methods in the broker.

This commit is contained in:
Roger A. Light 2018-04-12 10:24:03 +01:00
parent 2d9fab123e
commit f4c9435f54

View File

@ -268,9 +268,9 @@ static int mosquitto__tls_server_ctx(struct mosquitto__listener *listener)
#if OPENSSL_VERSION_NUMBER < 0x10100000L #if OPENSSL_VERSION_NUMBER < 0x10100000L
listener->ssl_ctx = SSL_CTX_new(SSLv23_client_method()); listener->ssl_ctx = SSL_CTX_new(SSLv23_server_method());
#else #else
listener->ssl_ctx = SSL_CTX_new(TLS_client_method()); listener->ssl_ctx = SSL_CTX_new(TLS_server_method());
#endif #endif
if(!listener->ssl_ctx){ if(!listener->ssl_ctx){