Skip to content

Commit

Permalink
Add more description to GetClientInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneWerner87 committed Oct 16, 2023
1 parent c864da0 commit af39998
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ type TLSHandler struct {
clientHelloInfo *tls.ClientHelloInfo
}

// GetClientInfo Callback function to set CHI
// 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
// Since we overlay the method of the tls config in the listener method
func (t *TLSHandler) GetClientInfo(info *tls.ClientHelloInfo) (*tls.Certificate, error) {
t.clientHelloInfo = info
return nil, nil //nolint:nilnil // Not returning anything useful here is probably fine
Expand Down

0 comments on commit af39998

Please sign in to comment.