| /freebsd-src/crypto/openssl/test/ |
| H A D | sslbuffertest.c | 181 size_t written, readbytes; in test_free_buffers() local 229 if (!TEST_true(SSL_read_ex(serverssl, buf, readlen, &readbytes)) in test_free_buffers() 230 || !TEST_size_t_eq(readlen, readbytes)) in test_free_buffers() 238 if (!TEST_true(BIO_read_ex(tmp, buf, sizeof(buf), &readbytes)) in test_free_buffers() 239 || !TEST_size_t_lt(readbytes, sizeof(buf)) in test_free_buffers() 240 || !TEST_size_t_gt(readbytes, SSL3_RT_HEADER_LENGTH)) in test_free_buffers() 251 partial_len = readbytes - 1; in test_free_buffers() 287 &readbytes)) in test_free_buffers() 288 || !TEST_size_t_eq(readbytes, strlen(testdata))) in test_free_buffers() 296 &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 513 &readbytes), in test_keylog_no_master_key() 853 size_t readbytes; in test_ccs_change_cipher() local 910 if (SSL_read_ex(clientssl, &buf, sizeof(buf), &readbytes) > 0) { in test_ccs_change_cipher() 911 if (!TEST_ulong_eq(readbytes, 0)) in test_ccs_change_cipher() 917 if (SSL_read_ex(serverssl, &buf, sizeof(buf), &readbytes) > 0) { in test_ccs_change_cipher() 918 if (!TEST_ulong_eq(readbytes, 0)) in test_ccs_change_cipher() 1537 size_t written, readbytes; in test_large_app_data() local 1667 &readbytes))) in test_large_app_data() 1670 if (!TEST_mem_eq(msg, written, buf, readbytes)) in test_large_app_data() 3518 size_t readbytes, written, eoedlen, rawread, rawwritten; test_early_data_read_write() local 3756 size_t readbytes, written; test_early_data_replay_int() local 3909 size_t readbytes, written; early_data_skip_helper() local 4132 size_t readbytes, written; test_early_data_not_sent() local 4224 size_t readbytes, written; test_early_data_psk() local 4403 size_t readbytes, written; test_early_data_psk_with_all_ciphers() local 4513 size_t readbytes, written; test_early_data_not_expected() local 4573 size_t readbytes, written; test_early_data_tls1_2() local 6435 size_t readbytes, written; test_export_key_mat_early() local 7518 size_t written, readbytes; test_info_callback() local 7621 size_t written, readbytes; test_ssl_pending() local 8240 size_t written, readbytes; test_shutdown() local 8830 size_t readbytes, written, len; test_multiblock_write() local 10328 size_t written, readbytes, offset, msglen, fragsize = 10, numpipes = 5; test_pipelining() local [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()
|
| H A D | evp_pkey_provided_test.c | 61 size_t readbytes; in compare_with_file() local 105 if (!TEST_true(BIO_read_ex(file, buf, sizeof(buf), &readbytes)) in compare_with_file() 107 || !TEST_size_t_lt(readbytes, sizeof(buf))) in compare_with_file() 117 stripcr(buf, &readbytes); in compare_with_file() 120 if (!TEST_mem_eq(memdata, slen, buf, readbytes)) in compare_with_file()
|
| /freebsd-src/crypto/openssl/crypto/bio/ |
| H A D | bio_lib.c | 269 static int bio_read_intern(BIO *b, void *data, size_t dlen, size_t *readbytes) in bio_read_intern() argument 292 ret = b->method->bread(b, data, dlen, readbytes); in bio_read_intern() 295 b->num_read += (uint64_t)*readbytes; in bio_read_intern() 299 dlen, 0, 0L, ret, readbytes); in bio_read_intern() 302 if (ret > 0 && *readbytes > dlen) { in bio_read_intern() 312 size_t readbytes; in BIO_read() local 318 ret = bio_read_intern(b, data, (size_t)dlen, &readbytes); in BIO_read() 322 ret = (int)readbytes; in BIO_read() 328 int BIO_read_ex(BIO *b, void *data, size_t dlen, size_t *readbytes) in BIO_read_ex() argument 330 return bio_read_intern(b, data, dlen, readbytes) > 0; in BIO_read_ex() [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 | 95 size_t *readbytes) in ossl_core_bio_read_ex() argument 97 return BIO_read_ex(cb->bio, data, dlen, readbytes); in ossl_core_bio_read_ex()
|
| /freebsd-src/crypto/openssl/ssl/statem/ |
| H A D | statem_dtls.c | 603 size_t readbytes; in dtls1_reassemble_fragment() local 648 frag_len, 0, &readbytes); in dtls1_reassemble_fragment() 651 frag_len -= readbytes; in dtls1_reassemble_fragment() 659 frag_len, 0, &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 745 frag_len, 0, &readbytes); in dtls1_process_out_of_seq_message() 748 frag_len -= readbytes; in dtls1_process_out_of_seq_message() 770 &readbytes); in dtls1_process_out_of_seq_message() 771 if (i<=0 || readbytes != frag_len) in dtls1_process_out_of_seq_message() [all …]
|
| H A D | statem_lib.c | 1170 size_t l, readbytes; in tls_get_message_header() 1179 0, &readbytes); in tls_get_message_header() 1189 if (s->init_num != 0 || readbytes != 1 || p[0] != SSL3_MT_CCS) { in tls_get_message_header() 1206 s->init_num = readbytes - 1; in tls_get_message_header() 1208 s->s3.tmp.message_size = readbytes; in tls_get_message_header() 1215 s->init_num += readbytes; in tls_get_message_header() 1276 size_t n, readbytes; in tls_get_message_body() 1290 &p[s->init_num], n, 0, &readbytes); in tls_get_message_body() 1296 s->init_num += readbytes; in tls_get_message_body() 1297 n -= readbytes; in tls_get_message_body() 1166 size_t l, readbytes; tls_get_message_header() local 1272 size_t n, readbytes; tls_get_message_body() local [all...] |
| /freebsd-src/crypto/openssl/ssl/ |
| H A D | bio_ssl.c | 20 static int ssl_read(BIO *b, char *buf, size_t size, size_t *readbytes); 91 static int ssl_read(BIO *b, char *buf, size_t size, size_t *readbytes) in ssl_read() argument 106 ret = ssl_read_internal(ssl, buf, size, readbytes); in ssl_read() 111 sb->byte_count += *readbytes; in ssl_read()
|
| H A D | ssl_lib.c | 1853 int ssl_read_internal(SSL *s, void *buf, size_t num, size_t *readbytes) in ssl_read_internal() argument 1887 *readbytes = s->asyncrw; in ssl_read_internal() 1890 return s->method->ssl_read(s, buf, num, readbytes); in ssl_read_internal() 1897 size_t readbytes; in SSL_read() local 1904 ret = ssl_read_internal(s, buf, (size_t)num, &readbytes); in SSL_read() 1911 ret = (int)readbytes; in SSL_read() 1916 int SSL_read_ex(SSL *s, void *buf, size_t num, size_t *readbytes) in SSL_read_ex() argument 1918 int ret = ssl_read_internal(s, buf, num, readbytes); in SSL_read_ex() 1925 int SSL_read_early_data(SSL *s, void *buf, size_t num, size_t *readbytes) in SSL_read_early_data() argument 1955 ret = SSL_read_ex(s, buf, num, readbytes); in SSL_read_early_data() 1984 ssl_peek_internal(SSL * s,void * buf,size_t num,size_t * readbytes) ssl_peek_internal() argument 2015 size_t readbytes; SSL_peek() local 2035 SSL_peek_ex(SSL * s,void * buf,size_t num,size_t * readbytes) SSL_peek_ex() argument [all...] |
| H A D | s3_lib.c | 4430 size_t readbytes; in ssl3_shutdown() local 4434 s->method->ssl_read_bytes(s, 0, NULL, NULL, 0, 0, &readbytes); in ssl3_shutdown() 4458 size_t *readbytes) in ssl3_read_internal() argument 4468 peek, readbytes); in ssl3_read_internal() 4480 len, peek, readbytes); in ssl3_read_internal() 4488 int ssl3_read(SSL *s, void *buf, size_t len, size_t *readbytes) in ssl3_read() argument 4490 return ssl3_read_internal(s, buf, len, 0, readbytes); in ssl3_read() 4493 int ssl3_peek(SSL *s, void *buf, size_t len, size_t *readbytes) in ssl3_peek() argument 4495 return ssl3_read_internal(s, buf, len, 1, readbytes); in ssl3_peek()
|
| H A D | ssl_local.h | 495 int (*ssl_read) (SSL *s, void *buf, size_t len, size_t *readbytes); 496 int (*ssl_peek) (SSL *s, void *buf, size_t len, size_t *readbytes); 503 size_t *readbytes); 2378 __owur int ssl_read_internal(SSL *s, void *buf, size_t num, size_t *readbytes); 2512 __owur int ssl3_read(SSL *s, void *buf, size_t len, size_t *readbytes); 2513 __owur int ssl3_peek(SSL *s, void *buf, size_t len, size_t *readbytes);
|
| /freebsd-src/crypto/openssl/ssl/record/ |
| H A D | record.h | 221 size_t *readbytes); 241 size_t *readbytes);
|
| H A D | rec_layer_s3.c | 192 size_t *readbytes) in ssl3_read_n() argument 268 *readbytes = n; in ssl3_read_n() 355 *readbytes = n; in ssl3_read_n() 1287 size_t len, int peek, size_t *readbytes) in ssl3_read_bytes() argument 1336 *readbytes = n; in ssl3_read_bytes() 1509 *readbytes = totalbytes; in ssl3_read_bytes()
|
| H A D | record_local.h | 40 size_t *readbytes);
|
| H A D | rec_layer_d1.c | 344 size_t len, int peek, size_t *readbytes) in dtls1_read_bytes() argument 543 *readbytes = n; in dtls1_read_bytes()
|
| /freebsd-src/crypto/openssl/doc/man3/ |
| H A D | BIO_set_callback.pod | 124 =item B<BIO_read_ex(b, data, dlen, readbytes)> 135 &readbytes) 173 &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>.
|
| H A D | BIO_read.pod | 13 int BIO_read_ex(BIO *b, void *data, size_t dlen, size_t *readbytes); 26 stored in I<*readbytes>.
|
| /freebsd-src/crypto/openssl/include/internal/ |
| H A D | bio.h | 79 size_t *readbytes);
|
| /freebsd-src/crypto/openssl/test/helpers/ |
| H A D | ssltestlib.c | 1164 size_t readbytes; in create_ssl_connection() local 1175 if (SSL_read_ex(clientssl, &buf, sizeof(buf), &readbytes) > 0) { in create_ssl_connection() 1176 if (!TEST_ulong_eq(readbytes, 0)) in create_ssl_connection()
|
| /freebsd-src/crypto/openssl/apps/ |
| H A D | s_server.c | 2478 size_t readbytes; in sv_body() local 2482 edret = SSL_read_early_data(con, buf, bufsize, &readbytes); in sv_body() 2498 if (readbytes > 0) { in sv_body() 2503 raw_write_stdout(buf, (unsigned int)readbytes); in sv_body()
|
| H A D | s_client.c | 2691 size_t readbytes, writtenbytes; in s_client_main() local 2700 if (!BIO_read_ex(edfile, cbuf, BUFSIZZ, &readbytes)) in s_client_main() 2703 while (!SSL_write_early_data(con, cbuf, readbytes, &writtenbytes)) { in s_client_main()
|