Home
last modified time | relevance | path

Searched refs:readbytes (Results 1 – 24 of 24) sorted by relevance

/third_party/gstreamer/gstreamer/plugins/elements/
Dgstfdsrc.c426 gssize readbytes; in gst_fd_src_create_offset() local
484 readbytes = read (src->fd, info.data, blocksize); in gst_fd_src_create_offset()
485 GST_LOG_OBJECT (src, "read %" G_GSSIZE_FORMAT, readbytes); in gst_fd_src_create_offset()
486 } while (readbytes == -1 && errno == EINTR); /* retry if interrupted */ in gst_fd_src_create_offset()
488 if (readbytes < 0) in gst_fd_src_create_offset()
492 gst_buffer_resize (buf, 0, readbytes); in gst_fd_src_create_offset()
494 if (readbytes == 0) in gst_fd_src_create_offset()
499 src->curoffset += readbytes; in gst_fd_src_create_offset()
501 GST_DEBUG_OBJECT (src, "Read buffer of size %" G_GSSIZE_FORMAT, readbytes); in gst_fd_src_create_offset()
569 gssize readbytes; in gst_fd_src_create() local
[all …]
/third_party/openssl/crypto/bio/
Dbio_lib.c251 static int bio_read_intern(BIO *b, void *data, size_t dlen, size_t *readbytes) in bio_read_intern() argument
270 ret = b->method->bread(b, data, dlen, readbytes); in bio_read_intern()
273 b->num_read += (uint64_t)*readbytes; in bio_read_intern()
277 dlen, 0, 0L, ret, readbytes); in bio_read_intern()
280 if (ret > 0 && *readbytes > dlen) { in bio_read_intern()
290 size_t readbytes; in BIO_read() local
296 ret = bio_read_intern(b, data, (size_t)dlen, &readbytes); in BIO_read()
300 ret = (int)readbytes; in BIO_read()
306 int BIO_read_ex(BIO *b, void *data, size_t dlen, size_t *readbytes) in BIO_read_ex() argument
310 ret = bio_read_intern(b, data, dlen, readbytes); in BIO_read_ex()
[all …]
Dbio_meth.c116 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()
/third_party/openssl/ssl/statem/
Dstatem_dtls.c538 size_t readbytes; in dtls1_reassemble_fragment() local
583 frag_len, 0, &readbytes); in dtls1_reassemble_fragment()
586 frag_len -= readbytes; in dtls1_reassemble_fragment()
594 frag_len, 0, &readbytes); in dtls1_reassemble_fragment()
595 if (i <= 0 || readbytes != frag_len) in dtls1_reassemble_fragment()
647 size_t readbytes; in dtls1_process_out_of_seq_message() local
680 frag_len, 0, &readbytes); in dtls1_process_out_of_seq_message()
683 frag_len -= readbytes; in dtls1_process_out_of_seq_message()
705 &readbytes); in dtls1_process_out_of_seq_message()
706 if (i<=0 || readbytes != frag_len) in dtls1_process_out_of_seq_message()
[all …]
Dstatem_lib.c1154 size_t l, readbytes; in tls_get_message_header() local
1163 0, &readbytes); in tls_get_message_header()
1173 if (s->init_num != 0 || readbytes != 1 || p[0] != SSL3_MT_CCS) { in tls_get_message_header()
1191 s->init_num = readbytes - 1; in tls_get_message_header()
1193 s->s3->tmp.message_size = readbytes; in tls_get_message_header()
1201 s->init_num += readbytes; in tls_get_message_header()
1262 size_t n, readbytes; in tls_get_message_body() local
1276 &p[s->init_num], n, 0, &readbytes); in tls_get_message_body()
1282 s->init_num += readbytes; in tls_get_message_body()
1283 n -= readbytes; in tls_get_message_body()
/third_party/openssl/test/
Dsslapitest.c404 size_t readbytes, written; in test_keylog_no_master_key() local
479 &readbytes), in test_keylog_no_master_key()
609 size_t readbytes; in test_ccs_change_cipher() local
666 if (SSL_read_ex(clientssl, &buf, sizeof(buf), &readbytes) > 0) { in test_ccs_change_cipher()
667 if (!TEST_ulong_eq(readbytes, 0)) in test_ccs_change_cipher()
673 if (SSL_read_ex(serverssl, &buf, sizeof(buf), &readbytes) > 0) { in test_ccs_change_cipher()
674 if (!TEST_ulong_eq(readbytes, 0)) in test_ccs_change_cipher()
2271 size_t readbytes, written, eoedlen, rawread, rawwritten; in test_early_data_read_write() local
2283 sizeof(buf), &readbytes), in test_early_data_read_write()
2285 || !TEST_mem_eq(MSG1, readbytes, buf, strlen(MSG1)) in test_early_data_read_write()
[all …]
Dtls13ccstest.c250 size_t written, readbytes; in test_tls13ccs() local
343 &readbytes), in test_tls13ccs()
354 &readbytes), in test_tls13ccs()
Dssltestlib.c915 size_t readbytes; in create_ssl_connection() local
926 if (SSL_read_ex(clientssl, &buf, sizeof(buf), &readbytes) > 0) { in create_ssl_connection()
927 if (!TEST_ulong_eq(readbytes, 0)) in create_ssl_connection()
/third_party/openssl/ssl/
Dbio_ssl.c20 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()
Dssl_lib.c1734 int ssl_read_internal(SSL *s, void *buf, size_t num, size_t *readbytes) in ssl_read_internal() argument
1768 *readbytes = s->asyncrw; in ssl_read_internal()
1771 return s->method->ssl_read(s, buf, num, readbytes); in ssl_read_internal()
1778 size_t readbytes; in SSL_read() local
1785 ret = ssl_read_internal(s, buf, (size_t)num, &readbytes); in SSL_read()
1792 ret = (int)readbytes; in SSL_read()
1797 int SSL_read_ex(SSL *s, void *buf, size_t num, size_t *readbytes) in SSL_read_ex() argument
1799 int ret = ssl_read_internal(s, buf, num, readbytes); in SSL_read_ex()
1806 int SSL_read_early_data(SSL *s, void *buf, size_t num, size_t *readbytes) in SSL_read_early_data() argument
1837 ret = SSL_read_ex(s, buf, num, readbytes); in SSL_read_early_data()
[all …]
Ds3_lib.c4428 size_t readbytes; in ssl3_shutdown() local
4432 s->method->ssl_read_bytes(s, 0, NULL, NULL, 0, 0, &readbytes); in ssl3_shutdown()
4456 size_t *readbytes) in ssl3_read_internal() argument
4466 peek, readbytes); in ssl3_read_internal()
4478 len, peek, readbytes); in ssl3_read_internal()
4486 int ssl3_read(SSL *s, void *buf, size_t len, size_t *readbytes) in ssl3_read() argument
4488 return ssl3_read_internal(s, buf, len, 0, readbytes); in ssl3_read()
4491 int ssl3_peek(SSL *s, void *buf, size_t len, size_t *readbytes) in ssl3_peek() argument
4493 return ssl3_read_internal(s, buf, len, 1, readbytes); in ssl3_peek()
Dssl_local.h447 int (*ssl_read) (SSL *s, void *buf, size_t len, size_t *readbytes);
448 int (*ssl_peek) (SSL *s, void *buf, size_t len, size_t *readbytes);
455 size_t *readbytes);
2251 __owur int ssl_read_internal(SSL *s, void *buf, size_t num, size_t *readbytes);
2369 __owur int ssl3_read(SSL *s, void *buf, size_t len, size_t *readbytes);
2370 __owur int ssl3_peek(SSL *s, void *buf, size_t len, size_t *readbytes);
/third_party/openssl/ssl/record/
Drecord.h212 size_t *readbytes);
229 size_t *readbytes);
Drec_layer_s3.c170 size_t *readbytes) in ssl3_read_n() argument
258 *readbytes = n; in ssl3_read_n()
329 *readbytes = n; in ssl3_read_n()
1218 size_t len, int peek, size_t *readbytes) in ssl3_read_bytes() argument
1268 *readbytes = n; in ssl3_read_bytes()
1442 *readbytes = totalbytes; in ssl3_read_bytes()
Drecord_local.h40 size_t *readbytes);
Drec_layer_d1.c343 size_t len, int peek, size_t *readbytes) in dtls1_read_bytes() argument
541 *readbytes = n; in dtls1_read_bytes()
/third_party/openssl/doc/man3/
DBIO_set_callback.pod115 =item B<BIO_read_ex(b, data, dlen, readbytes)>
126 &readbytes)
164 &readbytes)
DSSL_read.pod12 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>.
DBIO_read.pod12 int BIO_read_ex(BIO *b, void *data, size_t dlen, size_t *readbytes);
24 stored in B<*readbytes>.
DSSL_read_early_data.pod42 int SSL_read_early_data(SSL *s, void *buf, size_t num, size_t *readbytes);
/third_party/openssl/apps/
Ds_server.c2377 size_t readbytes; in sv_body() local
2381 edret = SSL_read_early_data(con, buf, bufsize, &readbytes); in sv_body()
2397 if (readbytes > 0) { in sv_body()
2402 raw_write_stdout(buf, (unsigned int)readbytes); in sv_body()
Ds_client.c2739 size_t readbytes, writtenbytes; in s_client_main() local
2748 if (!BIO_read_ex(edfile, cbuf, BUFSIZZ, &readbytes)) in s_client_main()
2751 while (!SSL_write_early_data(con, cbuf, readbytes, &writtenbytes)) { in s_client_main()
/third_party/openssl/include/openssl/
Dssl.h1830 __owur int SSL_read_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);
1837 size_t *readbytes);
1839 __owur int SSL_peek_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);
Dbio.h560 int BIO_read_ex(BIO *b, void *data, size_t dlen, size_t *readbytes);