Home
last modified time | relevance | path

Searched refs:rbio (Results 1 - 25 of 152) sorted by relevance

1234567

/third_party/openssl/test/
H A Dbad_dtls_test.c195 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, se in send_record()
361 send_finished(SSL *s, BIO *rbio) send_finished() argument
468 BIO *rbio = NULL; test_bad_dtls() local
[all...]
H A Dservername_test.c101 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, wbi in client_setup_sni_after_state()
[all...]
H A Dhttp_test.c117 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, NUL in test_http_keep_alive()
[all...]
H A Dclienthellotest.c63 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 Ddtlstest.c401 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()
H A Dsslapitest.c1236 if (!TEST_false(BIO_get_ktls_recv(clientssl->rbio))) in execute_test_ktls()
1239 if (BIO_get_ktls_send(clientssl->rbio)) in execute_test_ktls()
1244 if (!TEST_false(BIO_get_ktls_recv(serverssl->rbio))) in execute_test_ktls()
1247 if (BIO_get_ktls_send(serverssl->rbio)) in execute_test_ktls()
2880 * various combinations of valid BIOs or NULL being set for the rbio/wbio. We
3033 /* Verify changing the rbio/wbio directly does not cause leaks */ in execute_test_ssl_bio()
3484 BIO *rbio; in test_early_data_read_write() local
3551 rbio = SSL_get_rbio(serverssl); in test_early_data_read_write()
3552 if (!TEST_true(BIO_read_ex(rbio, data, sizeof(data), &rawread)) in test_early_data_read_write()
3559 if (!TEST_true(BIO_write_ex(rbio, dat in test_early_data_read_write()
6949 BIO *rbio, *wbio; test_max_fragment_len_ext() local
9422 BIO *rbio = NULL, *wbio = NULL; test_ssl_dup() local
[all...]
/third_party/node/deps/openssl/openssl/apps/
H A Denc.c118 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()
[all...]
/third_party/openssl/apps/
H A Denc.c118 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()
[all...]
/third_party/node/deps/openssl/openssl/crypto/http/
H A Dhttp_client.c49 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()
126 /* do not free rctx->rbio */ in OSSL_HTTP_REQ_CTX_free()
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, rct in OSSL_HTTP_REQ_CTX_nbio()
927 OSSL_HTTP_open(const char *server, const char *port, const char *proxy, const char *no_proxy, int use_ssl, BIO *bio, BIO *rbio, OSSL_HTTP_bio_cb_t bio_update_fn, void *arg, int buf_size, int overall_timeout) OSSL_HTTP_open() argument
1123 OSSL_HTTP_get(const char *url, const char *proxy, const char *no_proxy, BIO *bio, BIO *rbio, OSSL_HTTP_bio_cb_t bio_update_fn, void *arg, int buf_size, const STACK_OF(CONF_VALUE) *headers, const char *expected_ct, int expect_asn1, size_t max_resp_len, int timeout) OSSL_HTTP_get() argument
1212 OSSL_HTTP_transfer(OSSL_HTTP_REQ_CTX **prctx, const char *server, const char *port, const char *path, int use_ssl, const char *proxy, const char *no_proxy, BIO *bio, BIO *rbio, OSSL_HTTP_bio_cb_t bio_update_fn, void *arg, int buf_size, const STACK_OF(CONF_VALUE) *headers, const char *content_type, BIO *req, const char *expected_ct, int expect_asn1, size_t max_resp_len, int timeout, int keep_alive) OSSL_HTTP_transfer() argument
[all...]
/third_party/openssl/crypto/http/
H A Dhttp_client.c49 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()
126 /* do not free rctx->rbio */ in OSSL_HTTP_REQ_CTX_free()
364 static OSSL_HTTP_REQ_CTX *http_req_ctx_new(int free_wbio, BIO *wbio, BIO *rbio, in http_req_ctx_new() argument
371 OSSL_HTTP_REQ_CTX *rctx = OSSL_HTTP_REQ_CTX_new(wbio, rbio, buf_size); in http_req_ctx_new()
525 if (rctx->mem == NULL || rctx->wbio == NULL || rctx->rbio == NULL) { in OSSL_HTTP_REQ_CTX_nbio()
535 n = BIO_read(rctx->rbio, rct in OSSL_HTTP_REQ_CTX_nbio()
916 OSSL_HTTP_open(const char *server, const char *port, const char *proxy, const char *no_proxy, int use_ssl, BIO *bio, BIO *rbio, OSSL_HTTP_bio_cb_t bio_update_fn, void *arg, int buf_size, int overall_timeout) OSSL_HTTP_open() argument
1112 OSSL_HTTP_get(const char *url, const char *proxy, const char *no_proxy, BIO *bio, BIO *rbio, OSSL_HTTP_bio_cb_t bio_update_fn, void *arg, int buf_size, const STACK_OF(CONF_VALUE) *headers, const char *expected_ct, int expect_asn1, size_t max_resp_len, int timeout) OSSL_HTTP_get() argument
1201 OSSL_HTTP_transfer(OSSL_HTTP_REQ_CTX **prctx, const char *server, const char *port, const char *path, int use_ssl, const char *proxy, const char *no_proxy, BIO *bio, BIO *rbio, OSSL_HTTP_bio_cb_t bio_update_fn, void *arg, int buf_size, const STACK_OF(CONF_VALUE) *headers, const char *content_type, BIO *req, const char *expected_ct, int expect_asn1, size_t max_resp_len, int timeout, int keep_alive) OSSL_HTTP_transfer() argument
[all...]
/third_party/node/deps/openssl/openssl/include/openssl/
H A Dhttp.h40 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,
/third_party/openssl/include/openssl/
H A Dhttp.h40 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,
/third_party/node/deps/openssl/openssl/ssl/
H A Dbio_ssl.c252 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 Dd1_lib.c466 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()
801 * This is unnecessary if rbio and wbio are one and the same - but 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()
H A Dssl_lib.c1263 BIO_free_all(s->rbio); in SSL_free()
1264 s->rbio = NULL; in SSL_free()
1354 void SSL_set0_rbio(SSL *s, BIO *rbio) in SSL_set0_rbio() argument
1356 BIO_free_all(s->rbio); in SSL_set0_rbio()
1357 s->rbio = rbio; in SSL_set0_rbio()
1376 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio) in SSL_set_bio() argument
1384 if (rbio == SSL_get_rbio(s) && wbio == SSL_get_wbio(s)) in SSL_set_bio()
1391 if (rbio != NULL && rbio in SSL_set_bio()
1492 BIO *rbio = SSL_get_rbio(s); SSL_set_wfd() local
[all...]
/third_party/openssl/ssl/
H A Dbio_ssl.c252 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 Dd1_lib.c449 BIO *rbio, *wbio; in DTLSv1_listen() local
464 rbio = SSL_get_rbio(s); in DTLSv1_listen()
467 if (!rbio || !wbio) { in DTLSv1_listen()
508 n = BIO_read(rbio, buf, SSL3_RT_MAX_PLAIN_LENGTH in DTLSv1_listen()
511 if (BIO_should_retry(rbio)) { in DTLSv1_listen()
784 * This is unnecessary if rbio and wbio are one and the same - but in DTLSv1_listen()
788 if (BIO_dgram_get_peer(rbio, tmpclient) > 0) { in DTLSv1_listen()
841 if (BIO_dgram_get_peer(rbio, client) <= 0) in DTLSv1_listen()
H A Dssl_lib.c1199 BIO_free_all(s->rbio); in SSL_free()
1200 s->rbio = NULL; in SSL_free()
1272 void SSL_set0_rbio(SSL *s, BIO *rbio) in SSL_set0_rbio() argument
1274 BIO_free_all(s->rbio); in SSL_set0_rbio()
1275 s->rbio = rbio; in SSL_set0_rbio()
1294 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio) in SSL_set_bio() argument
1302 if (rbio == SSL_get_rbio(s) && wbio == SSL_get_wbio(s)) in SSL_set_bio()
1309 if (rbio != NULL && rbio in SSL_set_bio()
1410 BIO *rbio = SSL_get_rbio(s); SSL_set_wfd() local
[all...]
/third_party/node/deps/openssl/openssl/ssl/record/
H A Drec_layer_s3.c269 if (!BIO_get_ktls_recv(s->rbio) && !s->rlayer.read_ahead in ssl3_read_n()
291 if (s->rbio != NULL) { in ssl3_read_n()
293 ret = BIO_read(s->rbio, pkt + len + left, max - left); in ssl3_read_n()
297 && !BIO_should_retry(s->rbio) in ssl3_read_n()
298 && BIO_eof(s->rbio)) { in ssl3_read_n()
1619 BIO *rbio; in ssl3_read_bytes() local
1636 rbio = SSL_get_rbio(s); in ssl3_read_bytes()
1637 BIO_clear_retry_flags(rbio); in ssl3_read_bytes()
1638 BIO_set_retry_read(rbio); in ssl3_read_bytes()
/third_party/openssl/ssl/record/
H A Drec_layer_s3.c284 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()
1630 BIO *rbio; in ssl3_read_bytes() local
1647 rbio = SSL_get_rbio(s); in ssl3_read_bytes()
1648 BIO_clear_retry_flags(rbio); in ssl3_read_bytes()
1649 BIO_set_retry_read(rbio); in ssl3_read_bytes()
/third_party/node/deps/openssl/openssl/crypto/x509/
H A Dx_all.c92 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()
/third_party/node/deps/openssl/openssl/crypto/cms/
H A Dcms_smime.c21 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()
/third_party/openssl/crypto/cms/
H A Dcms_smime.c21 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()
/third_party/openssl/crypto/x509/
H A Dx_all.c92 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()
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/
H A Dtypes.rs481 rbio: *mut BIO,
514 rbio: *mut c_void,
617 rbio: *mut c_void,

Completed in 39 milliseconds

1234567