/freebsd/crypto/openssl/test/ |
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 853 size_t readbytes; in test_ccs_change_cipher() local 1537 size_t written, readbytes; in test_large_app_data() local 3730 size_t readbytes, written; in test_early_data_replay_int() local 3878 size_t readbytes, written; in early_data_skip_helper() local 4101 size_t readbytes, written; in test_early_data_not_sent() local 4193 size_t readbytes, written; in test_early_data_psk() local 4366 size_t readbytes, written; in test_early_data_psk_with_all_ciphers() local 4470 size_t readbytes, written; in test_early_data_not_expected() local 8817 p += readbytes; in test_multiblock_write() [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/crypto/openssl/crypto/bio/ |
H A D | bio_lib.c | 292 ret = b->method->bread(b, data, dlen, readbytes); in bio_read_intern() 295 b->num_read += (uint64_t)*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() 330 return bio_read_intern(b, data, dlen, readbytes) > 0; in BIO_read_ex() 453 size_t readbytes = 0; in BIO_gets() local 483 readbytes = ret; in BIO_gets() 493 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 | 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/crypto/openssl/ssl/statem/ |
H A D | statem_dtls.c | 603 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 748 frag_len -= readbytes; in dtls1_process_out_of_seq_message() 771 if (i<=0 || readbytes != frag_len) in dtls1_process_out_of_seq_message() 808 size_t readbytes; in dtls_get_reassembled_message() local 842 s->init_num = readbytes - 1; in dtls_get_reassembled_message() 846 *len = readbytes - 1; in dtls_get_reassembled_message() 946 readbytes = 0; in dtls_get_reassembled_message() [all …]
|
H A D | statem_lib.c | 1166 size_t l, readbytes; in tls_get_message_header() local 1175 0, &readbytes); in tls_get_message_header() 1185 if (s->init_num != 0 || readbytes != 1 || p[0] != SSL3_MT_CCS) { in tls_get_message_header() 1202 s->init_num = readbytes - 1; in tls_get_message_header() 1204 s->s3.tmp.message_size = readbytes; in tls_get_message_header() 1211 s->init_num += readbytes; in tls_get_message_header() 1272 size_t n, readbytes; in tls_get_message_body() local 1286 &p[s->init_num], n, 0, &readbytes); in tls_get_message_body() 1292 s->init_num += readbytes; in tls_get_message_body() 1293 n -= readbytes; in tls_get_message_body()
|
/freebsd/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 | 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 1911 ret = (int)readbytes; in SSL_read() 1918 int ret = ssl_read_internal(s, buf, num, readbytes); in SSL_read_ex() 1955 ret = SSL_read_ex(s, buf, num, readbytes); in SSL_read_early_data() 1970 *readbytes = 0; in SSL_read_early_data() 2005 *readbytes = s->asyncrw; in ssl_peek_internal() 2015 size_t readbytes; in SSL_peek() local 2029 ret = (int)readbytes; in SSL_peek() [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/crypto/openssl/ssl/record/ |
H A D | record.h | 220 size_t *readbytes); 240 size_t *readbytes);
|
H A D | rec_layer_s3.c | 183 size_t *readbytes) in ssl3_read_n() argument 253 *readbytes = n; in ssl3_read_n() 340 *readbytes = n; in ssl3_read_n() 1272 size_t len, int peek, size_t *readbytes) in ssl3_read_bytes() argument 1321 *readbytes = n; in ssl3_read_bytes() 1494 *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/crypto/openssl/include/internal/ |
H A D | bio.h | 79 size_t *readbytes);
|
/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 | 124 =item B<BIO_read_ex(b, data, dlen, readbytes)> 135 &readbytes) 173 &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/crypto/openssl/test/helpers/ |
H A D | ssltestlib.c | 1155 size_t readbytes; in create_ssl_connection() local 1166 if (SSL_read_ex(clientssl, &buf, sizeof(buf), &readbytes) > 0) { in create_ssl_connection() 1167 if (!TEST_ulong_eq(readbytes, 0)) in create_ssl_connection()
|
/freebsd/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()
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | ssl.h | 1960 __owur int SSL_read_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes); 1967 size_t *readbytes); 1969 __owur int SSL_peek_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);
|