diff --git a/conn.go b/conn.go index 5fd2b13..665cbda 100644 --- a/conn.go +++ b/conn.go @@ -1256,6 +1256,12 @@ func (c *Conn) handlePostHandshake() error { switch hm := msg.(type) { case *helloRequestMsg: return c.handleRenegotiation(hm) + case *newSessionTicketMsg13: + if !c.isClient { + c.sendAlert(alertUnexpectedMessage) + return alertUnexpectedMessage + } + return nil // TODO implement session tickets default: c.sendAlert(alertUnexpectedMessage) return alertUnexpectedMessage