| /src/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() 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 D | sslbuffertest.c | 200 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 D | bio_readbuffer_test.c | 32 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 D | sslapitest.c | 447 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() 1564 size_t written, readbytes; in test_large_app_data() local 1696 &readbytes))) in test_large_app_data() 1699 if (!TEST_mem_eq(msg, written, buf, readbytes)) in test_large_app_data() [all …]
|
| H A D | quicapitest.c | 908 size_t written, readbytes, msglen; in test_bio_ssl() local 974 &readbytes)) in test_bio_ssl() 975 || !TEST_mem_eq(msg, msglen, buf, readbytes)) in test_bio_ssl() 983 if (!TEST_true(BIO_read_ex(thisbio, buf, sizeof(buf), &readbytes)) in test_bio_ssl() 984 || !TEST_mem_eq(msg, msglen, buf, readbytes)) in test_bio_ssl() 1046 size_t readbytes, written; in test_back_pressure() local 1079 &readbytes))) in test_back_pressure() 1492 size_t buflen, size_t *readbytes, in unreliable_client_read() argument 1505 if (SSL_read_ex(*stream, buf, buflen, readbytes)) in unreliable_client_read() 1521 void *buf, size_t buflen, size_t *readbytes, in unreliable_server_read() argument [all …]
|
| H A D | tls13ccstest.c | 252 size_t written, readbytes; in test_tls13ccs() local 352 &readbytes), in test_tls13ccs() 363 &readbytes), in test_tls13ccs()
|
| /src/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()
|
| /src/crypto/openssl/demos/guide/ |
| H A D | quic-multi-stream.c | 145 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 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()
|
| /src/crypto/openssl/ssl/statem/ |
| H A D | statem_dtls.c | 621 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 D | statem_lib.c | 1559 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() 1666 size_t n, readbytes; in tls_get_message_body() local 1682 &p[s->init_num], n, 0, &readbytes); in tls_get_message_body() 1688 s->init_num += readbytes; in tls_get_message_body() 1689 n -= readbytes; in tls_get_message_body()
|
| /src/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 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 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()
|
| /src/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 | 88 size_t *readbytes);
|
| /src/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()
|
| /src/crypto/openssl/ssl/record/ |
| H A D | record.h | 149 size_t *readbytes); 156 size_t *readbytes);
|
| /src/crypto/openssl/test/quic-openssl-docker/hq-interop/ |
| H A D | quic-hq-interop.c | 863 size_t readbytes = 0; in main() local 967 sizeof(buf), &readbytes)) { in main() 989 BIO_write(outbiolist[poll_idx], buf, readbytes); in main()
|
| /src/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)
|