Roger A. Light
7ea73f6d60
Formatting: Forbid single line if statements
...
These hide cases from coverage checks
2025-09-17 12:48:02 +01:00
Roger A. Light
d743413ac3
Formatting: Spacing consistency
2025-09-17 12:03:06 +01:00
Roger A. Light
67ad22df0a
Formatting: Double space before functions.
2025-09-17 12:03:03 +01:00
Roger A. Light
bd52ede4de
Remove support for TLS v1.1
2025-04-01 11:36:39 +01:00
Roger A. Light
dd2c25c1cf
Merge branch 'master' into develop
2024-10-19 22:13:14 +01:00
Carsten Andrich
c22ced4915
fix unused parameter warning (only with cmake -DWITH_TLS=OFF) in mosquitto_void_option()
...
Signed-off-by: Carsten Andrich <carsten@andrich.name >
2024-09-07 00:31:04 +01:00
Roger A. Light
4498193331
Refactor file functions to common static library.
2024-03-17 23:13:11 +00:00
Roger A. Light
b5c25cf1d0
Refactor memory functions to common static library.
2024-03-17 10:30:07 +00:00
Roger A. Light
a9ebf37dab
Remove support for openssl < 3.0
2024-02-26 19:07:22 +00:00
Roger A. Light
d17a88d916
Refactor headers for easier discovery.
2023-12-23 12:59:58 +00:00
Roger A. Light
e656e694ed
Merge branch 'master' into develop
2023-09-09 15:20:40 +01:00
Bart Desplanques
105e30ff5b
Fix engine support.
...
Do not try to open keyfile when keyform is "engine": this is not necessarily a real file.
Dynamic engines require init with OPENSSL_INIT_ENGINE_DYNAMIC before they can be loaded.
Signed-off-by: Bart Desplanques <bart.desplanques@gmail.com >
2023-06-02 19:11:50 +02:00
Roger A. Light
475a708d30
Fix openssl 3 deprecations.
2023-01-11 22:34:08 +00:00
Roger A. Light
b157448b30
Fix possible memory leaks when repeating options.
2022-12-07 22:44:09 +00:00
Guillaume PELLEGRINO
9018f12dfc
Fix memory leak in mosquitto_tls_opts_set()
...
When calling mosquitto_tls_opts_set() multiple time in a row
on the same mosquitto context (Example: trying to reconnect
to mqtt broker), some of the tls options are not free, resulting in a memory leak.
The TLS options (tls_version, tls_ciphers) must be free before being set.
Signed-off-by: Guillaume PELLEGRINO <guillaume.pellegrino@yahoo.com >
2022-11-09 10:17:03 +01:00
Roger A. Light
fd68bf00c7
Merge branch 'master' into develop
2022-08-17 16:18:24 +01:00
Roger A. Light
546df9db85
Build fixes, particularly pedantic compiler warnings.
2022-06-14 22:29:05 +01:00
Roger A. Light
b6b8039914
Fix use of MOSQ_OPT_TLS_ENGINE being unable to be used.
...
This was due to the openssl ctx not being initialised until starting to connect.
Closes #2537 . Thanks to chessing-c4.
2022-05-17 17:19:17 +01:00
Roger A. Light
f5625f499f
Client HTTP request size configurable.
2022-01-13 19:39:04 +00:00
Roger A. Light
500542351d
Set pointers to NULL after freeing.
2021-12-30 08:08:11 +00:00
Roger Light
cd07f1136b
Bump copyrights.
2021-11-03 22:10:06 +00:00
Roger A. Light
8ac11929cc
Merge branch 'master' into develop
2021-10-27 17:19:33 +01:00
Roger A. Light
799cdead15
Experimental custom websockets support.
2021-10-06 15:32:45 +01:00
Roger A. Light
a1a190b482
Pointless whitespace tidy.
2021-10-05 15:20:37 +01:00
Roger A. Light
aa29b45e70
Merge branch 'master' into develop
2021-09-07 19:17:11 +01:00
Roger A. Light
d09591d92e
Fix reconnecting in some cases when using MOSQ_OPT_TLS_USE_OS_CERTS.
...
Fix reconnecting failing when MOSQ_OPT_TLS_USE_OS_CERTS was in use, but none
of capath, cafile, psk, nor MOSQ_OPT_SSL_CTX were set, and
MOSQ_OPT_SSL_CTX_WITH_DEFAULTS was set to the default value of true.
Closes #2288 . Thanks to Poltorak Serguei.
2021-08-31 15:59:40 +01:00
Roger A. Light
605131502b
Fix MOSQ_OPT_SSL_CTX not being able to be set to NULL.
...
Closes #2289 . Thanks to Poltorak Serguei.
2021-08-31 10:45:10 +01:00
Roger A. Light
376226c129
Build warning fixes.
2021-08-26 10:54:03 +01:00
Roger A. Light
9b25dd3b0d
libressl build fixes.
...
Closes #2198 . Thanks to Theo Buehler.
2021-08-24 13:53:03 +01:00
Roger A. Light
214feb8f6b
Merge branch 'fixes' into develop
2021-05-21 15:42:26 +01:00
Roger Light
9c9ca33d63
Fix two potential leaks.
2021-05-10 21:56:44 +01:00
Roger Light
b4c86df6f5
Fix missing control path.
...
Closes #2190 . Thanks to RengeRenge.
2021-04-25 23:10:06 +01:00
Abilio Marques
c637a192a3
add support for tlsv1.3 ciphers
...
Signed-off-by: Abilio Marques <abiliojr@gmail.com >
2021-03-29 06:54:46 +02:00
Roger A. Light
fd036b9435
Merge branch 'fixes' into develop
2021-03-09 10:12:46 +00:00
Roger A. Light
a4389fc9ce
Fix SPDX identifiers: EDL-1.0 -> BSD-3-Clause.
...
The two licenses are the same.
2021-01-20 11:46:18 +00:00
Roger A. Light
c9aa3ca847
Add MOSQ_OPT_DISABLE_SOCKETPAIR.
2021-01-14 14:10:28 +00:00
Roger A. Light
3731535298
Add SPDX license identifiers.
2020-12-01 20:46:56 +00:00
Roger A. Light
29c771cdd4
Add lib and client support for OS CA certs
...
- Add `MOSQ_OPT_TLS_USE_OS_CERTS` option, to instruct the client to load and trust OS provided CA certificates for use with TLS connections.
- All clients now load OS provided CA certificates if used with `-L
mqtts://...`, or if port is set to 8883 and no other CA certificates are
used. Closes #1824 .
- Add the `--tls-use-os-certs` option to all clients.
Closes #1824 . Thanks to Jens Reimann.
2020-12-01 11:51:13 +00:00
Roger A. Light
584cf51ba7
Update to EPL-2.0
2020-11-25 17:34:21 +00:00
Roger A. Light
4f61f6c161
Fix conversion errors.
2020-10-17 01:23:08 +01:00
Roger A. Light
9724710cd6
Add MOSQ_OPT_BIND_ADDRESS.
...
This allows setting of a bind address independently of the
`mosquitto_connect*()` call.
2020-10-14 10:31:46 +01:00
Roger A. Light
d96543c0b8
Merge branch 'fixes' into develop
2020-03-03 12:54:57 +00:00
Roger A. Light
b0a065f790
Update changelog. Release page. Bump copyright.
2020-02-27 23:26:58 +00:00
Roger A. Light
27b4518d7e
Improve password file parsing in the broker and mosqitto_passwd.
...
Closes #1584 . Thanks to panava.
2020-02-04 16:38:51 +00:00
Roger A. Light
d60e86d2a3
Add TCP_NODELAY support to lib and clients.
...
Closes #1526 . Thanks to Felix Moessbauer.
2019-12-18 17:04:43 +00:00
Roger A. Light
4b6cc208e2
Fix inflight max behaviour and option setting.
2019-09-24 11:26:25 +01:00
Roger A. Light
f21ccc362b
Fix mosquitto_string_option(, MOSQ_OPT_TLS_KEYFORM, ) return value
...
`mosquitto_string_option(mosq, MOSQ_OPT_TLS_KEYFORM, ...)` was incorrectly
returning `MOSQ_ERR_INVAL` with valid input. This has been fixed.
Closes #1360 . Thanks to Michael Dombrowski.
2019-07-30 18:46:52 +01:00
Roger Light
44d170053d
Merge pull request #1255 from etactica/ssl-fixes
...
Ssl fixes for ENGINE and UI includes
2019-05-29 10:34:11 +01:00
Roger A. Light
b4dfeb3767
Fix MQTT v5 clients not being able to specify a password without a username.
...
Thanks to Erik Moqvist.
Closes #1274 .
2019-05-21 23:56:22 +01:00
Karl Palsson
22303848e2
ssl: support openssl with ENGINE support disabled.
...
Alternatively, just drop support for this config.
Signed-off-by: Karl Palsson <karlp@etactica.com >
2019-05-02 16:44:14 +00:00