Use server methods in the broker.
This commit is contained in:
parent
2d9fab123e
commit
f4c9435f54
@ -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){
|
||||||
|
Loading…
Reference in New Issue
Block a user