Skip to content

Commit

Permalink
internal/credentials/xds: Add exported comment for HandshakeInfo (#6823)
Browse files Browse the repository at this point in the history
  • Loading branch information
zasweq committed Nov 30, 2023
1 parent 737f87b commit 1b05500
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/credentials/xds/handshake_info.go
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 1b05500

Please sign in to comment.