/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 3555 size_t readbytes, written; in test_early_data_replay_int() local 3692 size_t readbytes, written; in early_data_skip_helper() local 3879 size_t readbytes, written; in test_early_data_not_sent() local 3970 size_t readbytes, written; in test_early_data_psk() local 4142 size_t readbytes, written; in test_early_data_psk_with_all_ciphers() local 4251 size_t readbytes, written; in test_early_data_not_expected() local 4310 size_t readbytes, written; in test_early_data_tls1_2() local 8575 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()
|
/openssl/ssl/statem/ |
H A D | statem_dtls.c | 561 size_t readbytes; in dtls1_reassemble_fragment() local 610 frag_len -= readbytes; in dtls1_reassemble_fragment() 619 if (i <= 0 || readbytes != frag_len) in dtls1_reassemble_fragment() 671 size_t readbytes; in dtls1_process_out_of_seq_message() local 708 frag_len -= readbytes; in dtls1_process_out_of_seq_message() 731 if (i<=0 || readbytes != frag_len) in dtls1_process_out_of_seq_message() 769 size_t readbytes; in dtls_get_reassembled_message() local 803 s->init_num = readbytes - 1; in dtls_get_reassembled_message() 807 *len = readbytes - 1; in dtls_get_reassembled_message() 895 readbytes = 0; in dtls_get_reassembled_message() [all …]
|
H A D | statem_lib.c | 1191 size_t l, readbytes; in tls_get_message_header() local 1201 0, &readbytes); in tls_get_message_header() 1211 if (s->init_num != 0 || readbytes != 1 || p[0] != SSL3_MT_CCS) { in tls_get_message_header() 1228 s->init_num = readbytes - 1; in tls_get_message_header() 1230 s->s3.tmp.message_size = readbytes; in tls_get_message_header() 1237 s->init_num += readbytes; in tls_get_message_header() 1297 size_t n, readbytes; in tls_get_message_body() local 1312 &p[s->init_num], n, 0, &readbytes); in tls_get_message_body() 1318 s->init_num += readbytes; in tls_get_message_body() 1319 n -= readbytes; in tls_get_message_body()
|
/openssl/crypto/bio/ |
H A D | bio_lib.c | 291 ret = b->method->bread(b, data, dlen, readbytes); in bio_read_intern() 294 b->num_read += (uint64_t)*readbytes; in bio_read_intern() 301 if (ret > 0 && *readbytes > dlen) { in bio_read_intern() 311 size_t readbytes; in BIO_read() local 317 ret = bio_read_intern(b, data, (size_t)dlen, &readbytes); in BIO_read() 321 ret = (int)readbytes; in BIO_read() 329 return bio_read_intern(b, data, dlen, readbytes) > 0; in BIO_read_ex() 546 size_t readbytes = 0; in BIO_gets() local 576 readbytes = ret; in BIO_gets() 586 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()
|
/openssl/ssl/quic/ |
H A D | quic_impl.c | 109 int ossl_quic_read(SSL *s, void *buf, size_t len, size_t *readbytes) in ossl_quic_read() argument 119 ret = BIO_read_ex(rbio, buf, len, readbytes); in ossl_quic_read() 125 int ossl_quic_peek(SSL *s, void *buf, size_t len, size_t *readbytes) in ossl_quic_peek() argument
|
H A D | quic_local.h | 97 __owur int ossl_quic_read(SSL *s, void *buf, size_t len, size_t *readbytes); 98 __owur int ossl_quic_peek(SSL *s, void *buf, size_t len, 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); 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 | 2172 *readbytes = sc->asyncrw; in ssl_read_internal() 2175 return s->method->ssl_read(s, buf, num, readbytes); in ssl_read_internal() 2182 size_t readbytes; in SSL_read() local 2196 ret = (int)readbytes; in SSL_read() 2203 int ret = ssl_read_internal(s, buf, num, readbytes); in SSL_read_ex() 2245 ret = SSL_read_ex(s, buf, num, readbytes); in SSL_read_early_data() 2260 *readbytes = 0; in SSL_read_early_data() 2306 *readbytes = sc->asyncrw; in ssl_peek_internal() 2316 size_t readbytes; in SSL_peek() local 2330 ret = (int)readbytes; in SSL_peek() [all …]
|
H A D | s3_lib.c | 4467 size_t readbytes; in ssl3_shutdown() local 4471 s->method->ssl_read_bytes(s, 0, NULL, NULL, 0, 0, &readbytes); in ssl3_shutdown() 4500 size_t *readbytes) in ssl3_read_internal() argument 4514 peek, readbytes); in ssl3_read_internal() 4526 len, peek, readbytes); in ssl3_read_internal() 4534 int ssl3_read(SSL *s, void *buf, size_t len, size_t *readbytes) in ssl3_read() argument 4536 return ssl3_read_internal(s, buf, len, 0, readbytes); in ssl3_read() 4539 int ssl3_peek(SSL *s, void *buf, size_t len, size_t *readbytes) in ssl3_peek() argument 4541 return ssl3_read_internal(s, buf, len, 1, readbytes); in ssl3_peek()
|
H A D | ssl_local.h | 503 int (*ssl_read) (SSL *s, void *buf, size_t len, size_t *readbytes); 504 int (*ssl_peek) (SSL *s, void *buf, size_t len, size_t *readbytes); 511 size_t *readbytes); 2453 __owur int ssl_read_internal(SSL *s, void *buf, size_t num, size_t *readbytes); 2594 __owur int ssl3_read(SSL *s, void *buf, size_t len, size_t *readbytes); 2595 __owur int ssl3_peek(SSL *s, void *buf, size_t len, size_t *readbytes);
|
/openssl/ssl/record/ |
H A D | record.h | 215 size_t *readbytes); 238 size_t *readbytes);
|
H A D | rec_layer_d1.c | 221 size_t len, int peek, size_t *readbytes) in dtls1_read_bytes() argument 395 *readbytes = n; in dtls1_read_bytes()
|
/openssl/ssl/record/methods/ |
H A D | recmethod_local.h | 42 int clearold, size_t *readbytes); 247 int clearold, size_t *readbytes);
|
H A D | ktls_meth.c | 431 int clearold, size_t *readbytes) 435 ret = tls_default_read_n(rl, n, max, extend, clearold, readbytes);
|
H A D | tls_common.c | 155 int clearold, size_t *readbytes) in tls_default_read_n() argument 237 *readbytes = n; in tls_default_read_n() 321 *readbytes = n; in tls_default_read_n()
|
/openssl/include/internal/ |
H A D | bio.h | 81 size_t *readbytes);
|
/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>.
|
/openssl/test/helpers/ |
H A D | ssltestlib.c | 1183 size_t readbytes; in create_ssl_connection() local 1194 if (SSL_read_ex(clientssl, &buf, sizeof(buf), &readbytes) > 0) { in create_ssl_connection() 1195 if (!TEST_ulong_eq(readbytes, 0)) in create_ssl_connection()
|