| /netbsd-src/crypto/external/bsd/openssl/dist/doc/man3/ |
| H A D | SSL_set_bio.pod | 11 void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio); 12 void SSL_set0_rbio(SSL *s, BIO *rbio); 17 SSL_set0_rbio() connects the BIO B<rbio> for the read operations of the B<ssl> 18 object. The SSL engine inherits the behaviour of B<rbio>. If the BIO is 20 function transfers ownership of B<rbio> to B<ssl>. It will be automatically 22 function, any existing B<rbio> that was previously set will also be freed via a 23 call to L<BIO_free_all(3)> (this includes the case where the B<rbio> is set to 28 rbio and wbio are the same then SSL_set0_rbio() and SSL_set0_wbio() each take 34 that it connects both the B<rbio> and the B<wbio> at the same time, and 35 transfers the ownership of B<rbio> and B<wbio> to B<ssl> according to [all …]
|
| H A D | X509_load_http.pod | 15 X509 *X509_load_http(const char *url, BIO *bio, BIO *rbio, int timeout); 16 X509_CRL *X509_CRL_load_http(const char *url, BIO *bio, BIO *rbio, int timeout); 30 If B<bio> is given and B<rbio> is NULL then this BIO is used instead of an 32 If both B<bio> and B<rbio> are given (which may be memory BIOs, for instance) 34 B<bio> is used for writing the request, and B<rbio> for reading the response.
|
| H A D | OSSL_HTTP_transfer.pod | 23 int use_ssl, BIO *bio, BIO *rbio, 36 BIO *bio, BIO *rbio, 45 BIO *bio, BIO *rbio, 59 In this case I<rbio> must be NULL as well and the I<server> must be non-NULL. 65 If I<bio> is given and I<rbio> is NULL then this I<bio> is used instead. 66 If both I<bio> and I<rbio> are given (which may be memory BIOs for instance) 68 I<bio> is used for writing requests and I<rbio> for reading responses. 70 a response or indicate a waiting condition via I<rbio>. 96 but cannot be used when both I<bio> and I<rbio> are given.
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man3/ |
| H A D | SSL_set_bio.pod | 11 void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio); 12 void SSL_set0_rbio(SSL *s, BIO *rbio); 17 SSL_set0_rbio() connects the BIO B<rbio> for the read operations of the B<ssl> 18 object. The SSL engine inherits the behaviour of B<rbio>. If the BIO is 20 function transfers ownership of B<rbio> to B<ssl>. It will be automatically 22 function, any existing B<rbio> that was previously set will also be freed via a 23 call to L<BIO_free_all(3)> (this includes the case where the B<rbio> is set to 28 rbio and wbio are the same then SSL_set0_rbio() and SSL_set0_wbio() each take 34 that it connects both the B<rbio> and the B<wbio> at the same time, and 35 transfers the ownership of B<rbio> and B<wbio> to B<ssl> according to [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/test/ |
| H A D | bad_dtls_test.c | 192 static int send_hello_verify(BIO *rbio) in send_hello_verify() argument 215 BIO_write(rbio, hello_verify, sizeof(hello_verify)); in send_hello_verify() 220 static int send_server_hello(BIO *rbio) in send_server_hello() argument 264 BIO_write(rbio, server_hello, sizeof(server_hello)); in send_server_hello() 265 BIO_write(rbio, change_cipher_spec, sizeof(change_cipher_spec)); in send_server_hello() 271 static int send_record(BIO *rbio, unsigned char type, uint64_t seqnr, in send_record() argument 330 BIO_write(rbio, &type, 1); in send_record() 331 BIO_write(rbio, ver, 2); in send_record() 332 BIO_write(rbio, epoch, 2); in send_record() 333 BIO_write(rbio, seq, 6); in send_record() [all …]
|
| H A D | servername_test.c | 88 BIO *rbio; in client_setup_sni_before_state() local 105 rbio = BIO_new(BIO_s_mem()); in client_setup_sni_before_state() 107 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in client_setup_sni_before_state() 108 BIO_free(rbio); in client_setup_sni_before_state() 113 SSL_set_bio(con, rbio, wbio); in client_setup_sni_before_state() 136 BIO *rbio; in client_setup_sni_after_state() local 150 rbio = BIO_new(BIO_s_mem()); in client_setup_sni_after_state() 152 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in client_setup_sni_after_state() 153 BIO_free(rbio); in client_setup_sni_after_state() 158 SSL_set_bio(con, rbio, wbio); in client_setup_sni_after_state()
|
| H A D | clienthellotest.c | 63 BIO *rbio; in test_client_hello() local 167 rbio = BIO_new(BIO_s_mem()); in test_client_hello() 169 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in test_client_hello() 170 BIO_free(rbio); in test_client_hello() 175 SSL_set_bio(con, rbio, wbio); in test_client_hello()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/test/ |
| H A D | bad_dtls_test.c | 195 static int send_hello_verify(BIO *rbio) in send_hello_verify() argument 218 BIO_write(rbio, hello_verify, sizeof(hello_verify)); in send_hello_verify() 223 static int send_server_hello(BIO *rbio) in send_server_hello() argument 267 BIO_write(rbio, server_hello, sizeof(server_hello)); in send_server_hello() 268 BIO_write(rbio, change_cipher_spec, sizeof(change_cipher_spec)); in send_server_hello() 274 static int send_record(BIO *rbio, unsigned char type, uint64_t seqnr, in send_record() argument 342 BIO_write(rbio, &type, 1); in send_record() 343 BIO_write(rbio, ver, 2); in send_record() 344 BIO_write(rbio, epoch, 2); in send_record() 345 BIO_write(rbio, seq, 6); in send_record() [all …]
|
| H A D | servername_test.c | 101 BIO *rbio; in client_setup_sni_before_state() local 122 rbio = BIO_new(BIO_s_mem()); in client_setup_sni_before_state() 124 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in client_setup_sni_before_state() 125 BIO_free(rbio); in client_setup_sni_before_state() 130 SSL_set_bio(con, rbio, wbio); in client_setup_sni_before_state() 153 BIO *rbio; in client_setup_sni_after_state() local 171 rbio = BIO_new(BIO_s_mem()); in client_setup_sni_after_state() 173 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in client_setup_sni_after_state() 174 BIO_free(rbio); in client_setup_sni_after_state() 179 SSL_set_bio(con, rbio, wbio); in client_setup_sni_after_state()
|
| H A D | http_test.c | 117 BIO *rbio = BIO_new(BIO_s_mem()); in test_http_x509() local 124 if (wbio == NULL || rbio == NULL || req == NULL) in test_http_x509() 126 mock_args.out = rbio; in test_http_x509() 133 wbio, rbio, NULL /* bio_update_fn */, NULL /* arg */, in test_http_x509() 139 wbio, rbio, NULL /* bio_fn */, NULL /* arg */, in test_http_x509() 152 BIO_free(rbio); in test_http_x509() 160 BIO *rbio = BIO_new(BIO_s_mem()); in test_http_keep_alive() local 167 if (wbio == NULL || rbio == NULL) in test_http_keep_alive() 169 mock_args.out = rbio; in test_http_keep_alive() 179 wbio, rbio, NULL /* bio_update_fn */, NULL, in test_http_keep_alive() [all …]
|
| H A D | clienthellotest.c | 63 BIO *rbio; in test_client_hello() local 172 rbio = BIO_new(BIO_s_mem()); in test_client_hello() 174 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in test_client_hello() 175 BIO_free(rbio); in test_client_hello() 180 SSL_set_bio(con, rbio, wbio); in test_client_hello()
|
| H A D | dtlstest.c | 401 BIO *rbio = NULL, *wbio = NULL, *sbio = NULL; in test_just_finished() local 429 rbio = BIO_new(BIO_s_mem()); in test_just_finished() 432 if (!TEST_ptr(serverssl) || !TEST_ptr(rbio) || !TEST_ptr(wbio)) in test_just_finished() 435 sbio = rbio; in test_just_finished() 436 SSL_set0_rbio(serverssl, rbio); in test_just_finished() 438 rbio = wbio = NULL; in test_just_finished() 457 BIO_free(rbio); in test_just_finished()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/http/ |
| H A D | http_client.c | 49 BIO *rbio; /* BIO to read/receive response from */ member 90 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size) in OSSL_HTTP_REQ_CTX_new() argument 94 if (wbio == NULL || rbio == NULL) { in OSSL_HTTP_REQ_CTX_new() 105 rctx->rbio = rbio; in OSSL_HTTP_REQ_CTX_new() 371 static OSSL_HTTP_REQ_CTX *http_req_ctx_new(int free_wbio, BIO *wbio, BIO *rbio, in http_req_ctx_new() argument 378 OSSL_HTTP_REQ_CTX *rctx = OSSL_HTTP_REQ_CTX_new(wbio, rbio, buf_size); in http_req_ctx_new() 536 if (rctx->mem == NULL || rctx->wbio == NULL || rctx->rbio == NULL) { in OSSL_HTTP_REQ_CTX_nbio() 546 n = BIO_read(rctx->rbio, rctx->buf, rctx->buf_size); in OSSL_HTTP_REQ_CTX_nbio() 549 n = BIO_gets(rctx->rbio, buf, rctx->buf_size); in OSSL_HTTP_REQ_CTX_nbio() 552 n = BIO_get_line(rctx->rbio, buf, rctx->buf_size); in OSSL_HTTP_REQ_CTX_nbio() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/apps/ |
| H A D | enc.c | 118 BIO *in = NULL, *out = NULL, *b64 = NULL, *benc = NULL, *rbio = in enc_main() local 399 rbio = in; in enc_main() 413 rbio = BIO_push(bzl, rbio); in enc_main() 429 rbio = BIO_push(b64, rbio); in enc_main() 471 if (BIO_read(rbio, mbuf, sizeof(mbuf)) != sizeof(mbuf)) { in enc_main() 476 if (BIO_read(rbio, salt, in enc_main() 617 while (BIO_pending(rbio) || !BIO_eof(rbio)) { in enc_main() 618 inl = BIO_read(rbio, (char *)buff, bsize); in enc_main()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/apps/ |
| H A D | enc.c | 97 BIO *in = NULL, *out = NULL, *b64 = NULL, *benc = NULL, *rbio = in enc_main() local 380 rbio = in; in enc_main() 394 rbio = BIO_push(bzl, rbio); in enc_main() 410 rbio = BIO_push(b64, rbio); in enc_main() 450 } else if (BIO_read(rbio, mbuf, sizeof(mbuf)) != sizeof(mbuf) in enc_main() 451 || BIO_read(rbio, in enc_main() 590 while (BIO_pending(rbio) || !BIO_eof(rbio)) { in enc_main() 591 inl = BIO_read(rbio, (char *)buff, bsize); in enc_main()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/include/openssl/ |
| H A D | http.h | 40 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size); 66 int use_ssl, BIO *bio, BIO *rbio, 79 BIO *bio, BIO *rbio, 88 BIO *bio, BIO *rbio,
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/ |
| H A D | bio_ssl.c | 252 else if (ssl->rbio != NULL) in ssl_ctrl() 253 ret = BIO_ctrl(ssl->rbio, cmd, num, ptr); in ssl_ctrl() 319 ret = BIO_pending(ssl->rbio); in ssl_ctrl() 327 if ((next != NULL) && (next != ssl->rbio)) { in ssl_ctrl() 381 ret = BIO_ctrl(ssl->rbio, cmd, num, ptr); in ssl_ctrl() 387 ret = BIO_ctrl(ssl->rbio, cmd, num, ptr); in ssl_ctrl() 403 ret = BIO_callback_ctrl(ssl->rbio, cmd, fp); in ssl_callback_ctrl()
|
| H A D | d1_lib.c | 455 BIO *rbio, *wbio; in DTLSv1_listen() local 470 rbio = SSL_get_rbio(s); in DTLSv1_listen() 473 if (!rbio || !wbio) { in DTLSv1_listen() 514 n = BIO_read(rbio, buf, SSL3_RT_MAX_PLAIN_LENGTH in DTLSv1_listen() 517 if (BIO_should_retry(rbio)) { in DTLSv1_listen() 794 if (BIO_dgram_get_peer(rbio, tmpclient) > 0) { in DTLSv1_listen() 848 if (BIO_dgram_get_peer(rbio, client) <= 0) in DTLSv1_listen()
|
| H A D | ssl_lib.c | 1166 BIO_free_all(s->rbio); in SSL_free() 1242 void SSL_set0_rbio(SSL *s, BIO *rbio) in SSL_set0_rbio() argument 1244 BIO_free_all(s->rbio); in SSL_set0_rbio() 1245 s->rbio = rbio; in SSL_set0_rbio() 1264 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio) in SSL_set_bio() argument 1272 if (rbio == SSL_get_rbio(s) && wbio == SSL_get_wbio(s)) in SSL_set_bio() 1279 if (rbio != NULL && rbio == wbio) in SSL_set_bio() 1280 BIO_up_ref(rbio); in SSL_set_bio() 1285 if (rbio == SSL_get_rbio(s)) { in SSL_set_bio() 1295 SSL_set0_rbio(s, rbio); in SSL_set_bio() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/ssl/ |
| H A D | d1_lib.c | 466 BIO *rbio, *wbio; in DTLSv1_listen() local 481 rbio = SSL_get_rbio(s); in DTLSv1_listen() 484 if (!rbio || !wbio) { in DTLSv1_listen() 525 n = BIO_read(rbio, buf, SSL3_RT_MAX_PLAIN_LENGTH in DTLSv1_listen() 528 if (BIO_should_retry(rbio)) { in DTLSv1_listen() 805 if (BIO_dgram_get_peer(rbio, tmpclient) > 0) { in DTLSv1_listen() 858 if (BIO_dgram_get_peer(rbio, client) <= 0) in DTLSv1_listen()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/cms/ |
| H A D | cms_smime.c | 21 BIO *rbio; in cms_get_text_bio() local 23 rbio = BIO_new(BIO_s_null()); in cms_get_text_bio() 25 rbio = BIO_new(BIO_s_mem()); in cms_get_text_bio() 26 BIO_set_mem_eof_return(rbio, 0); in cms_get_text_bio() 28 rbio = out; in cms_get_text_bio() 29 return rbio; in cms_get_text_bio()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/x509/ |
| H A D | x_all.c | 92 static ASN1_VALUE *simple_get_asn1(const char *url, BIO *bio, BIO *rbio, in simple_get_asn1() argument 96 bio, rbio, NULL /* cb */, NULL /* arg */, in simple_get_asn1() 106 X509 *X509_load_http(const char *url, BIO *bio, BIO *rbio, int timeout) in X509_load_http() argument 108 return (X509 *)simple_get_asn1(url, bio, rbio, timeout, in X509_load_http() 160 X509_CRL *X509_CRL_load_http(const char *url, BIO *bio, BIO *rbio, int timeout) in X509_CRL_load_http() argument 162 return (X509_CRL *)simple_get_asn1(url, bio, rbio, timeout, in X509_CRL_load_http()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/ssl/record/ |
| H A D | rec_layer_s3.c | 284 if (!BIO_get_ktls_recv(s->rbio) && !s->rlayer.read_ahead in ssl3_read_n() 306 if (s->rbio != NULL) { in ssl3_read_n() 308 ret = BIO_read(s->rbio, pkt + len + left, max - left); in ssl3_read_n() 312 && !BIO_should_retry(s->rbio) in ssl3_read_n() 313 && BIO_eof(s->rbio)) { in ssl3_read_n() 1634 BIO *rbio; in ssl3_read_bytes() local 1651 rbio = SSL_get_rbio(s); in ssl3_read_bytes() 1652 BIO_clear_retry_flags(rbio); in ssl3_read_bytes() 1653 BIO_set_retry_read(rbio); in ssl3_read_bytes()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/cms/ |
| H A D | cms_smime.c | 21 BIO *rbio; in cms_get_text_bio() local 24 rbio = BIO_new(BIO_s_null()); in cms_get_text_bio() 26 rbio = BIO_new(BIO_s_mem()); in cms_get_text_bio() 27 BIO_set_mem_eof_return(rbio, 0); in cms_get_text_bio() 29 rbio = out; in cms_get_text_bio() 30 return rbio; in cms_get_text_bio()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/record/ |
| H A D | rec_layer_s3.c | 306 if (s->rbio != NULL) { in ssl3_read_n() 309 ret = BIO_read(s->rbio, pkt + len + left, max - left); in ssl3_read_n() 1594 BIO *rbio; in ssl3_read_bytes() local 1611 rbio = SSL_get_rbio(s); in ssl3_read_bytes() 1612 BIO_clear_retry_flags(rbio); in ssl3_read_bytes() 1613 BIO_set_retry_read(rbio); in ssl3_read_bytes()
|