We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c864da0 commit af39998Copy full SHA for af39998
ctx.go
@@ -104,8 +104,9 @@ type TLSHandler struct {
104
clientHelloInfo *tls.ClientHelloInfo
105
}
106
107
-// GetClientInfo Callback function to set CHI
108
-// TODO: Why is this a getter which sets stuff?
+// GetClientInfo Callback function to set ClientHelloInfo
+// Must comply with the method structure of https://cs.opensource.google/go/go/+/refs/tags/go1.20:src/crypto/tls/common.go;l=554-563
109
+// Since we overlay the method of the tls config in the listener method
110
func (t *TLSHandler) GetClientInfo(info *tls.ClientHelloInfo) (*tls.Certificate, error) {
111
t.clientHelloInfo = info
112
return nil, nil //nolint:nilnil // Not returning anything useful here is probably fine
0 commit comments