mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-08-20 21:41:40 +08:00
@@ -46,6 +46,9 @@ Clients:
|
||||
|
||||
Build:
|
||||
- Fix installation using WITH_TLS=no. Closes #2281.
|
||||
- Fix builds with libressl 3.4.0. Closes #2198.
|
||||
- Remove some unnecessary code guards related to libressl.
|
||||
|
||||
|
||||
2.0.11 - 2021-06-08
|
||||
===================
|
||||
|
||||
+2
-2
@@ -392,7 +392,7 @@ int mosquitto_opts_set(struct mosquitto *mosq, enum mosq_opt_t option, void *val
|
||||
#ifdef WITH_TLS
|
||||
mosq->ssl_ctx = (SSL_CTX *)value;
|
||||
if(mosq->ssl_ctx){
|
||||
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
||||
SSL_CTX_up_ref(mosq->ssl_ctx);
|
||||
#else
|
||||
CRYPTO_add(&(mosq->ssl_ctx)->references, 1, CRYPTO_LOCK_SSL_CTX);
|
||||
@@ -500,7 +500,7 @@ int mosquitto_void_option(struct mosquitto *mosq, enum mosq_opt_t option, void *
|
||||
#ifdef WITH_TLS
|
||||
mosq->ssl_ctx = (SSL_CTX *)value;
|
||||
if(mosq->ssl_ctx){
|
||||
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
||||
SSL_CTX_up_ref(mosq->ssl_ctx);
|
||||
#else
|
||||
CRYPTO_add(&(mosq->ssl_ctx)->references, 1, CRYPTO_LOCK_SSL_CTX);
|
||||
|
||||
+1
-1
@@ -1188,7 +1188,7 @@ static int config__read_file_core(struct mosquitto__config *config, bool reload,
|
||||
log__printf(NULL, MOSQ_LOG_WARNING, "Warning: TLS support not available.");
|
||||
#endif
|
||||
}else if(!strcmp(token, "ciphers_tls1.3")){
|
||||
#if defined(WITH_TLS) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
#if defined(WITH_TLS) && (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER > 0x3040000FL)
|
||||
if(reload) continue; /* Listeners not valid for reloading. */
|
||||
if(conf__parse_string(&token, "ciphers_tls1.3", &cur_listener->ciphers_tls13, saveptr)) return MOSQ_ERR_INVAL;
|
||||
#else
|
||||
|
||||
@@ -404,7 +404,7 @@ int net__tls_server_ctx(struct mosquitto__listener *listener)
|
||||
return MOSQ_ERR_TLS;
|
||||
}
|
||||
}
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10101000 && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10101000 && (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER > 0x3040000FL)
|
||||
if(listener->ciphers_tls13){
|
||||
rc = SSL_CTX_set_ciphersuites(listener->ssl_ctx, listener->ciphers_tls13);
|
||||
if(rc == 0){
|
||||
|
||||
Reference in New Issue
Block a user