Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
maddeleine committed Mar 27, 2024
1 parent 9e11152 commit 2c8eef5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/unit/s2n_traffic_context_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ int main(int argc, char **argv)
/* Negotiation must be complete before calling this function */
EXPECT_SUCCESS(s2n_config_set_traffic_context_version(config, S2N_TRAFFIC_CONTEXT_V1));
EXPECT_FAILURE_WITH_ERRNO(s2n_connection_get_traffic_context(conn, buffer, length),
S2N_ERR_INVALID_STATE);
S2N_ERR_HANDSHAKE_NOT_COMPLETE);

/* Buffer must be large enough to hold entire traffic context */
EXPECT_OK(s2n_skip_handshake(conn));
Expand Down
2 changes: 1 addition & 1 deletion tls/s2n_connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,7 @@ int s2n_connection_get_traffic_context(struct s2n_connection *conn, uint8_t *buf
POSIX_ENSURE(conn->config->traffic_context != S2N_TRAFFIC_CONTEXT_NONE, S2N_ERR_INVALID_STATE);

/* This method must be called after negotiation */
POSIX_ENSURE(s2n_handshake_is_complete(conn), S2N_ERR_INVALID_STATE);
POSIX_ENSURE(s2n_handshake_is_complete(conn), S2N_ERR_HANDSHAKE_NOT_COMPLETE);

/* Best effort check for pending input or output data.
* This method should not be called until the application has stopped sending and receiving.
Expand Down

0 comments on commit 2c8eef5

Please sign in to comment.