(curve CurveID)
| 1028 | } |
| 1029 | |
| 1030 | func (c *Config) supportsCurve(curve CurveID) bool { |
| 1031 | for _, cc := range c.curvePreferences() { |
| 1032 | if cc == curve { |
| 1033 | return true |
| 1034 | } |
| 1035 | } |
| 1036 | return false |
| 1037 | } |
| 1038 | |
| 1039 | // mutualVersion returns the protocol version to use given the advertised |
| 1040 | // versions of the peer. Priority is given to the peer preference order. |
no test coverage detected