Lines Matching refs:msglen
11243 size_t written, readbytes, offset, msglen, fragsize = 10, numpipes = 5; in test_pipelining() local
11289 msglen = fragsize * numpipes; in test_pipelining()
11290 msg = OPENSSL_malloc(msglen); in test_pipelining()
11293 if (!TEST_int_gt(RAND_bytes_ex(libctx, msg, msglen, 0), 0)) in test_pipelining()
11296 msglen = 55; in test_pipelining()
11298 msglen = 50; in test_pipelining()
11301 msglen -= 2; /* Send 2 less bytes */ in test_pipelining()
11303 msglen -= 12; /* Send 12 less bytes */ in test_pipelining()
11305 buf = OPENSSL_malloc(msglen); in test_pipelining()
11331 if (!TEST_true(SSL_write_ex(peera, msg, msglen, &written)) in test_pipelining()
11332 || !TEST_size_t_eq(written, msglen)) in test_pipelining()
11345 offset < msglen; in test_pipelining()
11348 msglen - offset, &readbytes))) in test_pipelining()
11354 if (!TEST_mem_eq(msg, msglen, buf, offset) in test_pipelining()
11362 for (offset = 0; offset < msglen; offset += fragsize) { in test_pipelining()
11363 size_t sendlen = msglen - offset; in test_pipelining()
11379 if (!TEST_true(SSL_read_ex(peera, buf, msglen, &readbytes)) in test_pipelining()
11380 || !TEST_size_t_le(readbytes, msglen)) in test_pipelining()
11387 msglen - readbytes, &readbytes2))) in test_pipelining()
11390 if (!TEST_size_t_le(readbytes, msglen)) in test_pipelining()
11394 if (!TEST_mem_eq(msg, msglen, buf, readbytes)) in test_pipelining()