tris: ignore NewSessionTicket messages as client
Prevent unexpected_message alert, PSK resumption is not supported so ignore the received session ticket as client.
This commit is contained in:
parent
de3ae8f61d
commit
8523d7d8e0
6
conn.go
6
conn.go
@ -1256,6 +1256,12 @@ func (c *Conn) handlePostHandshake() error {
|
|||||||
switch hm := msg.(type) {
|
switch hm := msg.(type) {
|
||||||
case *helloRequestMsg:
|
case *helloRequestMsg:
|
||||||
return c.handleRenegotiation(hm)
|
return c.handleRenegotiation(hm)
|
||||||
|
case *newSessionTicketMsg13:
|
||||||
|
if !c.isClient {
|
||||||
|
c.sendAlert(alertUnexpectedMessage)
|
||||||
|
return alertUnexpectedMessage
|
||||||
|
}
|
||||||
|
return nil // TODO implement session tickets
|
||||||
default:
|
default:
|
||||||
c.sendAlert(alertUnexpectedMessage)
|
c.sendAlert(alertUnexpectedMessage)
|
||||||
return alertUnexpectedMessage
|
return alertUnexpectedMessage
|
||||||
|
Loading…
Reference in New Issue
Block a user