feat(mqtt): enable custom TLS cipher suites for MQTTs

- Add `ciphersuites_list` to `esp_mqtt_client_config_t` for specifying TLS cipher suites.
- Update SSL transport configuration to use the provided cipher suites.
- Users are responsible for managing the cipher suites list memory.
This commit is contained in:
dhb
2025-05-21 10:05:00 +02:00
committed by glmfe
parent 6af4446a48
commit 00cc9dbd9a
3 changed files with 10 additions and 0 deletions

View File

@@ -274,6 +274,8 @@ typedef struct esp_mqtt_client_config_t {
If NULL, server certificate CN must match hostname.
This is ignored if skip_cert_common_name_check=true.
It's not copied nor freed by the client, user needs to clean up.*/
const int *ciphersuites_list; /*!< Pointer to a zero-terminated array of IANA identifiers of TLS cipher suites.
Please ensure the validity of the list, and note that it is not copied or freed by the client. */
} verification; /*!< Security verification of the broker */
} broker; /*!< Broker address and security verification */
/**