MCPcopy
hub / github.com/grpc/grpc-go / NewHandshakeInfo

Function NewHandshakeInfo

internal/credentials/xds/handshake_info.go:125–135  ·  view source on GitHub ↗

NewHandshakeInfo returns a new handshake info configured with the provided options.

(rootProvider certprovider.Provider, identityProvider certprovider.Provider, sanMatchers []matcher.StringMatcher, requireClientCert bool, sni string, validateSANUsingSNI bool, useAutoHostSNI bool)

Source from the content-addressed store, hash-verified

123// NewHandshakeInfo returns a new handshake info configured with the provided
124// options.
125func NewHandshakeInfo(rootProvider certprovider.Provider, identityProvider certprovider.Provider, sanMatchers []matcher.StringMatcher, requireClientCert bool, sni string, validateSANUsingSNI bool, useAutoHostSNI bool) *HandshakeInfo {
126 return &HandshakeInfo{
127 rootProvider: rootProvider,
128 identityProvider: identityProvider,
129 sanMatchers: sanMatchers,
130 requireClientCert: requireClientCert,
131 sni: sni,
132 validateSANUsingSNI: validateSANUsingSNI,
133 useAutoHostSNI: useAutoHostSNI,
134 }
135}
136
137// UseFallbackCreds returns true when fallback credentials are to be used based
138// on the contents of the HandshakeInfo.

Calls

no outgoing calls