net: mqtt: Add support for TLS option TLS_CERT_NOCOPY

Add an option in MQTT client context to take advantage of the
"TLS_CERT_NOCOPY" option when using  TLS socket transport.

Signed-off-by: Lucas Dietrich <ld.adecy@gmail.com>
This commit is contained in:
Lucas Dietrich 2021-11-19 09:46:33 +01:00 committed by Anas Nashif
commit 0a0e9079c3
2 changed files with 12 additions and 0 deletions

View file

@ -354,6 +354,9 @@ struct mqtt_sec_config {
* May be NULL to skip hostname verification.
*/
const char *hostname;
/** Indicates the preference for copying certificates to the heap. */
int cert_nocopy;
};
/** @brief MQTT transport type. */