bifurcation / mint

A Minimal TLS 1.3 Implementation in Go
MIT License
224 stars 36 forks source link

Add support for optional<T> #210

Closed bifurcation closed 4 years ago

bifurcation commented 4 years ago

Required for implementing MLS structs. A pointer field in a struct can be tagged as "optional". The null optional ("0x00") corresponds to the nil pointer. Non-nil pointers are marshaled / unmarshaled as usual, with a 0x01 octet prefixed.