MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / init

Function init

tlsutil/util.go:60–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60func init() {
61 cipherNameToID = make(map[string]uint16)
62 for _, cipher := range tls.CipherSuites() {
63 cipherNameToID[cipher.Name] = cipher.ID
64 }
65 curveNameToID = make(map[string]tls.CurveID)
66 for _, curve := range fullCurveList {
67 curveNameToID[curve.String()] = curve
68 }
69}
70
71func ParseCipherList(ciphers string) ([]uint16, error) {
72 if ciphers == "" {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected