igrr / axtls-8266

axTLS port for ESP8266

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: invalid handshake

jtmoderate876 opened this issue · comments

I too am getting the Error: invalid handshake

Similar to:
esp8266/Arduino#3661

experienced by @sukretniy

but I don't (yet) have the skills/experience/setup to try and recompile from:
uint8_t *buf = &ssl->bm_data[ssl->dc->bm_proc_index];

To:
uint8_t *buf = &ssl->bm_data[ssl->dc->bm_proc_index > 0 ? ssl->dc->bm_proc_index + 6 : ssl->dc->bm_proc_index];

Any chance someone more talented than I can fix this?

Thankfully, @sukretniy took a version of his fix, (I think) changing axtls:
uint8_t *buf = &ssl->bm_data[ssl->dc->bm_proc_index];
replace with:
uint8_t *buf = &ssl->bm_data[ssl->dc->bm_proc_index > 0 ? ssl->dc->bm_proc_index + 6 : ssl->dc->bm_proc_index];

and recompiled it for me because I don't know how and he was kind enough to do so (see his issue esp8266/Arduino#3661) .
And his fix works for online.wonderware.com too!
It would be good to get this fix into the main code:
igrr/axtls-8266