()
| 648 | } |
| 649 | |
| 650 | func (hs *clientHandshakeState) pickCipherSuite() error { |
| 651 | if hs.suite = mutualCipherSuite(hs.hello.cipherSuites, hs.serverHello.cipherSuite); hs.suite == nil { |
| 652 | hs.c.sendAlert(alertHandshakeFailure) |
| 653 | return errors.New("tls: server chose an unconfigured cipher suite") |
| 654 | } |
| 655 | |
| 656 | hs.c.cipherSuite = hs.suite.id |
| 657 | return nil |
| 658 | } |
| 659 | |
| 660 | func (hs *clientHandshakeState) doFullHandshake() error { |
| 661 | c := hs.c |
no test coverage detected