igrr / axtls-8266

axTLS port for ESP8266
Other
79 stars 33 forks source link

Error: invalid handshake #57

Open jtmoderate876 opened 6 years ago

jtmoderate876 commented 6 years ago

I too am getting the Error: invalid handshake

Similar to: https://github.com/esp8266/Arduino/issues/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?

jtmoderate876 commented 6 years ago

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 https://github.com/esp8266/Arduino/issues/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