()
| 58 | } |
| 59 | |
| 60 | func 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 | |
| 71 | func ParseCipherList(ciphers string) ([]uint16, error) { |
| 72 | if ciphers == "" { |