/openssl/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); 18 object. The SSL engine inherits the behaviour of B<rbio>. If the BIO is 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 54 If the B<rbio> and B<wbio> parameters are the same and the B<rbio> is not 59 If the B<rbio> and B<wbio> parameters are the same and the B<rbio> is the 64 If the B<rbio> and B<wbio> parameters are different and the B<rbio> is the 67 references are consumed for the B<rbio>. 78 If the B<rbio> and B<wbio> parameters are different and the B<wbio> [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.
|
H A D | OSSL_HTTP_REQ_CTX.pod | 27 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size); 64 the B<BIO> to read/receive the response from (I<rbio>, which may be equal to 73 The I<rbio> is not free'd, I<wbio> will be free'd if I<free_wbio> is set. 108 In this case the BIO given as I<rbio> argument to OSSL_HTTP_REQ_CTX_new() should 138 and to gather the response via HTTP, using the I<wbio> and I<rbio> 154 Otherwise the returned BIO is the I<rbio> given to OSSL_HTTP_REQ_CTX_new(),
|
/openssl/test/ |
H A D | bad_dtls_test.c | 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() 348 BIO_write(rbio, lenbytes, 2); in send_record() 351 BIO_write(rbio, enc, len); in send_record() 468 BIO *rbio = NULL; in test_bad_dtls() local 509 rbio = BIO_new(BIO_s_mem()); in test_bad_dtls() 512 if (!TEST_ptr(rbio) in test_bad_dtls() 523 rbio = wbio = NULL; in test_bad_dtls() [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 | 126 BIO *rbio = BIO_new(BIO_s_mem()); in test_http_method() local 149 if (wbio == NULL || rbio == NULL || req == NULL) in test_http_method() 152 mock_args.out = rbio; in test_http_method() 162 real_server ? NULL : rbio, in test_http_method() 170 wbio, rbio, NULL /* bio_fn */, NULL /* arg */, in test_http_method() 200 BIO_free(rbio); in test_http_method() 208 BIO *rbio = BIO_new(BIO_s_mem()); in test_http_keep_alive() local 215 if (wbio == NULL || rbio == NULL) in test_http_keep_alive() 217 mock_args.out = rbio; in test_http_keep_alive() 241 (void)BIO_reset(rbio); /* discard response contents */ in test_http_keep_alive() [all …]
|
H A D | membio_test.c | 15 BIO *bio = BIO_new(BIO_s_dgram_mem()), *rbio = NULL; in test_dgram() local 26 rbio = BIO_new_mem_buf(msg1, sizeof(msg1)); in test_dgram() 27 if (!TEST_ptr(rbio)) in test_dgram() 31 if (!TEST_int_gt(BIO_set_mem_eof_return(rbio, 0), 0)) in test_dgram() 103 BIO_free(rbio); in test_dgram()
|
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 | 381 BIO *rbio = NULL, *wbio = NULL, *sbio = NULL; in test_just_finished() local 415 rbio = BIO_new(BIO_s_mem()); in test_just_finished() 418 if (!TEST_ptr(serverssl) || !TEST_ptr(rbio) || !TEST_ptr(wbio)) in test_just_finished() 421 sbio = rbio; in test_just_finished() 422 SSL_set0_rbio(serverssl, rbio); in test_just_finished() 424 rbio = wbio = NULL; in test_just_finished() 443 BIO_free(rbio); in test_just_finished()
|
H A D | sslapitest.c | 3327 BIO *rbio; in test_early_data_read_write() local 3393 rbio = SSL_get_rbio(serverssl); in test_early_data_read_write() 6755 BIO *rbio, *wbio; in test_max_fragment_len_ext() local 6770 rbio = BIO_new(BIO_s_mem()); in test_max_fragment_len_ext() 6773 BIO_free(rbio); in test_max_fragment_len_ext() 6778 SSL_set_bio(con, rbio, wbio); in test_max_fragment_len_ext() 9084 BIO *rbio = NULL, *wbio = NULL; in test_ssl_dup() local 9102 rbio = SSL_get_rbio(clientssl); in test_ssl_dup() 9103 if (!TEST_ptr(rbio) in test_ssl_dup() 9107 rbio = NULL; in test_ssl_dup() [all …]
|
/openssl/apps/ |
H A D | enc.c | 109 BIO *in = NULL, *out = NULL, *b64 = NULL, *benc = NULL, *rbio = in enc_main() local 398 rbio = in; in enc_main() 412 rbio = BIO_push(bzl, rbio); in enc_main() 428 rbio = BIO_push(b64, rbio); in enc_main() 470 if (BIO_read(rbio, mbuf, sizeof(mbuf)) != sizeof(mbuf)) { in enc_main() 475 if (BIO_read(rbio, salt, in enc_main() 621 while (BIO_pending(rbio) || !BIO_eof(rbio)) { in enc_main() 622 inl = BIO_read(rbio, (char *)buff, bsize); in enc_main() 625 if (!streamable && !BIO_eof(rbio)) { /* do not output data */ in enc_main()
|
/openssl/crypto/http/ |
H A D | http_client.c | 49 BIO *rbio; /* BIO to read/receive response from */ member 94 if (wbio == NULL || rbio == NULL) { in OSSL_HTTP_REQ_CTX_new() 105 rctx->rbio = rbio; in OSSL_HTTP_REQ_CTX_new() 536 n = BIO_read(rctx->rbio, rctx->buf, rctx->buf_size); in OSSL_HTTP_REQ_CTX_nbio() 539 n = BIO_gets(rctx->rbio, buf, rctx->buf_size); in OSSL_HTTP_REQ_CTX_nbio() 548 if (BIO_should_retry(rctx->rbio)) in OSSL_HTTP_REQ_CTX_nbio() 936 return rctx->state == OHS_STREAM ? rctx->rbio : rctx->mem; in OSSL_HTTP_REQ_CTX_exchange() 960 if (rbio != NULL && (bio == NULL || bio_update_fn != NULL)) { in OSSL_HTTP_open() 1021 rctx = http_req_ctx_new(bio == NULL, cbio, rbio != NULL ? rbio : cbio, in OSSL_HTTP_open() 1144 BIO *bio, BIO *rbio, in OSSL_HTTP_get() argument [all …]
|
/openssl/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,
|
/openssl/ssl/quic/ |
H A D | quic_impl.c | 112 BIO *rbio = SSL_get_rbio(s); in ossl_quic_read() local 115 if (sc == NULL || rbio == NULL) in ossl_quic_read() 119 ret = BIO_read_ex(rbio, buf, len, readbytes); in ossl_quic_read() 120 if (ret > 0 || !BIO_should_retry(rbio)) in ossl_quic_read()
|
/openssl/ssl/ |
H A D | bio_ssl.c | 256 else if (sc->rbio != NULL) in ssl_ctrl() 257 ret = BIO_ctrl(sc->rbio, cmd, num, ptr); in ssl_ctrl() 323 ret = BIO_pending(sc->rbio); in ssl_ctrl() 331 if ((next != NULL) && (next != sc->rbio)) { in ssl_ctrl() 385 ret = BIO_ctrl(sc->rbio, cmd, num, ptr); in ssl_ctrl() 391 ret = BIO_ctrl(sc->rbio, cmd, num, ptr); in ssl_ctrl()
|
H A D | d1_lib.c | 378 BIO_ctrl(s->rbio, BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT, 0, in dtls1_stop_timer() 450 BIO *rbio, *wbio; in DTLSv1_listen() local 469 rbio = SSL_get_rbio(ssl); in DTLSv1_listen() 472 if (!rbio || !wbio) { in DTLSv1_listen() 504 n = BIO_read(rbio, buf, SSL3_RT_MAX_PLAIN_LENGTH in DTLSv1_listen() 507 if (BIO_should_retry(rbio)) { in DTLSv1_listen() 789 if (BIO_dgram_get_peer(rbio, tmpclient) > 0) { in DTLSv1_listen() 844 if (BIO_dgram_get_peer(rbio, client) <= 0) in DTLSv1_listen()
|
H A D | ssl_lib.c | 1359 BIO_free_all(s->rbio); in ossl_ssl_connection_free() 1360 s->rbio = NULL; in ossl_ssl_connection_free() 1433 BIO_free_all(sc->rbio); in SSL_set0_rbio() 1434 sc->rbio = rbio; in SSL_set0_rbio() 1474 if (rbio != NULL && rbio == wbio) in SSL_set_bio() 1475 BIO_up_ref(rbio); in SSL_set_bio() 1490 SSL_set0_rbio(s, rbio); in SSL_set_bio() 1495 SSL_set0_rbio(s, rbio); in SSL_set_bio() 1506 return sc->rbio; in SSL_get_rbio() 1587 if (rbio == NULL || BIO_method_type(rbio) != BIO_TYPE_SOCKET in SSL_set_wfd() [all …]
|
H A D | t1_enc.c | 397 bio = s->rbio; in tls1_change_cipher_state() 412 (BIO_get_ktls_recv(s->rbio) && (which & SSL3_CC_READ))) { in tls1_change_cipher_state()
|
H A D | tls13_enc.c | 750 bio = s->rbio; in tls13_change_cipher_state()
|
/openssl/crypto/x509/ |
H A D | x_all.c | 76 static ASN1_VALUE *simple_get_asn1(const char *url, BIO *bio, BIO *rbio, in simple_get_asn1() argument 80 bio, rbio, NULL /* cb */ , NULL /* arg */, in simple_get_asn1() 90 X509 *X509_load_http(const char *url, BIO *bio, BIO *rbio, int timeout) in X509_load_http() argument 92 return (X509 *)simple_get_asn1(url, bio, rbio, timeout, in X509_load_http() 126 X509_CRL *X509_CRL_load_http(const char *url, BIO *bio, BIO *rbio, int timeout) in X509_CRL_load_http() argument 128 return (X509_CRL *)simple_get_asn1(url, bio, rbio, timeout, in X509_CRL_load_http()
|
/openssl/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()
|
/openssl/ssl/record/ |
H A D | rec_layer_s3.c | 1488 BIO *rbio; in ssl3_read_bytes() local 1504 rbio = SSL_get_rbio(ssl); in ssl3_read_bytes() 1505 BIO_clear_retry_flags(rbio); in ssl3_read_bytes() 1506 BIO_set_retry_read(rbio); in ssl3_read_bytes() 1882 prev, s->rbio, in ssl_set_new_record_layer()
|
/openssl/ssl/statem/ |
H A D | statem_clnt.c | 389 BIO *rbio; in ossl_statem_client_read_transition() local 397 rbio = SSL_get_rbio(SSL_CONNECTION_GET_SSL(s)); in ossl_statem_client_read_transition() 398 BIO_clear_retry_flags(rbio); in ossl_statem_client_read_transition() 399 BIO_set_retry_read(rbio); in ossl_statem_client_read_transition()
|
H A D | statem_srvr.c | 299 BIO *rbio; in ossl_statem_server_read_transition() local 307 rbio = SSL_get_rbio(SSL_CONNECTION_GET_SSL(s)); in ossl_statem_server_read_transition() 308 BIO_clear_retry_flags(rbio); in ossl_statem_server_read_transition() 309 BIO_set_retry_read(rbio); in ossl_statem_server_read_transition()
|