MCPcopy
hub / github.com/caddyserver/caddy / CipherSuiteNameSupported

Function CipherSuiteNameSupported

modules/caddytls/values.go:28–30  ·  view source on GitHub ↗

CipherSuiteNameSupported returns true if name is a supported cipher suite.

(name string)

Source from the content-addressed store, hash-verified

26// CipherSuiteNameSupported returns true if name is
27// a supported cipher suite.
28func CipherSuiteNameSupported(name string) bool {
29 return CipherSuiteID(name) != 0
30}
31
32// CipherSuiteID returns the ID of the cipher suite associated with
33// the given name, or 0 if the name is not recognized/supported.

Callers 1

parseTLSFunction · 0.92

Calls 1

CipherSuiteIDFunction · 0.85

Tested by

no test coverage detected