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()
3326 size_t readbytes, written, eoedlen, rawread, rawwritten; in test_early_data_read_write() local
3338 sizeof(buf), &readbytes), in test_early_data_read_write()
3340 || !TEST_mem_eq(MSG1, readbytes, buf, strlen(MSG1)) in test_early_data_read_write()
3352 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3353 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_read_write()
3364 &readbytes), in test_early_data_read_write()
3366 || !TEST_mem_eq(buf, readbytes, MSG3, strlen(MSG3))) in test_early_data_read_write()
3373 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3374 || !TEST_mem_eq(buf, readbytes, MSG4, strlen(MSG4))) in test_early_data_read_write()
3407 &readbytes), in test_early_data_read_write()
3409 || !TEST_size_t_eq(readbytes, 0)) in test_early_data_read_write()
3428 if (!TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3429 || !TEST_size_t_eq(readbytes, strlen(MSG5))) in test_early_data_read_write()
3438 &readbytes), in test_early_data_read_write()
3444 if (!TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3445 || !TEST_mem_eq(buf, readbytes, MSG6, strlen(MSG6))) in test_early_data_read_write()
3453 if (!TEST_false(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3455 &readbytes))) in test_early_data_read_write()
3461 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3462 || !TEST_mem_eq(buf, readbytes, MSG7, strlen(MSG7))) in test_early_data_read_write()
3485 &readbytes), in test_early_data_read_write()
3487 || !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1))) in test_early_data_read_write()
3500 &readbytes), in test_early_data_read_write()
3508 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_read_write()
3509 || !TEST_size_t_eq(readbytes, strlen(MSG5))) in test_early_data_read_write()
3555 size_t readbytes, written; in test_early_data_replay_int() local
3617 &readbytes), in test_early_data_replay_int()
3629 &readbytes), in test_early_data_replay_int()
3631 || !TEST_mem_eq(MSG1, strlen(MSG1), buf, readbytes) in test_early_data_replay_int()
3638 &readbytes), in test_early_data_replay_int()
3692 size_t readbytes, written; in early_data_skip_helper() local
3735 &readbytes), in early_data_skip_helper()
3737 || !TEST_size_t_eq(readbytes, 0) in early_data_skip_helper()
3755 &readbytes))) in early_data_skip_helper()
3792 if (!TEST_false(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in early_data_skip_helper()
3813 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in early_data_skip_helper()
3814 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in early_data_skip_helper()
3879 size_t readbytes, written; in test_early_data_not_sent() local
3892 &readbytes), in test_early_data_not_sent()
3894 || !TEST_size_t_eq(readbytes, 0) in test_early_data_not_sent()
3904 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_not_sent()
3905 || !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1)) in test_early_data_not_sent()
3910 if (!TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_early_data_not_sent()
3911 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_not_sent()
3970 size_t readbytes, written; in test_early_data_psk() local
4105 &readbytes), readearlyres) in test_early_data_psk()
4107 && !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1))) in test_early_data_psk()
4142 size_t readbytes, written; in test_early_data_psk_with_all_ciphers() local
4205 &readbytes), in test_early_data_psk_with_all_ciphers()
4207 || !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1)) in test_early_data_psk_with_all_ciphers()
4219 if (!TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_psk_with_all_ciphers()
4220 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_psk_with_all_ciphers()
4251 size_t readbytes, written; in test_early_data_not_expected() local
4280 if (!TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_not_expected()
4281 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_not_expected()
4310 size_t readbytes, written; in test_early_data_tls1_2() local
4328 &readbytes), in test_early_data_tls1_2()
4338 &readbytes), in test_early_data_tls1_2()
4340 || !TEST_size_t_eq(readbytes, 0) in test_early_data_tls1_2()
4350 || !TEST_true(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_early_data_tls1_2()
4351 || !TEST_mem_eq(buf, readbytes, MSG1, strlen(MSG1)) in test_early_data_tls1_2()
4354 || !SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes) in test_early_data_tls1_2()
4355 || !TEST_mem_eq(buf, readbytes, MSG2, strlen(MSG2))) in test_early_data_tls1_2()
6174 size_t readbytes, written; in test_export_key_mat_early() local
6183 &readbytes), in test_export_key_mat_early()
7257 size_t written, readbytes; in test_info_callback() local
7276 sizeof(buf), &readbytes), in test_info_callback()
7278 || !TEST_mem_eq(MSG1, readbytes, buf, strlen(MSG1)) in test_info_callback()
7351 size_t written, readbytes; in test_ssl_pending() local
7399 || !TEST_true(SSL_read_ex(clientssl, buf, sizeof(buf), &readbytes)) in test_ssl_pending()
7400 || !TEST_size_t_eq(readbytes, sizeof(buf)) in test_ssl_pending()
7401 || !TEST_int_eq(SSL_pending(clientssl), (int)(written - readbytes)) in test_ssl_pending()
7940 size_t written, readbytes; in test_shutdown() local
7988 if (!TEST_false(SSL_read_ex(serverssl, buf, sizeof(buf), &readbytes)) in test_shutdown()
8016 &readbytes)) in test_shutdown()
8017 || !TEST_size_t_eq(readbytes, sizeof(msg)) in test_shutdown()
8018 || !TEST_int_eq(memcmp(msg, buf, readbytes), 0) in test_shutdown()
8020 &readbytes)) in test_shutdown()
8021 || !TEST_size_t_eq(readbytes, sizeof(msg)) in test_shutdown()
8022 || !TEST_int_eq(memcmp(msg, buf, readbytes), 0)) in test_shutdown()
8530 size_t readbytes, written, len; in test_multiblock_write() local
8573 if (!TEST_true(SSL_read_ex(clientssl, p, MULTIBLOCK_FRAGSIZE, &readbytes))) in test_multiblock_write()
8575 p += readbytes; in test_multiblock_write()
8576 len -= readbytes; in test_multiblock_write()
9906 size_t written, readbytes; in test_read_ahead_key_change() local
9945 &readbytes))) in test_read_ahead_key_change()
9948 buf[readbytes] = '\0'; in test_read_ahead_key_change()