Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EchConfigBytes for encrypted client hello configs
Raw ECH configs are likely to be shared between Rustls and other crates (e.g. they may be read from `rustls-pemfile` and `.pem` inputs for server configuration, or they may be fetched from DNS using DNS-over-HTTPS using `hickory-dns` for client config). This commit introduces a `EchConfigBytes` type, wrapping `BytesInner`, that allows representing borrowed or owned raw TLS encoded ECH configs. This type can be used between crates to maintain typed context for the bytes throughout. See draft-ietf-tls-esni-18 §4[0] for more information on ECH configs. [0]: https://datatracker.ietf.org/doc/html/draft-ietf-tls-esni-18#section-4
- Loading branch information