eduardsui / tlse

Single C file TLS 1.2/1.3 implementation, using tomcrypt as crypto library
Other
535 stars 87 forks source link

[FIX] parse supported_versions extension #66

Closed RomiRand closed 2 years ago

RomiRand commented 2 years ago

Currently the parsing function expects at least two supported versions (5+ bytes). TLSe client implementation provides those (0x0304 and draft 28), so it's working. But other clients (like openssl) might only provide one version which should also be accepted. Thus I removed the corresponding check.

Fixes #65