HomeACcessoryKid / life-cycle-manager

Initial install, WiFi settings and over the air firmware upgrades for any esp-open-rtos repository on GitHub
Apache License 2.0
60 stars 11 forks source link

Enable SNI in wolfSSL and use it for over the air updates #28

Closed dbussink closed 3 years ago

dbussink commented 3 years ago

SNI is a must have these days to connect to stuff on the internet as more and more things require it. This adds SNI handling to ota.c to make sure it sends the SNI TLS extension on connecting to a secure domain.

The new GitHub releases CDN domain requires SNI and this helps resolve the issues with that.

HomeACcessoryKid commented 3 years ago

Thanks DirkJan

I have merged the PR manually and had to add -DHAVE_TLS_EXTENSIONS to make it work It grew the binary beyond the available space but that has been remedied by using -Os

I will close this PR, but the honor is yours ;-)