h2o / picotls

TLS 1.3 implementation in C (master supports RFC8446 as well as draft-26, -27, -28)
536 stars 140 forks source link

use the same table as RFC 8446 section 4.2 #443

Closed kazuho closed 1 year ago

kazuho commented 1 year ago

RFC 8446 provides a table showing where each extensions may appear, and requires stacks to reject extensions appearing in messages where they should not.

This PR refactors code so that the table can be directly embedded in code.

Our previous approach was less intuitive due to two reasons: