Skip to content

Commit

Permalink
remove rfc reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jouho committed Oct 30, 2024
1 parent 90cdf38 commit d4f6982
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crypto/s2n_sequence.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,8 @@ int s2n_increment_sequence_number(struct s2n_blob *sequence_number)
break;
}

/* Renegotiation is an unstable feature currently used for delayed client auth. Instead of
* triggering renegotiation, throw an error.
/* If a sequence number would exceed the maximum value, then we need to start a new session.
* This condition is very unlikely. It requires 2^64 - 1 records to be sent.
*
*= https://www.rfc-editor.org/rfc/rfc5246#section-6.1
*# If a TLS implementation would need to wrap a sequence number, it must
*# renegotiate instead.
*/
S2N_ERROR_IF(i == 0, S2N_ERR_RECORD_LIMIT);

Expand Down

0 comments on commit d4f6982

Please sign in to comment.