Lines Matching refs:readbytes
437 size_t readbytes, written; in test_keylog_no_master_key() local
513 &readbytes), in test_keylog_no_master_key()
853 size_t readbytes; in test_ccs_change_cipher() local
910 if (SSL_read_ex(clientssl, &buf, sizeof(buf), &readbytes) > 0) { in test_ccs_change_cipher()
911 if (!TEST_ulong_eq(readbytes, 0)) in test_ccs_change_cipher()
917 if (SSL_read_ex(serverssl, &buf, sizeof(buf), &readbytes) > 0) { in test_ccs_change_cipher()
918 if (!TEST_ulong_eq(readbytes, 0)) in test_ccs_change_cipher()
1537 size_t written, readbytes; in test_large_app_data() local
1667 &readbytes))) in test_large_app_data()
1670 if (!TEST_mem_eq(msg, written, buf, readbytes)) in test_large_app_data()
3518 size_t readbytes, written, eoedlen, rawread, rawwritten; in test_early_data_read_write() local
3535 &readbytes), in test_early_data_read_write()
3541 if (!TEST_mem_eq(MSG1, readbytes, buf, strlen(MSG1)) in test_early_data_read_write()
3553 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3554 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_read_write()
3565 &readbytes), in test_early_data_read_write()
3567 || !TEST_mem_eq(buf, readbytes, MSG3, strlen(MSG3))) in test_early_data_read_write()
3574 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3575 || !TEST_mem_eq(buf, readbytes, MSG4, strlen(MSG4))) in test_early_data_read_write()
3608 &readbytes), in test_early_data_read_write()
3610 || !TEST_size_t_eq(readbytes, 0)) in test_early_data_read_write()
3629 if (!TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3630 || !TEST_size_t_eq(readbytes, strlen(MSG5))) in test_early_data_read_write()
3639 &readbytes), in test_early_data_read_write()
3645 if (!TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3646 || !TEST_mem_eq(buf, readbytes, MSG6, strlen(MSG6))) in test_early_data_read_write()
3654 if (!TEST_false(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3656 &readbytes))) in test_early_data_read_write()
3662 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3663 || !TEST_mem_eq(buf, readbytes, MSG7, strlen(MSG7))) in test_early_data_read_write()
3686 &readbytes), in test_early_data_read_write()
3688 || !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1))) in test_early_data_read_write()
3701 &readbytes), in test_early_data_read_write()
3709 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3710 || !TEST_size_t_eq(readbytes, strlen(MSG5))) in test_early_data_read_write()
3756 size_t readbytes, written; in test_early_data_replay_int() local
3821 &readbytes), in test_early_data_replay_int()
3833 &readbytes), in test_early_data_replay_int()
3838 if (!TEST_mem_eq(MSG1, strlen(MSG1), buf, readbytes) in test_early_data_replay_int()
3845 &readbytes), in test_early_data_replay_int()
3909 size_t readbytes, written; in early_data_skip_helper() local
3972 &readbytes), in early_data_skip_helper()
3974 || !TEST_size_t_eq(readbytes, 0) in early_data_skip_helper()
3992 &readbytes))) in early_data_skip_helper()
4029 if (!TEST_false(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in early_data_skip_helper()
4051 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in early_data_skip_helper()
4052 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in early_data_skip_helper()
4132 size_t readbytes, written; in test_early_data_not_sent() local
4146 &readbytes), in test_early_data_not_sent()
4148 || !TEST_size_t_eq(readbytes, 0) in test_early_data_not_sent()
4158 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_not_sent()
4159 || !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1)) in test_early_data_not_sent()
4164 if (!TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_not_sent()
4165 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_not_sent()
4224 size_t readbytes, written; in test_early_data_psk() local
4362 &readbytes), readearlyres)) { in test_early_data_psk()
4368 && !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1))) in test_early_data_psk()
4403 size_t readbytes, written; in test_early_data_psk_with_all_ciphers() local
4463 &readbytes), in test_early_data_psk_with_all_ciphers()
4469 if (!TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1)) in test_early_data_psk_with_all_ciphers()
4481 if (!TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_psk_with_all_ciphers()
4482 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_psk_with_all_ciphers()
4513 size_t readbytes, written; in test_early_data_not_expected() local
4543 if (!TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_not_expected()
4544 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_not_expected()
4573 size_t readbytes, written; in test_early_data_tls1_2() local
4592 &readbytes), in test_early_data_tls1_2()
4602 &readbytes), in test_early_data_tls1_2()
4604 || !TEST_size_t_eq(readbytes, 0) in test_early_data_tls1_2()
4614 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_tls1_2()
4615 || !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1)) in test_early_data_tls1_2()
4618 || !SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes) in test_early_data_tls1_2()
4619 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_tls1_2()
6435 size_t readbytes, written; in test_export_key_mat_early() local
6444 &readbytes), in test_export_key_mat_early()
7518 size_t written, readbytes; in test_info_callback() local
7542 sizeof(buf), &readbytes), in test_info_callback()
7548 if (!TEST_mem_eq(MSG1, readbytes, buf, strlen(MSG1)) in test_info_callback()
7621 size_t written, readbytes; in test_ssl_pending() local
7669 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_ssl_pending()
7670 || !TEST_size_t_eq(readbytes, sizeof(buf)) in test_ssl_pending()
7671 || !TEST_int_eq(SSL_pending(clientssl), (int)(written - readbytes)) in test_ssl_pending()
8240 size_t written, readbytes; in test_shutdown() local
8288 if (!TEST_false(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_shutdown()
8316 &readbytes)) in test_shutdown()
8317 || !TEST_size_t_eq(readbytes, sizeof(msg)) in test_shutdown()
8318 || !TEST_int_eq(memcmp(msg, buf, readbytes), 0) in test_shutdown()
8320 &readbytes)) in test_shutdown()
8321 || !TEST_size_t_eq(readbytes, sizeof(msg)) in test_shutdown()
8322 || !TEST_int_eq(memcmp(msg, buf, readbytes), 0)) in test_shutdown()
8830 size_t readbytes, written, len; in test_multiblock_write() local
8873 if (!TEST_true(SSL_read_ex(clientssl, p, MULTIBLOCK_FRAGSIZE, &readbytes))) in test_multiblock_write()
8875 p += readbytes; in test_multiblock_write()
8876 len -= readbytes; in test_multiblock_write()
10328 size_t written, readbytes, offset, msglen, fragsize = 10, numpipes = 5; in test_pipelining() local
10431 offset += readbytes, numreads++) { in test_pipelining()
10433 msglen - offset, &readbytes))) in test_pipelining()
10464 if (!TEST_true(SSL_read_ex(peera, buf, msglen, &readbytes)) in test_pipelining()
10465 || !TEST_size_t_le(readbytes, msglen)) in test_pipelining()
10471 if (!TEST_true(SSL_read_ex(peera, buf + readbytes, in test_pipelining()
10472 msglen - readbytes, &readbytes2))) in test_pipelining()
10474 readbytes += readbytes2; in test_pipelining()
10475 if (!TEST_size_t_le(readbytes, msglen)) in test_pipelining()
10479 if (!TEST_mem_eq(msg, msglen, buf, readbytes)) in test_pipelining()