Lines Matching refs:vers
34 vers uint16 // TLS version member
653 vers := uint16(b.data[1])<<8 | uint16(b.data[2])
656 if vers != c.vers {
658 …rLocked(fmt.Errorf("tls: received record with version %x when expecting version %x", vers, c.vers))
661 if expect := c.config.Bugs.ExpectInitialRecordVersion; expect != 0 && vers != expect {
663 …rLocked(fmt.Errorf("tls: received record with version %x when expecting version %x", vers, expect))
679 if (typ != recordTypeAlert && typ != want) || vers >= 0x1000 || n >= 0x3000 {
898 vers := c.vers
899 if vers == 0 {
902 vers = VersionTLS10
904 b.data[1] = byte(vers >> 8)
905 b.data[2] = byte(vers)
1000 hasSignatureAndHash: c.vers >= VersionTLS12,
1012 hasSignatureAndHash: c.vers >= VersionTLS12,
1129 if len(b) > 1 && c.vers <= VersionTLS10 && !c.isDTLS {
1295 state.Version = c.vers
1357 prfForVersion(c.vers, c.cipherSuite)(result, c.masterSecret[:], label, seed)