requiresClientCert reports whether the ClientAuthType requires a client certificate to be provided.
(c ClientAuthType)
| 317 | // requiresClientCert reports whether the ClientAuthType requires a client |
| 318 | // certificate to be provided. |
| 319 | func requiresClientCert(c ClientAuthType) bool { |
| 320 | switch c { |
| 321 | case RequireAnyClientCert, RequireAndVerifyClientCert: |
| 322 | return true |
| 323 | default: |
| 324 | return false |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | // ClientSessionState contains the state needed by clients to resume TLS |
| 329 | // sessions. |
no outgoing calls
no test coverage detected
searching dependent graphs…