mosquitto/lib
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
..
cpp Add engine private key password support 2019-02-26 15:50:37 +00:00
actions.c Fix subscribe_multiple datatypes. 2018-11-13 14:05:03 +00:00
callbacks.c Separate out functions from mosquitto.c to aid discoverability. 2018-04-11 15:04:17 +01:00
CMakeLists.txt Fix mosquitto_pub -l if compiled using cmake. 2018-10-23 18:56:00 +01:00
connect.c Fix connection problems when using mosquitto_connect_async(). 2018-08-08 09:21:19 +01:00
dummypthread.h Don't use reserved names in header guards. 2016-03-13 18:43:13 +00:00
handle_connack.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
handle_ping.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
handle_pubackcomp.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
handle_publish.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
handle_pubrec.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
handle_pubrel.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
handle_suback.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
handle_unsuback.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
helpers.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
linker.version Add engine private key password support 2019-02-26 15:50:37 +00:00
logging_mosq.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
logging_mosq.h Bump copyright years. 2018-04-11 15:24:29 +01:00
loop.c Fix TLS connections when using an external event loop. 2018-11-07 21:08:10 +00:00
Makefile Merge branch 'master' 2018-10-23 10:39:20 +01:00
memory_mosq.c Merge branch 'develop' 2018-05-03 07:55:45 +01:00
memory_mosq.h Fixes for building on NetBSD. 2018-08-09 15:21:40 +01:00
messages_mosq.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
messages_mosq.h Bump copyright years. 2018-04-11 15:24:29 +01:00
mosquitto_internal.h Add engine private key password support 2019-02-26 15:50:37 +00:00
mosquitto.c More utf-8 validation. 2018-04-13 17:42:16 +01:00
mosquitto.h Add engine private key password support 2019-02-26 15:50:37 +00:00
mqtt3_protocol.h Bump copyright years. 2018-04-11 15:24:29 +01:00
net_mosq.c Add engine private key password support 2019-02-26 15:50:37 +00:00
net_mosq.h Add engine private key password support 2019-02-26 15:50:37 +00:00
options.c Add engine private key password support 2019-02-26 15:50:37 +00:00
packet_mosq.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
packet_mosq.h Bump copyright years. 2018-04-11 15:24:29 +01:00
read_handle.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
read_handle.h Bump copyright years. 2018-04-11 15:24:29 +01:00
send_connect.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
send_disconnect.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
send_mosq.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
send_mosq.h Fix subscribe_multiple datatypes. 2018-11-13 14:05:03 +00:00
send_publish.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
send_subscribe.c Merge branch 'master' 2018-10-02 08:31:54 +01:00
send_unsubscribe.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
socks_mosq.c add socket headers for FreeBSD 2018-11-07 10:28:26 +00:00
socks_mosq.h Bump copyright years. 2018-04-11 15:24:29 +01:00
srv_mosq.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
thread_mosq.c Fixes for building on FreeBSD. 2018-08-15 17:02:56 +01:00
time_mosq.c Bump copyright years. 2018-04-11 15:24:29 +01:00
time_mosq.h Bump copyright years. 2018-04-11 15:24:29 +01:00
tls_mosq.c Don't use deprecated openssl functions. 2018-04-11 22:10:48 +01:00
tls_mosq.h Add TLS engine and keyform support to libmosquitto 2019-02-26 15:48:00 +00:00
utf8_mosq.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
util_mosq.c Add engine private key password support 2019-02-26 15:50:37 +00:00
util_mosq.h Add engine private key password support 2019-02-26 15:50:37 +00:00
will_mosq.c Consistent use of config.h across the project. 2018-08-16 11:14:51 +01:00
will_mosq.h Bump copyright years. 2018-04-11 15:24:29 +01:00