internal/credentials/xds: Add exported comment for HandshakeInfo (#6823)

This commit is contained in:
Zach Reyes 2023-11-30 13:47:27 -05:00 committed by GitHub
parent 737f87b6a1
commit 1b05500d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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,