Home
last modified time | relevance | path

Searched refs:readbytes (Results 1 – 25 of 49) sorted by relevance

12

/freebsd/crypto/openssl/test/
H A Dquic_stream_test.c343 size_t *readbytes, int *fin) in test_single_copy_read() argument
348 *readbytes = 0; in test_single_copy_read()
361 *readbytes += rec_len; in test_single_copy_read()
380 size_t readbytes = 0, avail = 0; in test_rstream_simple() local
399 &readbytes, &fin)) in test_rstream_simple()
401 || !TEST_size_t_eq(readbytes, 0) in test_rstream_simple()
409 &readbytes, &fin)) in test_rstream_simple()
411 || !TEST_size_t_eq(readbytes, 1) in test_rstream_simple()
426 &readbytes, &fin)) in test_rstream_simple()
428 || !TEST_size_t_eq(readbytes, 15) in test_rstream_simple()
[all …]
H A Dsslbuffertest.c200 size_t written, readbytes; in test_free_buffers() local
248 if (!TEST_true(SSL_read_ex(serverssl, buf, readlen, &readbytes)) in test_free_buffers()
249 || !TEST_size_t_eq(readlen, readbytes)) in test_free_buffers()
257 if (!TEST_true(BIO_read_ex(tmp, buf, sizeof(buf), &readbytes)) in test_free_buffers()
258 || !TEST_size_t_lt(readbytes, sizeof(buf)) in test_free_buffers()
259 || !TEST_size_t_gt(readbytes, SSL3_RT_HEADER_LENGTH)) in test_free_buffers()
270 partial_len = readbytes - 1; in test_free_buffers()
306 &readbytes)) in test_free_buffers()
307 || !TEST_size_t_eq(readbytes, strlen(testdata))) in test_free_buffers()
315 &readbytes))) in test_free_buffers()
H A Dbio_readbuffer_test.c32 size_t readbytes = 0, bytes = 0, count = 0; in test_readbuffer_file_bio() local
37 &readbytes), in test_readbuffer_file_bio()
39 || !TEST_int_lt(readbytes, sizeof(expected))) in test_readbuffer_file_bio()
90 if (!TEST_int_eq(count, readbytes)) in test_readbuffer_file_bio()
H A Dsslapitest.c447 size_t readbytes, written; in test_keylog_no_master_key() local
523 &readbytes), in test_keylog_no_master_key()
869 size_t readbytes; in test_ccs_change_cipher() local
926 if (SSL_read_ex(clientssl, &buf, sizeof(buf), &readbytes) > 0) { in test_ccs_change_cipher()
927 if (!TEST_ulong_eq(readbytes, 0)) in test_ccs_change_cipher()
933 if (SSL_read_ex(serverssl, &buf, sizeof(buf), &readbytes) > 0) { in test_ccs_change_cipher()
934 if (!TEST_ulong_eq(readbytes, 0)) in test_ccs_change_cipher()
1469 size_t written, readbytes, totread = 0, i;
1557 &readbytes)) {
1561 totread += readbytes; in test_large_app_data()
1564 size_t written, readbytes; test_large_app_data() local
3563 size_t readbytes, written, eoedlen, rawread, rawwritten; test_early_data_read_write() local
3807 size_t readbytes, written; test_early_data_replay_int() local
3965 size_t readbytes, written; early_data_skip_helper() local
4191 size_t readbytes, written; test_early_data_not_sent() local
4283 size_t readbytes, written; test_early_data_psk() local
4465 size_t readbytes, written; test_early_data_psk_with_all_ciphers() local
4601 size_t readbytes, written; test_early_data_not_expected() local
4660 size_t readbytes, written; test_early_data_tls1_2() local
6774 size_t readbytes, written; test_export_key_mat_early() local
7266 size_t written, readbytes; test_ssl_clear() local
8130 size_t written, readbytes; test_info_callback() local
8235 size_t written, readbytes; test_ssl_pending() local
8861 size_t written, readbytes; test_shutdown() local
9540 size_t readbytes, written, len; test_multiblock_write() local
11427 size_t written, readbytes; test_read_ahead_key_change() local
11527 size_t written, readbytes; test_tls13_record_padding() local
11648 size_t written, readbytes, offset, msglen, fragsize = 10, numpipes = 5; test_pipelining() local
11979 size_t written, readbytes; test_rstate_string() local
12147 size_t written, readbytes, totread = 0; test_data_retry() local
[all...]
H A Dquicapitest.c909 size_t written, readbytes, msglen; in test_bio_ssl()
975 &readbytes)) in test_bio_ssl()
976 || !TEST_mem_eq(msg, msglen, buf, readbytes)) in test_bio_ssl()
984 if (!TEST_true(BIO_read_ex(thisbio, buf, sizeof(buf), &readbytes)) in test_bio_ssl()
985 || !TEST_mem_eq(msg, msglen, buf, readbytes)) in test_bio_ssl()
1047 size_t readbytes, written; in test_back_pressure()
1080 &readbytes))) in test_back_pressure()
1493 size_t buflen, size_t *readbytes, in unreliable_client_read()
1506 if (SSL_read_ex(*stream, buf, buflen, readbytes)) in unreliable_client_read()
1522 void *buf, size_t buflen, size_t *readbytes, in unreliable_server_read()
908 size_t written, readbytes, msglen; test_bio_ssl() local
1046 size_t readbytes, written; test_back_pressure() local
1492 unreliable_client_read(SSL * clientquic,SSL ** stream,void * buf,size_t buflen,size_t * readbytes,QUIC_TSERVER * qtserv) unreliable_client_read() argument
1521 unreliable_server_read(QUIC_TSERVER * qtserv,uint64_t sid,void * buf,size_t buflen,size_t * readbytes,SSL * clientquic) unreliable_server_read() argument
1557 size_t msglen = strlen(msg), written, readbytes, i, j; test_noisy_dgram() local
1664 size_t written, readbytes; test_bw_limit() local
[all...]
H A Dtls13ccstest.c252 size_t written, readbytes; in test_tls13ccs() local
352 &readbytes), in test_tls13ccs()
363 &readbytes), in test_tls13ccs()
/freebsd/crypto/openssl/ssl/quic/
H A Dquic_rstream.c77 size_t *readbytes, int *fin, int drop) in read_internal() argument
130 *readbytes = readbytes_; in read_internal()
153 size_t *readbytes, int *fin) in ossl_quic_rstream_read() argument
157 if (!read_internal(qrs, buf, size, readbytes, fin, 1)) in ossl_quic_rstream_read()
161 && !ossl_quic_rxfc_on_retire(qrs->rxfc, *readbytes, rtt)) in ossl_quic_rstream_read()
168 size_t *readbytes, int *fin) in ossl_quic_rstream_peek() argument
170 return read_internal(qrs, buf, size, readbytes, fin, 0); in ossl_quic_rstream_peek()
/freebsd/crypto/openssl/demos/guide/
H A Dquic-multi-stream.c145 size_t readbytes; in main() local
299 while (SSL_read_ex(stream1, buf, sizeof(buf), &readbytes)) { in main()
307 fwrite(buf, 1, readbytes, stdout); in main()
376 while (SSL_read_ex(stream3, buf, sizeof(buf), &readbytes)) in main()
377 fwrite(buf, 1, readbytes, stdout); in main()
H A Dtls-client-block.c109 size_t written, readbytes; in main() local
233 while (SSL_read_ex(ssl, buf, sizeof(buf), &readbytes)) { in main()
241 fwrite(buf, 1, readbytes, stdout); in main()
H A Dquic-client-block.c127 size_t written, readbytes; in main() local
256 while (SSL_read_ex(ssl, buf, sizeof(buf), &readbytes)) { in main()
264 fwrite(buf, 1, readbytes, stdout); in main()
H A Dtls-client-non-block.c186 size_t written, readbytes = 0; in main() local
314 while (!eof && !SSL_read_ex(ssl, buf, sizeof(buf), &readbytes)) { in main()
335 fwrite(buf, 1, readbytes, stdout); in main()
H A Dquic-client-non-block.c234 size_t written, readbytes = 0; in main() local
377 while (!eof && !SSL_read_ex(ssl, buf, sizeof(buf), &readbytes)) { in main()
398 fwrite(buf, 1, readbytes, stdout); in main()
/freebsd/crypto/openssl/ssl/statem/
H A Dstatem_dtls.c621 size_t readbytes; in dtls1_reassemble_fragment() local
664 frag_len > sizeof(devnull) ? sizeof(devnull) : frag_len, 0, &readbytes); in dtls1_reassemble_fragment()
667 frag_len -= readbytes; in dtls1_reassemble_fragment()
675 frag_len, 0, &readbytes); in dtls1_reassemble_fragment()
676 if (i <= 0 || readbytes != frag_len) in dtls1_reassemble_fragment()
728 size_t readbytes; in dtls1_process_out_of_seq_message() local
758 frag_len > sizeof(devnull) ? sizeof(devnull) : frag_len, 0, &readbytes); in dtls1_process_out_of_seq_message()
761 frag_len -= readbytes; in dtls1_process_out_of_seq_message()
783 &readbytes); in dtls1_process_out_of_seq_message()
784 if (i <= 0 || readbytes != frag_len) in dtls1_process_out_of_seq_message()
[all …]
H A Dstatem_lib.c1559 size_t l, readbytes; in tls_get_message_header() local
1570 0, &readbytes); in tls_get_message_header()
1580 if (s->init_num != 0 || readbytes != 1 || p[0] != SSL3_MT_CCS) { in tls_get_message_header()
1597 s->init_num = readbytes - 1; in tls_get_message_header()
1599 s->s3.tmp.message_size = readbytes; in tls_get_message_header()
1606 s->init_num += readbytes; in tls_get_message_header()
1682 size_t toread, readbytes; in tls_get_message_body()
1710 &p[s->init_num], chunk, 0, &readbytes); in tls_get_message_body()
1716 s->init_num += readbytes; in tls_get_message_body()
1717 toread -= readbytes; in tls_get_message_body()
1666 size_t n, readbytes; tls_get_message_body() local
[all...]
/freebsd/crypto/openssl/crypto/bio/
H A Dbio_lib.c262 static int bio_read_intern(BIO *b, void *data, size_t dlen, size_t *readbytes) in bio_read_intern() argument
283 ret = b->method->bread(b, data, dlen, readbytes); in bio_read_intern()
286 b->num_read += (uint64_t)*readbytes; in bio_read_intern()
290 dlen, 0, 0L, ret, readbytes); in bio_read_intern()
293 if (ret > 0 && *readbytes > dlen) { in bio_read_intern()
303 size_t readbytes; in BIO_read() local
309 ret = bio_read_intern(b, data, (size_t)dlen, &readbytes); in BIO_read()
313 ret = (int)readbytes; in BIO_read()
319 int BIO_read_ex(BIO *b, void *data, size_t dlen, size_t *readbytes) in BIO_read_ex() argument
321 return bio_read_intern(b, data, dlen, readbytes) > 0; in BIO_read_ex()
[all …]
H A Dbio_meth.c120 int bread_conv(BIO *bio, char *data, size_t datal, size_t *readbytes) in bread_conv() argument
130 *readbytes = 0; in bread_conv()
134 *readbytes = (size_t)ret; in bread_conv()
H A Dossl_core_bio.c93 size_t *readbytes) in ossl_core_bio_read_ex() argument
95 return BIO_read_ex(cb->bio, data, dlen, readbytes); in ossl_core_bio_read_ex()
/freebsd/crypto/openssl/include/internal/
H A Dquic_stream.h354 size_t *readbytes, int *fin);
363 size_t *readbytes, int *fin);
H A Dquic_ssl.h57 __owur int ossl_quic_read(SSL *s, void *buf, size_t len, size_t *readbytes);
58 __owur int ossl_quic_peek(SSL *s, void *buf, size_t len, size_t *readbytes);
H A Dbio.h88 size_t *readbytes);
/freebsd/crypto/openssl/ssl/
H A Dbio_ssl.c22 static int ssl_read(BIO *b, char *buf, size_t size, size_t *readbytes);
95 static int ssl_read(BIO *b, char *buf, size_t size, size_t *readbytes) in ssl_read() argument
110 ret = ssl_read_internal(ssl, buf, size, readbytes); in ssl_read()
115 sb->byte_count += *readbytes; in ssl_read()
/freebsd/crypto/openssl/ssl/record/
H A Drecord.h149 size_t *readbytes);
156 size_t *readbytes);
/freebsd/crypto/openssl/test/quic-openssl-docker/hq-interop/
H A Dquic-hq-interop.c863 size_t readbytes = 0; in main() local
967 sizeof(buf), &readbytes)) { in main()
989 BIO_write(outbiolist[poll_idx], buf, readbytes); in main()
/freebsd/crypto/openssl/doc/man3/
H A DSSL_read.pod12 int SSL_read_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);
15 int SSL_peek_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);
22 actually read in B<*readbytes>.
H A DBIO_set_callback.pod131 =item B<BIO_read_ex(b, data, dlen, readbytes)>
142 &readbytes)
180 &readbytes)

12