Lines Matching refs:readbytes
437 size_t readbytes, written; in test_keylog_no_master_key() local
513 &readbytes), in test_keylog_no_master_key()
859 size_t readbytes; in test_ccs_change_cipher() local
916 if (SSL_read_ex(clientssl, &buf, sizeof(buf), &readbytes) > 0) { in test_ccs_change_cipher()
917 if (!TEST_ulong_eq(readbytes, 0)) in test_ccs_change_cipher()
923 if (SSL_read_ex(serverssl, &buf, sizeof(buf), &readbytes) > 0) { in test_ccs_change_cipher()
924 if (!TEST_ulong_eq(readbytes, 0)) in test_ccs_change_cipher()
1555 size_t written, readbytes; in test_large_app_data() local
1687 &readbytes))) in test_large_app_data()
1690 if (!TEST_mem_eq(msg, written, buf, readbytes)) in test_large_app_data()
3545 size_t readbytes, written, eoedlen, rawread, rawwritten; in test_early_data_read_write() local
3568 &readbytes), in test_early_data_read_write()
3574 if (!TEST_mem_eq(MSG1, readbytes, buf, strlen(MSG1)) in test_early_data_read_write()
3586 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3587 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_read_write()
3598 &readbytes), in test_early_data_read_write()
3600 || !TEST_mem_eq(buf, readbytes, MSG3, strlen(MSG3))) in test_early_data_read_write()
3607 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3608 || !TEST_mem_eq(buf, readbytes, MSG4, strlen(MSG4))) in test_early_data_read_write()
3641 &readbytes), in test_early_data_read_write()
3643 || !TEST_size_t_eq(readbytes, 0)) in test_early_data_read_write()
3662 if (!TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3663 || !TEST_size_t_eq(readbytes, strlen(MSG5))) in test_early_data_read_write()
3672 &readbytes), in test_early_data_read_write()
3678 if (!TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3679 || !TEST_mem_eq(buf, readbytes, MSG6, strlen(MSG6))) in test_early_data_read_write()
3687 if (!TEST_false(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3689 &readbytes))) in test_early_data_read_write()
3695 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3696 || !TEST_mem_eq(buf, readbytes, MSG7, strlen(MSG7))) in test_early_data_read_write()
3719 &readbytes), in test_early_data_read_write()
3721 || !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1))) in test_early_data_read_write()
3734 &readbytes), in test_early_data_read_write()
3742 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3743 || !TEST_size_t_eq(readbytes, strlen(MSG5))) in test_early_data_read_write()
3789 size_t readbytes, written; in test_early_data_replay_int() local
3854 &readbytes), in test_early_data_replay_int()
3866 &readbytes), in test_early_data_replay_int()
3871 if (!TEST_mem_eq(MSG1, strlen(MSG1), buf, readbytes) in test_early_data_replay_int()
3878 &readbytes), in test_early_data_replay_int()
3948 size_t readbytes, written; in early_data_skip_helper() local
4015 &readbytes), in early_data_skip_helper()
4017 || !TEST_size_t_eq(readbytes, 0) in early_data_skip_helper()
4035 &readbytes))) in early_data_skip_helper()
4072 if (!TEST_false(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in early_data_skip_helper()
4094 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in early_data_skip_helper()
4095 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in early_data_skip_helper()
4175 size_t readbytes, written; in test_early_data_not_sent() local
4189 &readbytes), in test_early_data_not_sent()
4191 || !TEST_size_t_eq(readbytes, 0) in test_early_data_not_sent()
4201 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_not_sent()
4202 || !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1)) in test_early_data_not_sent()
4207 if (!TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_not_sent()
4208 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_not_sent()
4267 size_t readbytes, written; in test_early_data_psk() local
4405 &readbytes), readearlyres)) { in test_early_data_psk()
4411 && !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1))) in test_early_data_psk()
4448 size_t readbytes, written; in test_early_data_psk_with_all_ciphers() local
4534 &readbytes), in test_early_data_psk_with_all_ciphers()
4540 if (!TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1)) in test_early_data_psk_with_all_ciphers()
4552 if (!TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_psk_with_all_ciphers()
4553 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_psk_with_all_ciphers()
4584 size_t readbytes, written; in test_early_data_not_expected() local
4614 if (!TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_not_expected()
4615 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_not_expected()
4644 size_t readbytes, written; in test_early_data_tls1_2() local
4663 &readbytes), in test_early_data_tls1_2()
4673 &readbytes), in test_early_data_tls1_2()
4675 || !TEST_size_t_eq(readbytes, 0) in test_early_data_tls1_2()
4685 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_tls1_2()
4686 || !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1)) in test_early_data_tls1_2()
4689 || !SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes) in test_early_data_tls1_2()
4690 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_tls1_2()
6669 size_t readbytes, written; in test_export_key_mat_early() local
6678 &readbytes), in test_export_key_mat_early()
7157 size_t written, readbytes; in test_ssl_clear() local
7202 if (!TEST_true(SSL_read_ex(reader, buf, sizeof(buf), &readbytes)) in test_ssl_clear()
7203 || readbytes != sizeof(buf)) in test_ssl_clear()
7866 size_t written, readbytes; in test_info_callback() local
7890 sizeof(buf), &readbytes), in test_info_callback()
7896 if (!TEST_mem_eq(MSG1, readbytes, buf, strlen(MSG1)) in test_info_callback()
7973 size_t written, readbytes; in test_ssl_pending() local
8021 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_ssl_pending()
8022 || !TEST_size_t_eq(readbytes, sizeof(buf)) in test_ssl_pending()
8023 || !TEST_int_eq(SSL_pending(clientssl), (int)(written - readbytes)) in test_ssl_pending()
8592 size_t written, readbytes; in test_shutdown() local
8640 if (!TEST_false(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_shutdown()
8668 &readbytes)) in test_shutdown()
8669 || !TEST_size_t_eq(readbytes, sizeof(msg)) in test_shutdown()
8670 || !TEST_int_eq(memcmp(msg, buf, readbytes), 0) in test_shutdown()
8672 &readbytes)) in test_shutdown()
8673 || !TEST_size_t_eq(readbytes, sizeof(msg)) in test_shutdown()
8674 || !TEST_int_eq(memcmp(msg, buf, readbytes), 0)) in test_shutdown()
9258 size_t readbytes, written, len; in test_multiblock_write() local
9301 if (!TEST_true(SSL_read_ex(clientssl, p, MULTIBLOCK_FRAGSIZE, &readbytes))) in test_multiblock_write()
9303 p += readbytes; in test_multiblock_write()
9304 len -= readbytes; in test_multiblock_write()
11067 size_t written, readbytes; in test_read_ahead_key_change() local
11106 &readbytes))) in test_read_ahead_key_change()
11109 buf[readbytes] = '\0'; in test_read_ahead_key_change()
11167 size_t written, readbytes; in test_tls13_record_padding() local
11240 &readbytes)) in test_tls13_record_padding()
11241 || !TEST_size_t_eq(written, readbytes)) in test_tls13_record_padding()
11244 buf[readbytes] = '\0'; in test_tls13_record_padding()
11289 size_t written, readbytes, offset, msglen, fragsize = 10, numpipes = 5; in test_pipelining() local
11392 offset += readbytes, numreads++) { in test_pipelining()
11394 msglen - offset, &readbytes))) in test_pipelining()
11425 if (!TEST_true(SSL_read_ex(peera, buf, msglen, &readbytes)) in test_pipelining()
11426 || !TEST_size_t_le(readbytes, msglen)) in test_pipelining()
11432 if (!TEST_true(SSL_read_ex(peera, buf + readbytes, in test_pipelining()
11433 msglen - readbytes, &readbytes2))) in test_pipelining()
11435 readbytes += readbytes2; in test_pipelining()
11436 if (!TEST_size_t_le(readbytes, msglen)) in test_pipelining()
11440 if (!TEST_mem_eq(msg, msglen, buf, readbytes)) in test_pipelining()
11620 size_t written, readbytes; in test_rstate_string() local
11664 if (!TEST_false(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes))) in test_rstate_string()
11788 size_t written, readbytes, totread = 0; in test_data_retry() local
11856 &readbytes)) in test_data_retry()
11857 totread += readbytes; in test_data_retry()