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: document the different ClientAuthTypes #34023
The ClientAuthType constants are specified here: https://golang.org/pkg/crypto/tls/#ClientAuthType
It's sort of intuitive what they mean, but strangely they are lacking any godocs, unlike the rest of the package. In fact, I think they're the only values that are not documented (other than the protocol version consts, which don't really need docs IMO).
Even tls.Config.ClientAuth only has this for its godoc:
// ClientAuth determines the server's policy for // TLS Client Authentication. The default is NoClientCert.
which does not explain what the different policies actually do.
Anyway, I was wondering if some clarification could be added as to exactly what these do.
Thanks for considering!
(Apologies that I'm not using the issue template in this case, as this is a minor issue that involves only documentation.)