Skip to content

Commit

Permalink
Add exported comment for HandshakeInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
zasweq committed Nov 29, 2023
1 parent bc16b5f commit 6d8482c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/credentials/xds/handshake_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ type HandshakeInfo struct {
requireClientCert bool // Only on server side.
}

// NewHandshakeInfo returns a new handshake info configured with the provided
// options.
func NewHandshakeInfo(rootProvider certprovider.Provider, identityProvider certprovider.Provider, sanMatchers []matcher.StringMatcher, requireClientCert bool) *HandshakeInfo {
return &HandshakeInfo{
rootProvider: rootProvider,
Expand Down

0 comments on commit 6d8482c

Please sign in to comment.