Lines Matching refs:readbytes

449     size_t readbytes, written;  in test_keylog_no_master_key()  local
525 &readbytes), in test_keylog_no_master_key()
844 size_t readbytes; in test_ccs_change_cipher() local
901 if (SSL_read_ex(clientssl, &buf, sizeof(buf), &readbytes) > 0) { in test_ccs_change_cipher()
902 if (!TEST_ulong_eq(readbytes, 0)) in test_ccs_change_cipher()
908 if (SSL_read_ex(serverssl, &buf, sizeof(buf), &readbytes) > 0) { in test_ccs_change_cipher()
909 if (!TEST_ulong_eq(readbytes, 0)) in test_ccs_change_cipher()
3273 size_t readbytes, written, eoedlen, rawread, rawwritten; in test_early_data_read_write() local
3285 sizeof(buf), &readbytes), in test_early_data_read_write()
3287 || !TEST_mem_eq(MSG1, readbytes, buf, strlen(MSG1)) in test_early_data_read_write()
3299 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3300 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_read_write()
3311 &readbytes), in test_early_data_read_write()
3313 || !TEST_mem_eq(buf, readbytes, MSG3, strlen(MSG3))) in test_early_data_read_write()
3320 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3321 || !TEST_mem_eq(buf, readbytes, MSG4, strlen(MSG4))) in test_early_data_read_write()
3354 &readbytes), in test_early_data_read_write()
3356 || !TEST_size_t_eq(readbytes, 0)) in test_early_data_read_write()
3375 if (!TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3376 || !TEST_size_t_eq(readbytes, strlen(MSG5))) in test_early_data_read_write()
3385 &readbytes), in test_early_data_read_write()
3391 if (!TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3392 || !TEST_mem_eq(buf, readbytes, MSG6, strlen(MSG6))) in test_early_data_read_write()
3400 if (!TEST_false(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3402 &readbytes))) in test_early_data_read_write()
3408 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3409 || !TEST_mem_eq(buf, readbytes, MSG7, strlen(MSG7))) in test_early_data_read_write()
3432 &readbytes), in test_early_data_read_write()
3434 || !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1))) in test_early_data_read_write()
3447 &readbytes), in test_early_data_read_write()
3455 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3456 || !TEST_size_t_eq(readbytes, strlen(MSG5))) in test_early_data_read_write()
3502 size_t readbytes, written; in test_early_data_replay_int() local
3564 &readbytes), in test_early_data_replay_int()
3576 &readbytes), in test_early_data_replay_int()
3578 || !TEST_mem_eq(MSG1, strlen(MSG1), buf, readbytes) in test_early_data_replay_int()
3585 &readbytes), in test_early_data_replay_int()
3639 size_t readbytes, written; in early_data_skip_helper() local
3682 &readbytes), in early_data_skip_helper()
3684 || !TEST_size_t_eq(readbytes, 0) in early_data_skip_helper()
3702 &readbytes))) in early_data_skip_helper()
3739 if (!TEST_false(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in early_data_skip_helper()
3760 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in early_data_skip_helper()
3761 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in early_data_skip_helper()
3826 size_t readbytes, written; in test_early_data_not_sent() local
3839 &readbytes), in test_early_data_not_sent()
3841 || !TEST_size_t_eq(readbytes, 0) in test_early_data_not_sent()
3851 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_not_sent()
3852 || !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1)) in test_early_data_not_sent()
3857 if (!TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_not_sent()
3858 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_not_sent()
3917 size_t readbytes, written; in test_early_data_psk() local
4052 &readbytes), readearlyres) in test_early_data_psk()
4054 && !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1))) in test_early_data_psk()
4089 size_t readbytes, written; in test_early_data_psk_with_all_ciphers() local
4152 &readbytes), in test_early_data_psk_with_all_ciphers()
4154 || !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1)) in test_early_data_psk_with_all_ciphers()
4166 if (!TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_psk_with_all_ciphers()
4167 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_psk_with_all_ciphers()
4198 size_t readbytes, written; in test_early_data_not_expected() local
4227 if (!TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_not_expected()
4228 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_not_expected()
4257 size_t readbytes, written; in test_early_data_tls1_2() local
4275 &readbytes), in test_early_data_tls1_2()
4285 &readbytes), in test_early_data_tls1_2()
4287 || !TEST_size_t_eq(readbytes, 0) in test_early_data_tls1_2()
4297 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_tls1_2()
4298 || !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1)) in test_early_data_tls1_2()
4301 || !SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes) in test_early_data_tls1_2()
4302 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_tls1_2()
6045 size_t readbytes, written; in test_export_key_mat_early() local
6054 &readbytes), in test_export_key_mat_early()
7128 size_t written, readbytes; in test_info_callback() local
7147 sizeof(buf), &readbytes), in test_info_callback()
7149 || !TEST_mem_eq(MSG1, readbytes, buf, strlen(MSG1)) in test_info_callback()
7222 size_t written, readbytes; in test_ssl_pending() local
7270 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_ssl_pending()
7271 || !TEST_size_t_eq(readbytes, sizeof(buf)) in test_ssl_pending()
7272 || !TEST_int_eq(SSL_pending(clientssl), (int)(written - readbytes)) in test_ssl_pending()
7811 size_t written, readbytes; in test_shutdown() local
7859 if (!TEST_false(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_shutdown()
7887 &readbytes)) in test_shutdown()
7888 || !TEST_size_t_eq(readbytes, sizeof(msg)) in test_shutdown()
7889 || !TEST_int_eq(memcmp(msg, buf, readbytes), 0) in test_shutdown()
7891 &readbytes)) in test_shutdown()
7892 || !TEST_size_t_eq(readbytes, sizeof(msg)) in test_shutdown()
7893 || !TEST_int_eq(memcmp(msg, buf, readbytes), 0)) in test_shutdown()
8397 size_t readbytes, written, len; in test_multiblock_write() local
8440 if (!TEST_true(SSL_read_ex(clientssl, p, MULTIBLOCK_FRAGSIZE, &readbytes))) in test_multiblock_write()
8442 p += readbytes; in test_multiblock_write()
8443 len -= readbytes; in test_multiblock_write()