requiresClientCert reports whether the ClientAuthType requires a client certificate to be provided.
(c ClientAuthType)
| 356 | // requiresClientCert reports whether the ClientAuthType requires a client |
| 357 | // certificate to be provided. |
| 358 | func requiresClientCert(c ClientAuthType) bool { |
| 359 | switch c { |
| 360 | case RequireAnyClientCert, RequireAndVerifyClientCert: |
| 361 | return true |
| 362 | default: |
| 363 | return false |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | // ClientSessionCache is a cache of ClientSessionState objects that can be used |
| 368 | // by a client to resume a TLS session with a given server. ClientSessionCache |
no outgoing calls
no test coverage detected
searching dependent graphs…