| /freebsd/crypto/openssl/test/ |
| H A D | quic_stream_test.c | 343 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() 381 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 D | sslbuffertest.c | 211 size_t written, readbytes; in test_free_buffers() local 259 if (!TEST_true(SSL_read_ex(serverssl, buf, readlen, &readbytes)) in test_free_buffers() 260 || !TEST_size_t_eq(readlen, readbytes)) in test_free_buffers() 268 if (!TEST_true(BIO_read_ex(tmp, buf, sizeof(buf), &readbytes)) in test_free_buffers() 269 || !TEST_size_t_lt(readbytes, sizeof(buf)) in test_free_buffers() 270 || !TEST_size_t_gt(readbytes, SSL3_RT_HEADER_LENGTH)) in test_free_buffers() 281 partial_len = readbytes - 1; in test_free_buffers() 317 &readbytes)) in test_free_buffers() 318 || !TEST_size_t_eq(readbytes, strlen(testdata))) in test_free_buffers() 326 &readbytes))) in test_free_buffers()
|
| H A D | bio_readbuffer_test.c | 32 size_t readbytes = 0, bytes = 0, count = 0; in test_readbuffer_file_bio() local 37 &readbytes), 1) in test_readbuffer_file_bio() 38 || !TEST_int_lt(readbytes, sizeof(expected))) in test_readbuffer_file_bio() 89 if (!TEST_int_eq(count, readbytes)) in test_readbuffer_file_bio()
|
| H A D | sslapitest.c | 449 size_t readbytes, written; in test_keylog_no_master_key() local 525 &readbytes), in test_keylog_no_master_key() 872 size_t readbytes; in test_ccs_change_cipher() local 929 if (SSL_read_ex(clientssl, &buf, sizeof(buf), &readbytes) > 0) { in test_ccs_change_cipher() 930 if (!TEST_ulong_eq(readbytes, 0)) in test_ccs_change_cipher() 936 if (SSL_read_ex(serverssl, &buf, sizeof(buf), &readbytes) > 0) { in test_ccs_change_cipher() 937 if (!TEST_ulong_eq(readbytes, 0)) in test_ccs_change_cipher() 1568 size_t written, readbytes; in test_large_app_data() local 1700 &readbytes))) in test_large_app_data() 1703 if (!TEST_mem_eq(msg, written, buf, readbytes)) in test_large_app_data() [all …]
|
| H A D | quicapitest.c | 912 size_t written, readbytes, msglen; in test_bio_ssl() local 978 &readbytes)) in test_bio_ssl() 979 || !TEST_mem_eq(msg, msglen, buf, readbytes)) in test_bio_ssl() 987 if (!TEST_true(BIO_read_ex(thisbio, buf, sizeof(buf), &readbytes)) in test_bio_ssl() 988 || !TEST_mem_eq(msg, msglen, buf, readbytes)) in test_bio_ssl() 1050 size_t readbytes, written; in test_back_pressure() local 1083 &readbytes))) in test_back_pressure() 1498 size_t buflen, size_t *readbytes, in unreliable_client_read() argument 1511 if (SSL_read_ex(*stream, buf, buflen, readbytes)) in unreliable_client_read() 1527 void *buf, size_t buflen, size_t *readbytes, in unreliable_server_read() argument [all …]
|
| H A D | tls13ccstest.c | 250 size_t written, readbytes; in test_tls13ccs() local 350 &readbytes), in test_tls13ccs() 361 &readbytes), in test_tls13ccs()
|
| /freebsd/crypto/openssl/ssl/quic/ |
| H A D | quic_rstream.c | 77 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/ssl/statem/ |
| H A D | statem_dtls.c | 615 size_t readbytes; in dtls1_reassemble_fragment() local 661 frag_len, 0, &readbytes); in dtls1_reassemble_fragment() 664 frag_len -= readbytes; in dtls1_reassemble_fragment() 672 frag_len, 0, &readbytes); in dtls1_reassemble_fragment() 673 if (i <= 0 || readbytes != frag_len) in dtls1_reassemble_fragment() 725 size_t readbytes; in dtls1_process_out_of_seq_message() local 759 frag_len, 0, &readbytes); in dtls1_process_out_of_seq_message() 762 frag_len -= readbytes; in dtls1_process_out_of_seq_message() 784 &readbytes); in dtls1_process_out_of_seq_message() 785 if (i<=0 || readbytes != frag_len) in dtls1_process_out_of_seq_message() [all …]
|
| H A D | statem_lib.c | 1553 size_t l, readbytes; in tls_get_message_header() local 1564 0, &readbytes); in tls_get_message_header() 1574 if (s->init_num != 0 || readbytes != 1 || p[0] != SSL3_MT_CCS) { in tls_get_message_header() 1591 s->init_num = readbytes - 1; in tls_get_message_header() 1593 s->s3.tmp.message_size = readbytes; in tls_get_message_header() 1600 s->init_num += readbytes; in tls_get_message_header() 1660 size_t n, readbytes; in tls_get_message_body() local 1676 &p[s->init_num], n, 0, &readbytes); in tls_get_message_body() 1682 s->init_num += readbytes; in tls_get_message_body() 1683 n -= readbytes; in tls_get_message_body()
|
| /freebsd/crypto/openssl/demos/guide/ |
| H A D | quic-multi-stream.c | 147 size_t readbytes; in main() local 301 while (SSL_read_ex(stream1, buf, sizeof(buf), &readbytes)) { in main() 309 fwrite(buf, 1, readbytes, stdout); in main() 378 while (SSL_read_ex(stream3, buf, sizeof(buf), &readbytes)) in main() 379 fwrite(buf, 1, readbytes, stdout); in main()
|
| H A D | tls-client-block.c | 109 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 D | quic-client-block.c | 127 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 D | tls-client-non-block.c | 186 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 D | quic-client-non-block.c | 234 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/crypto/bio/ |
| H A D | bio_lib.c | 262 static int bio_read_intern(BIO *b, void *data, size_t dlen, size_t *readbytes) in bio_read_intern() argument 285 ret = b->method->bread(b, data, dlen, readbytes); in bio_read_intern() 288 b->num_read += (uint64_t)*readbytes; in bio_read_intern() 292 dlen, 0, 0L, ret, readbytes); in bio_read_intern() 295 if (ret > 0 && *readbytes > dlen) { in bio_read_intern() 305 size_t readbytes; in BIO_read() local 311 ret = bio_read_intern(b, data, (size_t)dlen, &readbytes); in BIO_read() 315 ret = (int)readbytes; in BIO_read() 321 int BIO_read_ex(BIO *b, void *data, size_t dlen, size_t *readbytes) in BIO_read_ex() argument 323 return bio_read_intern(b, data, dlen, readbytes) > 0; in BIO_read_ex() [all …]
|
| H A D | bio_meth.c | 120 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 D | ossl_core_bio.c | 93 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 D | quic_stream.h | 354 size_t *readbytes, int *fin); 363 size_t *readbytes, int *fin);
|
| H A D | quic_ssl.h | 57 __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 D | bio.h | 89 size_t *readbytes);
|
| /freebsd/crypto/openssl/ssl/ |
| H A D | bio_ssl.c | 22 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 D | record.h | 149 size_t *readbytes); 156 size_t *readbytes);
|
| /freebsd/crypto/openssl/test/quic-openssl-docker/hq-interop/ |
| H A D | quic-hq-interop.c | 865 size_t readbytes = 0; in main() local 969 sizeof(buf), &readbytes)) { in main() 991 BIO_write(outbiolist[poll_idx], buf, readbytes); in main()
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | SSL_read.pod | 12 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 D | BIO_set_callback.pod | 131 =item B<BIO_read_ex(b, data, dlen, readbytes)> 142 &readbytes) 180 &readbytes)
|