/openssl/test/ |
H A D | quic_stream_test.c | 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 401 || !TEST_size_t_eq(readbytes, 0) in test_rstream_simple() 411 || !TEST_size_t_eq(readbytes, 1) in test_rstream_simple() 428 || !TEST_size_t_eq(readbytes, 15) in test_rstream_simple() 439 || !TEST_size_t_eq(readbytes, 2) in test_rstream_simple() 443 || !TEST_size_t_eq(readbytes, 12) in test_rstream_simple() 455 || !TEST_size_t_eq(readbytes, 5) in test_rstream_simple() 484 size_t readbytes = 0; in test_rstream_random() local [all …]
|
H A D | sslbuffertest.c | 205 size_t written, readbytes; in test_free_buffers() local 253 if (!TEST_true(SSL_read_ex(serverssl, buf, readlen, &readbytes)) in test_free_buffers() 254 || !TEST_size_t_eq(readlen, readbytes)) in test_free_buffers() 262 if (!TEST_true(BIO_read_ex(tmp, buf, sizeof(buf), &readbytes)) in test_free_buffers() 263 || !TEST_size_t_lt(readbytes, sizeof(buf)) in test_free_buffers() 264 || !TEST_size_t_gt(readbytes, SSL3_RT_HEADER_LENGTH)) in test_free_buffers() 275 partial_len = readbytes - 1; in test_free_buffers() 311 &readbytes)) in test_free_buffers() 312 || !TEST_size_t_eq(readbytes, strlen(testdata))) in test_free_buffers() 320 &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 | 437 size_t readbytes, written; in test_keylog_no_master_key() local 859 size_t readbytes; in test_ccs_change_cipher() local 1555 size_t written, readbytes; in test_large_app_data() local 3789 size_t readbytes, written; in test_early_data_replay_int() local 3948 size_t readbytes, written; in early_data_skip_helper() local 4175 size_t readbytes, written; in test_early_data_not_sent() local 4267 size_t readbytes, written; in test_early_data_psk() local 4448 size_t readbytes, written; in test_early_data_psk_with_all_ciphers() local 9303 p += readbytes; in test_multiblock_write() 9304 len -= readbytes; in test_multiblock_write() [all …]
|
H A D | quicapitest.c | 843 size_t written, readbytes, msglen; in test_bio_ssl() local 908 &readbytes)) in test_bio_ssl() 909 || !TEST_mem_eq(msg, msglen, buf, readbytes)) in test_bio_ssl() 980 size_t readbytes, written; in test_back_pressure() local 1013 &readbytes))) in test_back_pressure() 1467 && *readbytes > 1) in unreliable_server_read() 1495 size_t msglen = strlen(msg), written, readbytes, i, j; in test_noisy_dgram() local 1602 size_t written, readbytes; in test_bw_limit() local 1649 &readbytes) in test_bw_limit() 1650 && readbytes > 1) { in test_bw_limit() [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()
|
/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()
|
/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 255 while (SSL_read_ex(ssl, buf, sizeof(buf), &readbytes)) { in main() 263 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 376 while (!eof && !SSL_read_ex(ssl, buf, sizeof(buf), &readbytes)) { in main() 397 fwrite(buf, 1, readbytes, stdout); in main()
|
H A D | quic-hq-interop.c | 847 size_t readbytes = 0; in main() local 960 sizeof(buf), &readbytes)) { in main() 982 BIO_write(outbiolist[poll_idx], buf, readbytes); in main()
|
/openssl/ssl/statem/ |
H A D | statem_dtls.c | 602 size_t readbytes; in dtls1_reassemble_fragment() local 651 frag_len -= readbytes; in dtls1_reassemble_fragment() 660 if (i <= 0 || readbytes != frag_len) in dtls1_reassemble_fragment() 712 size_t readbytes; in dtls1_process_out_of_seq_message() local 749 frag_len -= readbytes; in dtls1_process_out_of_seq_message() 772 if (i<=0 || readbytes != frag_len) in dtls1_process_out_of_seq_message() 810 size_t readbytes; in dtls_get_reassembled_message() local 848 s->init_num = readbytes - 1; in dtls_get_reassembled_message() 852 *len = readbytes - 1; in dtls_get_reassembled_message() 951 readbytes = 0; in dtls_get_reassembled_message() [all …]
|
H A D | statem_lib.c | 1537 size_t l, readbytes; in tls_get_message_header() local 1548 0, &readbytes); in tls_get_message_header() 1558 if (s->init_num != 0 || readbytes != 1 || p[0] != SSL3_MT_CCS) { in tls_get_message_header() 1575 s->init_num = readbytes - 1; in tls_get_message_header() 1577 s->s3.tmp.message_size = readbytes; in tls_get_message_header() 1584 s->init_num += readbytes; in tls_get_message_header() 1644 size_t n, readbytes; in tls_get_message_body() local 1660 &p[s->init_num], n, 0, &readbytes); in tls_get_message_body() 1666 s->init_num += readbytes; in tls_get_message_body() 1667 n -= readbytes; in tls_get_message_body()
|
/openssl/crypto/bio/ |
H A D | bio_lib.c | 285 ret = b->method->bread(b, data, dlen, readbytes); in bio_read_intern() 288 b->num_read += (uint64_t)*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() 323 return bio_read_intern(b, data, dlen, readbytes) > 0; in BIO_read_ex() 550 size_t readbytes = 0; in BIO_gets() local 580 readbytes = ret; in BIO_gets() 590 if (readbytes > (size_t)size) in BIO_gets() [all …]
|
H A D | bio_meth.c | 116 int bread_conv(BIO *bio, char *data, size_t datal, size_t *readbytes) in bread_conv() argument 126 *readbytes = 0; in bread_conv() 130 *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()
|
/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 | 29 __owur int ossl_quic_read(SSL *s, void *buf, size_t len, size_t *readbytes); 30 __owur int ossl_quic_peek(SSL *s, void *buf, size_t len, size_t *readbytes);
|
H A D | bio.h | 89 size_t *readbytes);
|
/openssl/ssl/record/ |
H A D | record.h | 149 size_t *readbytes); 156 size_t *readbytes);
|
/openssl/ssl/ |
H A D | bio_ssl.c | 20 static int ssl_read(BIO *b, char *buf, size_t size, size_t *readbytes); 93 static int ssl_read(BIO *b, char *buf, size_t size, size_t *readbytes) in ssl_read() argument 108 ret = ssl_read_internal(ssl, buf, size, readbytes); in ssl_read() 113 sb->byte_count += *readbytes; in ssl_read()
|
/openssl/doc/man3/ |
H A D | BIO_set_callback.pod | 131 =item B<BIO_read_ex(b, data, dlen, readbytes)> 142 &readbytes) 180 &readbytes)
|
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>.
|