Skip to content

Commit

Permalink
Revert "[SYS] Add alpn (1technophile#1745)"
Browse files Browse the repository at this point in the history
This reverts commit bfca747.
  • Loading branch information
Michael Haberler committed Sep 19, 2023
1 parent 2a10b5d commit cb23457
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions main/User_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,6 @@ const char* certificate PROGMEM = R"EOF("
# define AWS_IOT false
# endif

# if AWS_IOT
// Enable the use of ALPN for AWS IoT Core with the port 443
const char* alpnProtocols[] = {"x-amzn-mqtt-ca", NULL};
# endif

//# define MQTT_HTTPS_FW_UPDATE //uncomment to enable updating via MQTT message.

# ifdef MQTT_HTTPS_FW_UPDATE
Expand Down
5 changes: 0 additions & 5 deletions main/main.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1272,11 +1272,6 @@ void setupTLS(bool self_signed, uint8_t index) {
Log.notice(F("Using self signed cert index %u" CR), index);
# if defined(ESP32)
sClient->setCACert(certs_array[index].server_cert);
# if AWS_IOT
if (strcmp(mqtt_port, "443") == 0) {
sClient->setAlpnProtocols(alpnProtocols);
}
# endif
# if MQTT_SECURE_SELF_SIGNED_CLIENT
sClient->setCertificate(certs_array[index].client_cert);
sClient->setPrivateKey(certs_array[index].client_key);
Expand Down

0 comments on commit cb23457

Please sign in to comment.