mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-08-20 21:41:40 +08:00
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>
This commit is contained in:
committed by
Roger A. Light
parent
098a1c8ecf
commit
f88cc06435
@@ -366,4 +366,14 @@ int mosquittopp::tls_psk_set(const char *psk, const char *identity, const char *
|
||||
return mosquitto_tls_psk_set(m_mosq, psk, identity, ciphers);
|
||||
}
|
||||
|
||||
int mosquittopp::tls_engine_set(const char *engine_id)
|
||||
{
|
||||
return mosquitto_tls_engine_set(m_mosq, engine_id);
|
||||
}
|
||||
|
||||
int mosquittopp::tls_keyform_set(const char *keyform)
|
||||
{
|
||||
return mosquitto_tls_keyform_set(m_mosq, keyform);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user