MCPcopy
hub / github.com/XTLS/REALITY / pickCipherSuite

Method pickCipherSuite

handshake_client.go:650–658  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

648}
649
650func (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
660func (hs *clientHandshakeState) doFullHandshake() error {
661 c := hs.c

Callers 1

processServerHelloMethod · 0.95

Calls 2

mutualCipherSuiteFunction · 0.85
sendAlertMethod · 0.80

Tested by

no test coverage detected