mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-06-13 08:23:56 +08:00
Apply patch for bug #56098: Support for MQTT over TLS port 443 instead of 8883
This commit is contained in:
@@ -945,6 +945,21 @@ altcp_tls_create_config_client_2wayauth(const u8_t *ca, size_t ca_len, const u8_
|
||||
return conf;
|
||||
}
|
||||
|
||||
int
|
||||
altcp_tls_configure_alpn_protocols(struct altcp_tls_config *conf, const char **protos)
|
||||
{
|
||||
#if defined(MBEDTLS_SSL_ALPN)
|
||||
int ret = mbedtls_ssl_conf_alpn_protocols(&conf->conf, protos);
|
||||
if (ret != 0) {
|
||||
LWIP_DEBUGF(ALTCP_MBEDTLS_DEBUG, ("mbedtls_ssl_conf_alpn_protocols failed: %d\n", ret));
|
||||
}
|
||||
|
||||
return ret;
|
||||
#else
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
altcp_tls_free_config(struct altcp_tls_config *conf)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user