[SAoC2022] QUIC Protocol : Milestone 1, Part 2

Vlad Chicoș vladut.chicos at gmail.com
Thu Oct 6 20:06:36 UTC 2022


On Thursday, 6 October 2022 at 19:01:22 UTC, Kagamin wrote:
> ```
> alias tlsVersion = ubyte[2];
>
> struct SupportedVersions
> {
>     tlsVersion[] tlsVersions = [0x3, 0x4];
> }
> ```
> Wait, this compiles? And what it does?

Thank you for warning me. Indeed, it does look wrong. I changed 
it, should be better now. That struct should be a TLS extension 
that provides a list of available TLS versions needed for peer 
negotiation. I gave it a default value(for TLS 1.3) since it is 
the only one allowed by QUIC.


More information about the Digitalmars-d mailing list