Commit Graph
32 Commits
Author SHA1 Message Date
Roger A. Light 4c24b92e34 Formatting: Apply to C++ files 2025-09-17 12:48:02 +01:00
Roger A. Light a2fe980301 Add mosquitto_ext_auth_continue() 2024-10-28 22:31:44 +00:00
Roger A. Light 4498193331 Refactor file functions to common static library. 2024-03-17 23:13:11 +00:00
Roger A. Light d17a88d916 Refactor headers for easier discovery. 2023-12-23 12:59:58 +00:00
Roger A. Light fd330de080 client_id -> clientid rename. 2023-01-16 18:46:35 +00:00
Roger A. Light 27941ae9c2 Fix Coverity Scan 1499830 2022-10-16 14:48:26 +01:00
Kai Buschulte c646172c05 set mqtt v5 callbacks in C++ wrapper of lib
This caused "unused function" warnings

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
2022-08-29 11:21:50 +00:00
Roger A. Light efc8d064de Bring mosquittopp more up to date with libmosquitto. 2022-04-15 23:48:31 +01:00
Roger A. Light a1a190b482 Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
Roger A. Light 584cf51ba7 Update to EPL-2.0 2020-11-25 17:34:21 +00:00
Roger A. Light 1220ba4bfe Rejig OCSP code. 2019-03-26 22:13:42 +00:00
Roger A. Light ea046c2405 Merge branch 'master' of git://github.com/LarsVoelker/mosquitto into LarsVoelker-master 2019-03-26 18:36:13 +00:00
Roger A. Light 320ddc1303 Merge branch 'master'
Conflicts:
	CMakeLists.txt
	ChangeLog.txt
	client/Makefile
	config.mk
	installer/mosquitto.nsi
	installer/mosquitto64.nsi
	lib/mosquitto.h
	lib/mqtt3_protocol.h
	lib/util_mosq.c
	set-version.sh
	snap/snapcraft.yaml
	src/bridge.c
	src/database.c
	src/handle_connack.c
	src/loop.c
	src/persist.c
	test/broker/Makefile
2019-03-16 10:05:38 +00:00
Roger A. Light 2dd24449ad Fix "unused parameter" warnings. 2019-03-13 14:46:05 +00:00
Roger A. Light ce31269e05 Update changelog, bump version, bump copyright year. 2019-02-28 16:56:15 +00:00
Roger A. Light e862a047a8 Rework TLS engine support. 2019-02-26 17:11:29 +00:00
Nicolás Pernas Maradei 20894fcbce Add engine private key password support
Some OpenSSL engines (selectable via tls_engine option) may require a
password to make use of private keys created with them in the first place.

The TPM engine for example, will require a password to access the underlying
TPM's Storage Root Key (SRK), which is the root key of a hierarchy of keys
associated with a TPM; it is generated within a TPM and is a non-migratable
key. Each owned TPM contains a SRK, generated by the TPM at the request
of the Owner. [1]

By default, the engine will prompt the user to introduce the SRK password
before any private keys created with the engine can be used. This could
be inconvenient when running on an unattended system.

Here's where the new tls_engine_kpass_sha option comes in handy. The user
can specify a SHA1 hash of its engine private key password via command
line or config file and it will be passed on to the engine directly.

This commit adds support for both clients (libmosquitto) and broker.

[1] https://goo.gl/qQoXBY

Signed-off-by: Nicolás Pernas Maradei <nicopernas@gmail.com>
2019-02-26 15:50:37 +00:00
Nicolás Pernas Maradei f88cc06435 Add TLS engine and keyform support to libmosquitto
- Clients can now offload crypto tasks to an external crypto device through
  the OpenSSL ENGINE API.
- The keyfiles can now be treated as PEM or ENGINE keys.
- Two new functions were added to libmosquitto to set up the previously
  mentioned features.
- Both mosquitto_sub and mosquitto_pub include support to turn on the mentioned
  features through command line options.

Signed-off-by: Nicolás Pernas Maradei <nicopernas@gmail.com>
2019-02-26 15:48:00 +00:00
Roger A. Light f4d238be18 Bump copyright years. 2018-04-11 15:24:29 +01:00
Roger A. Light ff79432364 C++ on_connect_with_flags() support. 2018-04-11 14:11:02 +01:00
Dr. Lars Voelker 74adb43cc1 Adding OCSP Stapling support to mosquitto
Adding OCSP Stapling support to mosquitto, so that the TLS client side
requests the certificate status and checks it.
This code uses the OpenSSL-based OCSP implementation and is somewhat
based on the libcurl code for OCSP stapling.

Signed-off-by: Dr. Lars Voelker <lars.voelker@bmw.de>
2017-07-07 13:05:17 +02:00
Roger A. Light 91b308a11d Merge branch 'master' into develop 2017-03-06 21:19:53 +00:00
Roger A. Light 8378fe44cf Update copyrights. 2016-07-08 09:42:24 +01:00
jbwdevries 1c90a4487c Fixes a bug where the C++ wrapper would always claim SOCKS was not supported. (#198)
The WITH_* flags are not handed over to the C++ wrapper, instead it relies on
the actual library to check status.

Signed-off-by: Johan de Vries (Ubuntu VM) <devries@wivion.nl>
2016-06-29 17:12:20 +01:00
Roger A. Light a8a5daf06b Check client topic inputs for valid UTF-8. 2016-06-20 22:56:01 +01:00
Roger A. Light 7709621911 Reorder helper function arguments for consistency. 2016-01-26 17:06:32 +00:00
Roger A. Light 0a95c9a3af Add mosquitto_subscribe_callback(). 2016-01-26 17:00:08 +00:00
Roger A. Light fe933dee99 Don't require socks_mosq.c in cpp library. 2015-03-30 22:11:18 +01:00
Roger A. Light 8a35c3cd0d Add client support for MQTT v3.1.1. 2015-01-27 00:32:20 +00:00
Roger A. Light fdc8c08ca3 Add socks to cpp library. 2014-09-30 01:04:10 +01:00
Roger A. Light 5c7512b8ba Add mosquitto_threaded_set(). 2014-07-02 20:45:26 +01:00
Roger Light 0364bd1be7 Initial contribution. 2014-05-07 23:27:00 +01:00