Lines Matching refs:alert
320 func (hc *halfConn) decrypt(b *block) (ok bool, prefixLen int, alertValue alert) {
458 func (hc *halfConn) encrypt(b *block, explicitIVLen int) (bool, alert) {
748 if alert(data[1]) == alertCloseNotify {
758 c.in.setErrorLocked(&net.OpError{Op: "remote error", Err: alert(data[1])})
770 c.in.setErrorLocked(c.sendAlert(err.(alert)))
802 func (c *Conn) sendAlertLocked(err alert) error {
825 func (c *Conn) sendAlert(err alert) error {
845 alert := make([]byte, 2)
846 alert[0] = alertLevelWarning
847 alert[1] = byte(c.config.Bugs.SendWarningAlerts)
848 c.writeRecord(recordTypeAlert, alert)
935 c.tmp[1] = byte(err.(alert))