/freebsd/crypto/openssl/test/ |
H A D | membio_test.c | 50 if (!TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg1)) in test_dgram() 52 || !TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg2)) in test_dgram() 54 || !TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg3)) in test_dgram() 56 || !TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg4)) in test_dgram() 65 if (!TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg1)) in test_dgram() 70 if (!TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg2)) in test_dgram() 72 || !TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg3)) in test_dgram() 84 if (!TEST_int_eq(BIO_read(bio, buf, /* Short buffer */ 2), 2) in test_dgram() 87 if (!TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg2)) in test_dgram() 97 || !TEST_int_lt(BIO_read(bio, buf, sizeof(buf)), 0) in test_dgram()
|
H A D | bio_memleak_test.c | 32 if (!TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(str))) in test_bio_memleak() 81 if (!TEST_int_eq(BIO_read(bio, data, 5), 5)) in test_bio_new_mem_buf() 89 if (!TEST_int_eq(BIO_read(bio, data, 16), 7)) in test_bio_new_mem_buf() 95 if (!TEST_int_eq(BIO_read(bio, data, 16), 12)) in test_bio_new_mem_buf() 116 if (!TEST_int_eq(BIO_read(bio, data, 5), 5)) in test_bio_rdonly_mem_buf() 130 if (!TEST_int_eq(BIO_read(bio2, data, 16), 7)) in test_bio_rdonly_mem_buf() 136 if (!TEST_int_eq(BIO_read(bio2, data, 16), 7)) in test_bio_rdonly_mem_buf() 161 if (!TEST_int_eq(BIO_read(bio, data, 16), 12)) in test_bio_rdwr_rdonly() 171 if (!TEST_int_eq(BIO_read(bio, data, 16), 16)) in test_bio_rdwr_rdonly() 198 if (!TEST_int_eq(BIO_read(bio, data, 16), 12)) in test_bio_nonclear_rst() [all …]
|
H A D | bio_enc_test.c | 62 lref = BIO_read(b, ref, sizeof(ref)); in do_bio_cipher() 80 tmplen = BIO_read(b, out, i); in do_bio_cipher() 89 tmplen = BIO_read(b, out + len, sizeof(out) - len); in do_bio_cipher() 118 for (len = 0; (delta = BIO_read(b, out + len, i)); ) { in do_bio_cipher() 154 len = BIO_read(b, out, sizeof(out)); in do_bio_cipher() 175 len = BIO_read(b, out, i); in do_bio_cipher() 181 len += BIO_read(b, out + len, sizeof(out) - len); in do_bio_cipher() 206 for (len = 0; (delta = BIO_read(b, out + len, i)); ) { in do_bio_cipher() 312 || !TEST_int_gt((n = BIO_read(cbio, cbuf, sizeof(cbuf))), 0) in test_bio_enc_eof_read_flush()
|
H A D | bio_callback_test.c | 82 i = BIO_read(bio, buf, sizeof(buf)); in test_bio_callback_ex() 102 i = BIO_read(bio, buf, sizeof(buf)); in test_bio_callback_ex() 139 i = BIO_read(bio, buf, sizeof(buf)); in test_bio_callback_ex() 253 i = BIO_read(bio, buf, sizeof(buf)); in test_bio_callback() 272 i = BIO_read(bio, buf, sizeof(buf)); in test_bio_callback() 292 i = BIO_read(bio, buf, sizeof(buf)); in test_bio_callback()
|
H A D | bio_base64_test.c | 249 n = BIO_read(b64, out, out_len); in test_bio_base64_run() 255 n2 = BIO_read(b64, out + n, out_len - n); in test_bio_base64_run() 259 n = BIO_read(b64, out, out_len); in test_bio_base64_run() 273 ret = BIO_read(b64, out + n, out_len - n); in test_bio_base64_run()
|
H A D | bio_dgram_test.c | 214 if (!TEST_int_eq(BIO_read(b2, rx_buf, sizeof(rx_buf)), 5)) in test_bio_dgram_impl() 589 r = BIO_read(bio2, scratch2, sizeof(scratch2)); in test_bio_dgram_pair() 598 if (!TEST_int_eq(BIO_read(bio2, scratch2, sizeof(scratch2)), -1)) in test_bio_dgram_pair() 750 if (!TEST_int_eq(BIO_read(bio2, scratch2, 32), -1)) in test_bio_dgram_pair() 759 if (!TEST_int_eq(BIO_read(bio2, scratch2, 32), 32)) in test_bio_dgram_pair()
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | BIO_s_datagram.pod | 38 a single datagram and a single BIO_read() call receives a single datagram. If 39 the size of the buffer passed to BIO_read() is inadequate, the datagram is 69 any successful call to BIO_read() results in the peer address used for any 71 received by that call to BIO_read(). Thus, unless the caller calls 73 calls BIO_read(), any host on the network may cause future datagrams written to 77 only and forego use of L<BIO_read(3)> and L<BIO_write(3)>. An exception is where 83 Unlike L<BIO_read(3)> and L<BIO_write(3)>, the L<BIO_sendmmsg(3)> and 134 The peer address of the datagram last received by a call to BIO_read(). 143 modified by future calls to L<BIO_read(3)>, making use of BIO_s_datagram() 161 call to L<BIO_read(3)>) may have been caused by a receive timeout. [all …]
|
H A D | BIO_read.pod | 5 BIO_read_ex, BIO_write_ex, BIO_read, BIO_write, 16 int BIO_read(BIO *b, void *data, int dlen); 32 BIO_read() attempts to read I<len> bytes from BIO I<b> and places 92 select() on the underlying I/O structure and then call BIO_read() to 93 read the data) should B<not> be used because a single call to BIO_read()
|
H A D | BIO_f_base64.pod | 44 If decoding stops as a result of an error, the first L<BIO_read(3)> that 95 while ((inlen = BIO_read(b64, inbuf, 512)) > 0) 116 It may be possible for L<BIO_read(3)> to return zero, rather than -1, even if 122 L<BIO_read(3)>,
|
H A D | BIO_socket_wait.pod | 28 It is used by BIO_do_connect_retry() and can be used together L<BIO_read(3)>. 53 L<BIO_do_connect(3)>, L<BIO_read(3)>
|
H A D | BIO_s_mem.pod | 37 subsequent call to L<BIO_read(3)> will read the data in that datagram. The 38 L<BIO_read(3)> call will never return more data than was written in the original 40 wrote more datagrams. Each successive call to L<BIO_read(3)> will read the next 41 datagram. If a L<BIO_read(3)> call supplies a read buffer that is smaller than 46 this case will return 0 and no datagrams will be written. Calling L<BIO_read(3)>
|
/freebsd/crypto/openssl/providers/implementations/storemgmt/ |
H A D | file_store_any2obj.c | 179 ok = BIO_read(in, &mem->data[0], mem_want) == (int)mem_want; in msblob2obj_decode() 201 ok = BIO_read(in, &mem->data[mem_len], mem_want) == (int)mem_want; in msblob2obj_decode() 248 ok = BIO_read(in, &mem->data[0], mem_want) == (int)mem_want; in pvk2obj_decode() 270 ok = BIO_read(in, &mem->data[mem_len], mem_want) == (int)mem_want; in pvk2obj_decode()
|
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | a_d2i_fp.c | 140 i = BIO_read(in, &(b->data[len]), want); in asn1_d2i_read_bio() 217 i = BIO_read(in, &(b->data[len]), chunk); in asn1_d2i_read_bio()
|
/freebsd/crypto/openssl/crypto/bio/ |
H A D | bf_readbuff.c | 141 i = BIO_read(b->next_bio, ctx->ibuf + ctx->ibuf_off, outl); in readbuffer_read() 276 j = BIO_read(b->next_bio, p, 1); in readbuffer_gets()
|
H A D | bf_buff.c | 125 i = BIO_read(b->next_bio, out, outl); in buffer_read() 143 i = BIO_read(b->next_bio, ctx->ibuf, ctx->ibuf_size); in buffer_read() 451 i = BIO_read(b->next_bio, ctx->ibuf, ctx->ibuf_size); in buffer_gets()
|
/freebsd/crypto/openssl/providers/implementations/encode_decode/ |
H A D | decode_msblob2key.c | 111 if (BIO_read(in, hdr_buf, 16) != 16) { in msblob2key_decode() 138 if (BIO_read(in, buf, length) != (int)length) { in msblob2key_decode()
|
/freebsd/crypto/openssl/apps/ |
H A D | s_client.c | 2399 BIO_read(sbio, sbuf, BUFSIZZ); in s_client_main() 2404 BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main() 2406 mbuf_len = BIO_read(sbio, sbuf, BUFSIZZ); in s_client_main() 2442 BIO_read(sbio, sbuf, BUFSIZZ); in s_client_main() 2463 BIO_read(sbio, sbuf, BUFSIZZ); in s_client_main() 2475 seen = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main() 2486 seen = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main() 2495 seen = BIO_read(sbio, sbuf, BUFSIZZ); in s_client_main() 2523 bytes = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main() 2531 bytes = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main() [all …]
|
/freebsd/crypto/openssl/demos/bio/ |
H A D | server-cmod.c | 67 i = BIO_read(in, buf, sizeof(buf)); in main()
|
H A D | saccept.c | 101 i = BIO_read(in, buf, 512); in main()
|
H A D | client-arg.c | 99 len = BIO_read(sbio, tmpbuf, 1024); in main()
|
H A D | server-arg.c | 120 i = BIO_read(in, buf, 512); in main()
|
/freebsd/crypto/openssl/doc/designs/ddd/ |
H A D | ddd-05-mem-nonblocking.c | 172 l = BIO_read(conn->ssl_bio, buf, buf_len); 200 return BIO_read(conn->net_bio, buf, buf_len);
|
/freebsd/crypto/openssl/demos/digest/ |
H A D | BIO_f_md.c | 98 while (BIO_read(reading, buffer, sizeof(buffer)) > 0) in main()
|
H A D | EVP_MD_stdin.c | 96 while ((ii = BIO_read(input, buffer, sizeof(buffer))) > 0) { in demonstrate_digest()
|
/freebsd/crypto/openssl/doc/designs/quic-design/ |
H A D | dgram-api.md | 325 used in rare circumstances, such as when calls to `BIO_read` and 399 `BIO_read`/`BIO_write` as a less efficient fallback for existing third party 406 1. BIO_read (legacy call path) 408 3. BIO_read (legacy call path) 417 When the application calls `BIO_read`, a copy is performed and the internal 424 whereas with (b) the buffer passed to `BIO_read` gets passed through to the 430 For (2) the new API is used. Since the previous call to BIO_read is essentially 437 For (3) we have a legacy `BIO_read` but we have several datagrams still in the 451 subsequent calls to ordinary `BIO_read` will fail.
|