MCPcopy Create free account
hub / github.com/XTLS/Go / requiresClientCert

Function requiresClientCert

common.go:319–326  ·  view source on GitHub ↗

requiresClientCert reports whether the ClientAuthType requires a client certificate to be provided.

(c ClientAuthType)

Source from the content-addressed store, hash-verified

317// requiresClientCert reports whether the ClientAuthType requires a client
318// certificate to be provided.
319func 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.

Callers 3

checkForResumptionMethod · 0.85
checkForResumptionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…