Roger A. Light
7dc739a11e
Disable dynsec build if cJSON or TLS not available.
5 years ago
Roger A. Light
b169dc0b1e
mosquitto_sub will quit with an error on Windows if %U is used.
...
Seconds since the Unix epoch is not a parameter that can be obtained
with strftime on Windows.
Closes #1908 . Thanks to Danil intl.
5 years ago
Roger A. Light
782696c8e4
Simplify, remove duplication.
5 years ago
Roger A. Light
c3daa247c2
dynsec: Cover setClientId in 14-dynsec-auth test.
5 years ago
Roger A. Light
c1f0cb69d1
dynsec: ACL default access test.
5 years ago
Roger A. Light
56b2e35346
Don't kick clients on refused unsubscribe.
5 years ago
Roger A. Light
81c4e2b6ac
dynsec: Commit client auth tests.
5 years ago
Roger A. Light
584cf51ba7
Update to EPL-2.0
5 years ago
Roger A. Light
69f7fcae82
Support cJSON < 1.7.13.
5 years ago
Roger A. Light
0713ad38b1
Silence Coverity Scan's concern over password_cmd derefencing.
...
This is a false positive, the conditions to trigger a NULL derefence
rely on argc changing value. However, this makes it impossible to go
wrong anyway.
Coverity Scan 1436868.
5 years ago
Roger A. Light
dac841a342
Better outgoing QoS 0 limiting.
5 years ago
Roger A. Light
fdd624cec4
Fix tests now uhpa has been removed.
5 years ago
Roger A. Light
c09f8ee3a7
We don't really mind if this fails.
5 years ago
Roger A. Light
05d4766aef
Fix plugin callback not being correctly removed.
5 years ago
Roger A. Light
adfa9f1e21
Always zero terminate payloads (removes uhpa support)
5 years ago
Roger A. Light
5db971a0e9
dynsec: Client id is optional in setClientID.
5 years ago
Roger A. Light
95c098a807
Integrate debugging only xtreport code.
5 years ago
Roger A. Light
2755fe3c4c
Apply limits to QoS 0 outgoing messages.
5 years ago
Roger A. Light
4667c9d5bc
Change max_queued_messages default to 1000.
5 years ago
Roger A. Light
621d3832c4
Try alternative flow for cov sync.
5 years ago
Roger A. Light
0c6365726f
Coverity Scan issues.
...
1436823
1436837
1436843
1432792
1436847
1436848
1436849
5 years ago
Roger A. Light
f83fcc8535
Fix Coverity Scan issues.
...
1436866
1436865
1436864
1436862
1436857
1436856
1436852
1436851
5 years ago
Roger A. Light
d142ff69a6
Fix Coverity Scan issues.
...
511427
1431133
1436823
1436837
1436838
1436929
5 years ago
Roger A. Light
c3ae8c174f
Simplify net__socket_accept() use.
...
Closes Coverity 1436829.
5 years ago
Roger A. Light
4da1f15b41
Fix Coverity Scan errors.
...
1436854
1436844
5 years ago
Roger A. Light
f2630f9c58
Attempt to fix travis on osx and unreliable test.
5 years ago
Roger A. Light
d26534e22b
Fix Coverity scan issues.
...
1302840
1353078
1431131
1431134
1431135
1436826
1436827
1436828
1436830
1436831
1436834
1436835
1436838
1436839
1436840
1436844
1436846
1436853
1436854
1436859
1436860
1436861
1436863
1436867
5 years ago
Roger A. Light
d1bf2c0d13
dynsec: Fix missing correlationData for getDefaultACLAccess.
5 years ago
Roger A. Light
3aca8c1d8e
Guard against libwebsockets assert in 3.2.1 and up.
5 years ago
Roger A. Light
7791d882c2
dynsec: Allow empty anonymous group.
5 years ago
Pierre Hallot
3ac8daa8aa
CMake: add options about whether to build the apps and plugins
...
Useful in case only the lib is needed.
Signed-off-by: Pierre Hallot <hallotpierre@gmail.com>
5 years ago
Roger A. Light
8787ec7b2e
Remove non-existant linker functions.
5 years ago
Roger A. Light
5314bae1e2
dynsec: getAnonymousGroup should include correlation data in response.
5 years ago
Roger A. Light
4150b2f233
dynsec: Ignore empty passwords on setClientPassword/modifyClient.
5 years ago
Roger A. Light
4e3b8ed2b5
Fix cherry picked commit.
5 years ago
Roger A. Light
b81f0d6782
Set to NULL for safety.
5 years ago
Roger A. Light
10ecae6275
Fix bridge sock not being removed from sock hash on error
...
Prior to this, duplicate entries could be added to the sock hash, which caused an infinite loop. Only affects bridges with bad settings on startup, and only when compiled using WITH_ADNS=yes.
Closes #1897 . Thanks to Rodolfo Ochoa.
5 years ago
Dan White
a65242d74a
mosquitto_pub: exit if broker actively refuses a connection
...
Fixes eclipse/mosquitto#1904
If the broker rejects the connection, as opposed to the broker being
down, then there is no hope to establish a connection. This adds a
status flag so we can signal to the loop that we should just exit.
Signed-off-by: Dan White <dan.white@valpo.edu>
5 years ago
Dan White
61702d7acc
mosquitto_pub: exit if server becomes unreachable and QOS > 0
...
Fixes eclipse/mosquitto#1899
In stdin line mode, mosquitto_pub will continue running and accepting
input even if/when/after publishing fails. This condition is reached
when it first successfully establishes a connection and the server later
is unreachable.
Exiting with a non-zero exit code allows for much easier health
monitoring when used in a long-running pipe.
Signed-off-by: Dan White <dan.white@valpo.edu>
5 years ago
Roger A. Light
e94cf19989
dynsec: Ignore zero length clientid.
5 years ago
Roger A. Light
4f9fe4df4d
dynsec: Rolelist as own file for consistency.
5 years ago
Roger A. Light
fe436cda95
dynsec: Fix potential grouplist leaks.
5 years ago
Roger A. Light
04d53e8919
ctrl: Give helpful message when initialising dynsec.
5 years ago
Roger A. Light
20bf6e706e
dynsec: Fix role clientlists not being freed.
5 years ago
Roger A. Light
524510f4f6
Fix some plugin memory not being freed on exit.
5 years ago
Roger A. Light
67fbe5cc7e
dynsec: Fix some keys being accessed even if they don't exist.
5 years ago
Roger A. Light
6b75dc601e
Cope with missing username.
5 years ago
Roger A. Light
aa7176e3ad
Fix mosquitto_ctrl_example shared object building on some platforms.
...
Closes #1895 . Thanks to Franz.
5 years ago
Roger A. Light
63277aad0b
dynsec: setClientId should cope with missing/empty client id.
5 years ago
Roger A. Light
eac0c3bac0
dynsec: modifyClient can now change clientid and password.
5 years ago