You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
7 years ago
..
cpp Add engine private key password support 7 years ago
CMakeLists.txt Fix mosquitto_pub -l if compiled using cmake. 7 years ago
Makefile Merge branch 'master' 7 years ago
actions.c Fix subscribe_multiple datatypes. 7 years ago
callbacks.c Separate out functions from mosquitto.c to aid discoverability. 8 years ago
connect.c Fix connection problems when using mosquitto_connect_async(). 7 years ago
dummypthread.h Don't use reserved names in header guards. 10 years ago
handle_connack.c Consistent use of config.h across the project. 7 years ago
handle_ping.c Consistent use of config.h across the project. 7 years ago
handle_pubackcomp.c Consistent use of config.h across the project. 7 years ago
handle_publish.c Consistent use of config.h across the project. 7 years ago
handle_pubrec.c Consistent use of config.h across the project. 7 years ago
handle_pubrel.c Consistent use of config.h across the project. 7 years ago
handle_suback.c Consistent use of config.h across the project. 7 years ago
handle_unsuback.c Consistent use of config.h across the project. 7 years ago
helpers.c Consistent use of config.h across the project. 7 years ago
linker.version Add engine private key password support 7 years ago
logging_mosq.c Consistent use of config.h across the project. 7 years ago
logging_mosq.h Bump copyright years. 8 years ago
loop.c Fix TLS connections when using an external event loop. 7 years ago
memory_mosq.c Merge branch 'develop' 8 years ago
memory_mosq.h Fixes for building on NetBSD. 7 years ago
messages_mosq.c Consistent use of config.h across the project. 7 years ago
messages_mosq.h Bump copyright years. 8 years ago
mosquitto.c More utf-8 validation. 8 years ago
mosquitto.h Add engine private key password support 7 years ago
mosquitto_internal.h Add engine private key password support 7 years ago
mqtt3_protocol.h Bump copyright years. 8 years ago
net_mosq.c Add engine private key password support 7 years ago
net_mosq.h Add engine private key password support 7 years ago
options.c Add engine private key password support 7 years ago
packet_mosq.c Consistent use of config.h across the project. 7 years ago
packet_mosq.h Bump copyright years. 8 years ago
read_handle.c Consistent use of config.h across the project. 7 years ago
read_handle.h Bump copyright years. 8 years ago
send_connect.c Consistent use of config.h across the project. 7 years ago
send_disconnect.c Consistent use of config.h across the project. 7 years ago
send_mosq.c Consistent use of config.h across the project. 7 years ago
send_mosq.h Fix subscribe_multiple datatypes. 7 years ago
send_publish.c Consistent use of config.h across the project. 7 years ago
send_subscribe.c Merge branch 'master' 7 years ago
send_unsubscribe.c Consistent use of config.h across the project. 7 years ago
socks_mosq.c add socket headers for FreeBSD 7 years ago
socks_mosq.h Bump copyright years. 8 years ago
srv_mosq.c Consistent use of config.h across the project. 7 years ago
thread_mosq.c Fixes for building on FreeBSD. 7 years ago
time_mosq.c Bump copyright years. 8 years ago
time_mosq.h Bump copyright years. 8 years ago
tls_mosq.c Don't use deprecated openssl functions. 8 years ago
tls_mosq.h Add TLS engine and keyform support to libmosquitto 7 years ago
utf8_mosq.c Consistent use of config.h across the project. 7 years ago
util_mosq.c Add engine private key password support 7 years ago
util_mosq.h Add engine private key password support 7 years ago
will_mosq.c Consistent use of config.h across the project. 7 years ago
will_mosq.h Bump copyright years. 8 years ago