Home | History | Annotate | Download | only in tls

Lines Matching refs:alert

274 // order to get the application payload, and an optional alert value.
275 func (hc *halfConn) decrypt(b *block) (ok bool, prefixLen int, alertValue alert) {
392 func (hc *halfConn) encrypt(b *block, explicitIVLen int) (bool, alert) {
666 // this is a valid non-alert message: reset the count of alerts
679 if alert(data[1]) == alertCloseNotify {
696 c.in.setErrorLocked(&net.OpError{Op: "remote error", Err: alert(data[1])})
713 c.in.setErrorLocked(c.sendAlert(err.(alert)))
738 // sendAlert sends a TLS alert message.
740 func (c *Conn) sendAlertLocked(err alert) error {
758 // sendAlert sends a TLS alert message.
760 func (c *Conn) sendAlert(err alert) error {
940 return n, c.sendAlertLocked(err.(alert))
1178 // If a close-notify alert is waiting, read it so that
1337 // alert that might be left in the buffer.