()
| 456 | } |
| 457 | |
| 458 | func (hs *clientHandshakeState) pickCipherSuite() error { |
| 459 | if hs.suite = mutualCipherSuite(hs.hello.cipherSuites, hs.serverHello.cipherSuite); hs.suite == nil { |
| 460 | hs.c.sendAlert(alertHandshakeFailure) |
| 461 | return errors.New("tls: server chose an unconfigured cipher suite") |
| 462 | } |
| 463 | |
| 464 | hs.c.cipherSuite = hs.suite.id |
| 465 | return nil |
| 466 | } |
| 467 | |
| 468 | func (hs *clientHandshakeState) doFullHandshake() error { |
| 469 | c := hs.c |
no test coverage detected