Add support for ALPN

Closes IDF-1162

Closes https://github.com/espressif/esp-mqtt/issues/137
This commit is contained in:
Marius Vikhammer committed 2019-11-20 17:30:58 +08:00
1 parent c1766c0f56
commit e1ab64f0d8
3 files changed
+40

No files matched your search

+1
View File
@@ -167,6 +167,7 @@ typedef struct {
const struct psk_key_hint* psk_hint_key; /*!< Pointer to PSK struct defined in esp_tls.h to enable PSK authentication (as alternative to certificate verification). If not NULL and server/client certificates are NULL, PSK is enabled */
bool use_global_ca_store; /*!< Use a global ca_store for all the connections in which this bool is set. */
int reconnect_timeout_ms; /*!< Reconnect to the broker after this value in miliseconds if auto reconnect is not disabled */
const char **alpn_protos; /*!< NULL-terminated list of supported application protocols to be used for ALPN */
} esp_mqtt_client_config_t;
/**
+1
View File
@@ -43,6 +43,7 @@
// Features supported in 4.1
#define MQTT_SUPPORTED_FEATURE_PSK_AUTHENTICATION
#define MQTT_SUPPORTED_FEATURE_DER_CERTIFICATES
#define MQTT_SUPPORTED_FEATURE_ALPN
#endif
#endif