Skip to content

Commit

Permalink
fix: tag restls modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
3andne committed Mar 12, 2023
1 parent bed73c7 commit dc82a4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion handshake_client_tls13.go
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ func (c *Conn) handleNewSessionTicket(msg *newSessionTicketMsgTLS13) error {
return errors.New("tls: received new session ticket from a client")
}

debugf("c.config.SessionTicketsDisabled %v || c.config.ClientSessionCache == nil %v\n", c.config.SessionTicketsDisabled, c.config.ClientSessionCache == nil)
debugf("c.config.SessionTicketsDisabled %v || c.config.ClientSessionCache == nil %v\n", c.config.SessionTicketsDisabled, c.config.ClientSessionCache == nil) // #Restls#

if c.config.SessionTicketsDisabled || c.config.ClientSessionCache == nil {
return nil
Expand Down
2 changes: 1 addition & 1 deletion u_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ func (c *UConn) clientHandshake(ctx context.Context) (err error) {
return err
}
if cacheKey != "" && session != nil {
debugf("found session")
debugf("found session") // #Restls#
defer func() {
// If we got a handshake failure when resuming a session, throw away
// the session ticket. See RFC 5077, Section 3.2.
Expand Down

0 comments on commit dc82a4a

Please sign in to comment.