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)
| 123 | // NewHandshakeInfo returns a new handshake info configured with the provided |
| 124 | // options. |
| 125 | func 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. |
no outgoing calls