mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-27 22:29:31 +08:00
Whitespace tidy
This commit is contained in:
@@ -29,7 +29,7 @@ int db__message_store(const struct mosquitto *source, struct mosquitto_msg_store
|
||||
UNUSED(message_expiry_interval);
|
||||
UNUSED(store_id);
|
||||
UNUSED(origin);
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void db__msg_store_ref_inc(struct mosquitto_msg_store *store)
|
||||
|
||||
@@ -127,7 +127,7 @@ int client_request_response(struct mosq_ctrl *ctrl)
|
||||
int rc;
|
||||
time_t start;
|
||||
|
||||
if(ctrl->cfg.cafile == NULL && ctrl->cfg.capath == NULL && !ctrl->cfg.tls_use_os_certs && ctrl->cfg.port != 8883
|
||||
if(ctrl->cfg.cafile == NULL && ctrl->cfg.capath == NULL && !ctrl->cfg.tls_use_os_certs && ctrl->cfg.port != 8883
|
||||
# ifdef FINAL_WITH_TLS_PSK
|
||||
&& !ctrl->cfg.psk
|
||||
# endif
|
||||
|
||||
@@ -389,8 +389,8 @@ static int client_config_line_proc(struct mosq_config *cfg, int *argc, char **ar
|
||||
}
|
||||
argv++;
|
||||
(*argc)--;
|
||||
}else if(!strcmp(argv[0], "--tls-use-os-certs")){
|
||||
cfg->tls_use_os_certs = true;
|
||||
}else if(!strcmp(argv[0], "--tls-use-os-certs")){
|
||||
cfg->tls_use_os_certs = true;
|
||||
}else if(!strcmp(argv[0], "--tls-version")){
|
||||
if((*argc) == 1){
|
||||
fprintf(stderr, "Error: --tls-version argument given but no version specified.\n\n");
|
||||
@@ -620,12 +620,12 @@ int client_opts_set(struct mosquitto *mosq, struct mosq_config *cfg)
|
||||
return 1;
|
||||
}
|
||||
# endif
|
||||
}else if(cfg->port == 8883){
|
||||
mosquitto_int_option(mosq, MOSQ_OPT_TLS_USE_OS_CERTS, 1);
|
||||
}
|
||||
if(cfg->tls_use_os_certs){
|
||||
mosquitto_int_option(mosq, MOSQ_OPT_TLS_USE_OS_CERTS, 1);
|
||||
}
|
||||
}else if(cfg->port == 8883){
|
||||
mosquitto_int_option(mosq, MOSQ_OPT_TLS_USE_OS_CERTS, 1);
|
||||
}
|
||||
if(cfg->tls_use_os_certs){
|
||||
mosquitto_int_option(mosq, MOSQ_OPT_TLS_USE_OS_CERTS, 1);
|
||||
}
|
||||
|
||||
if(cfg->insecure && mosquitto_tls_insecure_set(mosq, true)){
|
||||
fprintf(stderr, "Error: Problem setting TLS insecure option.\n");
|
||||
|
||||
Reference in New Issue
Block a user