Home | History | Annotate | Download | only in tls

Lines Matching refs:Handshake

30 	// constant after handshake; protected by handshakeMutex
33 // to running the handshake for this Conn. Other goroutines that need
34 // to wait for the handshake can wait on this, under handshakeMutex.
36 handshakeErr error // error resulting from handshake
41 // application data (i.e. is not currently processing a handshake).
63 // message during the most recent handshake. This is recorded because
75 // by the client or server in the most recent handshake. This is
88 hand bytes.Buffer // handshake data waiting to be read
570 // handshake data if handshake not yet completed,
579 return c.in.setErrorLocked(errors.New("tls: handshake or ChangeCipherSpec requested while not in handshake"))
584 return c.in.setErrorLocked(errors.New("tls: application data record requested while in handshake"))
615 return c.in.setErrorLocked(c.newRecordHeaderError("unsupported SSLv2 handshake received"))
637 return c.in.setErrorLocked(c.newRecordHeaderError("first record does not look like a TLS handshake"))
706 // Handshake messages are not allowed to fragment across the CCS
957 // readHandshake reads the next handshake message from
974 return nil, c.in.setErrorLocked(fmt.Errorf("tls: handshake message of length %d bytes exceeds maximum of %d bytes", n, maxHandshake))
1021 // The handshake message unmarshalers
1051 if err := c.Handshake(); err != nil {
1094 // handleRenegotiation processes a HelloRequest handshake message.
1139 if err = c.Handshake(); err != nil {
1143 // Put this after Handshake, in case people were calling
1144 Handshake.
1161 // We received handshake bytes, indicating the
1242 var errEarlyCloseWrite = errors.New("tls: CloseWrite called before handshake complete")
1245 // called once the handshake has completed and does not call CloseWrite on the
1268 // Handshake runs the client or server handshake
1270 // Most uses of this package need not call Handshake
1272 func (c *Conn) Handshake() error {
1274 // c.handshakeMutex. In order to perform a handshake, we need to lock
1279 // need to check whether a handshake is pending (such as Write) to
1282 // Thus we first take c.handshakeMutex to check whether a handshake is
1287 // handshake. The problem was that it was possible for a Read to
1288 // complete the handshake once handshakeMutex was unlocked and then
1293 // to running the handshake and other goroutines can wait on it if they
1313 // running the handshake.
1322 // The handshake cannot have completed when handshakeMutex was unlocked
1325 panic("handshake should not have been able to complete after handshakeCond was set")
1342 panic("handshake should have had a result.")
1345 // Wake any other goroutines that are waiting for this handshake to
1403 return errors.New("tls: handshake has not yet been performed")
1406 return errors.New("tls: handshake did not verify certificate chain")