We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fac8e8 commit 25b08baCopy full SHA for 25b08ba
tests/unit/s2n_fingerprint_ja4_test.c
@@ -145,9 +145,11 @@ static S2N_RESULT s2n_test_ja4_hash_from_cipher_count(uint16_t cipher_count,
145
};
146
RESULT_GUARD_POSIX(s2n_stuffer_write_bytes(&bytes, before_ciphers, sizeof(before_ciphers)));
147
148
- size_t ciphers_size = cipher_count * S2N_TLS_CIPHER_SUITE_LEN;
+ size_t ciphers_size = cipher_count * sizeof(uint16_t);
149
RESULT_GUARD_POSIX(s2n_stuffer_write_uint16(&bytes, ciphers_size));
150
- RESULT_GUARD_POSIX(s2n_stuffer_skip_write(&bytes, ciphers_size));
+ for (size_t i = 0; i < cipher_count; i++) {
151
+ RESULT_GUARD_POSIX(s2n_stuffer_write_uint16(&bytes, 0));
152
+ }
153
154
uint8_t after_ciphers[] = {
155
S2N_TEST_CLIENT_HELLO_AFTER_CIPHERS,
0 commit comments