Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
crypto/tls: export some constants and helpers such as Unmarshaling methods for headers #23679
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
Sorry, we don't want to export more stuff from the crypto/tls package. Any extra API is extra godoc and is extra user confusion when trying to read the docs.
If you just want to parse SNI using crypto/tls, see what I did at https://github.com/google/tcpproxy/blob/de1c7de/sni.go#L156
You could copy that, or move it to a common package on github somewhere.