mutualCipherSuite returns a cipherSuite given a list of supported ciphersuites and the id requested by the peer.
(have []uint16, want uint16)
| 608 | // mutualCipherSuite returns a cipherSuite given a list of supported |
| 609 | // ciphersuites and the id requested by the peer. |
| 610 | func mutualCipherSuite(have []uint16, want uint16) *cipherSuite { |
| 611 | for _, id := range have { |
| 612 | if id == want { |
| 613 | return cipherSuiteByID(id) |
| 614 | } |
| 615 | } |
| 616 | return nil |
| 617 | } |
| 618 | |
| 619 | func cipherSuiteByID(id uint16) *cipherSuite { |
| 620 | for _, cipherSuite := range cipherSuites { |
no test coverage detected
searching dependent graphs…