Skip to content

Commit

Permalink
ctrl with automatic TLS mode with PSK
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Krey <c@ckrey.de>
  • Loading branch information
ckrey committed Nov 5, 2024
1 parent d813388 commit b72df45
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/mosquitto_ctrl/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ 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 && !ctrl->cfg.psk){
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
){
fprintf(stderr, "Warning: You are running mosquitto_ctrl without encryption.\nThis means all of the configuration changes you are making are visible on the network, including passwords.\n\n");
}

Expand Down

0 comments on commit b72df45

Please sign in to comment.