/third_party/openssl/test/ |
H A D | servername_test.c | 102 BIO *wbio; in client_setup_sni_before_state() local 123 wbio = 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() 126 BIO_free(wbio); in client_setup_sni_before_state() 130 SSL_set_bio(con, rbio, wbio); in client_setup_sni_before_state() 135 if (!TEST_true(get_sni_from_client_hello(wbio, &hostname))) in client_setup_sni_before_state() 154 BIO *wbio; in client_setup_sni_after_state() local 172 wbio = 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() 175 BIO_free(wbio); in client_setup_sni_after_state() [all...] |
H A D | http_test.c | 116 BIO *wbio = BIO_new(BIO_s_mem()); in test_http_x509() local 124 if (wbio == NULL || rbio == NULL || req == NULL) in test_http_x509() 127 BIO_set_callback_ex(wbio, http_bio_cb_ex); in test_http_x509() 128 BIO_set_callback_arg(wbio, (char *)&mock_args); 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() 151 BIO_free(wbio); in test_http_x509() 159 BIO *wbio = BIO_new(BIO_s_mem()); in test_http_keep_alive() local 167 if (wbio == NULL || rbio == NULL) in test_http_keep_alive() 172 BIO_set_callback_ex(wbio, http_bio_cb_e in test_http_keep_alive() [all...] |
H A D | bad_dtls_test.c | 117 static int validate_client_hello(BIO *wbio) in validate_client_hello() argument 125 if ((len = BIO_get_mem_data(wbio, (char **)&data)) < 0) in validate_client_hello() 190 (void)BIO_reset(wbio); in validate_client_hello() 393 static int validate_ccs(BIO *wbio) in validate_ccs() argument 400 len = BIO_get_mem_data(wbio, (char **)&data); in validate_ccs() 469 BIO *wbio = NULL; in test_bad_dtls() local 509 wbio = BIO_new(BIO_s_mem()); in test_bad_dtls() 512 || !TEST_ptr(wbio)) in test_bad_dtls() 515 SSL_set_bio(con, rbio, wbio); in test_bad_dtls() 522 rbio = wbio in test_bad_dtls() [all...] |
H A D | clienthellotest.c | 64 BIO *wbio; in test_client_hello() local 173 wbio = BIO_new(BIO_s_mem()); in test_client_hello() 174 if (!TEST_ptr(rbio)|| !TEST_ptr(wbio)) { in test_client_hello() 176 BIO_free(wbio); in test_client_hello() 180 SSL_set_bio(con, rbio, wbio); in test_client_hello() 194 if (!TEST_long_ge(len = BIO_get_mem_data(wbio, (char **)&data), 0) in test_client_hello()
|
H A D | fatalerrtest.c | 24 BIO *wbio = NULL; in test_fatalerr() local 50 wbio = SSL_get_wbio(cssl); in test_fatalerr() 51 if (!TEST_ptr(wbio)) { in test_fatalerr() 63 if (!TEST_int_gt(BIO_write(wbio, dummyrec, sizeof(dummyrec)), 0)) in test_fatalerr()
|
H A D | dtlstest.c | 401 BIO *rbio = NULL, *wbio = NULL, *sbio = NULL; in test_just_finished() local 430 wbio = BIO_new(BIO_s_mem()); in test_just_finished() 432 if (!TEST_ptr(serverssl) || !TEST_ptr(rbio) || !TEST_ptr(wbio)) in test_just_finished() 437 SSL_set0_wbio(serverssl, wbio); in test_just_finished() 438 rbio = wbio = NULL; in test_just_finished() 458 BIO_free(wbio); in test_just_finished()
|
/third_party/node/deps/openssl/openssl/apps/ |
H A D | enc.c | 119 NULL, *wbio = NULL; in enc_main() local 400 wbio = out; in enc_main() 411 wbio = BIO_push(bzl, wbio); in enc_main() 427 wbio = BIO_push(b64, wbio); in enc_main() 460 && (BIO_write(wbio, magic, in enc_main() 462 || BIO_write(wbio, in enc_main() 615 wbio = BIO_push(benc, wbio); in enc_main() [all...] |
/third_party/openssl/apps/ |
H A D | enc.c | 119 NULL, *wbio = NULL; in enc_main() local 400 wbio = out; in enc_main() 411 wbio = BIO_push(bzl, wbio); in enc_main() 427 wbio = BIO_push(b64, wbio); in enc_main() 460 && (BIO_write(wbio, magic, in enc_main() 462 || BIO_write(wbio, in enc_main() 615 wbio = BIO_push(benc, wbio); in enc_main() [all...] |
/third_party/node/deps/openssl/openssl/ssl/ |
H A D | d1_lib.c | 466 BIO *rbio, *wbio; in DTLSv1_listen() local 482 wbio = SSL_get_wbio(s); in DTLSv1_listen() 484 if (!rbio || !wbio) { in DTLSv1_listen() 801 * This is unnecessary if rbio and wbio are one and the same - but in DTLSv1_listen() 806 (void)BIO_dgram_set_peer(wbio, tmpclient); in DTLSv1_listen() 811 if (BIO_write(wbio, wbuf, wreclen) < (int)wreclen) { in DTLSv1_listen() 812 if (BIO_should_retry(wbio)) { in DTLSv1_listen() 822 if (BIO_flush(wbio) <= 0) { in DTLSv1_listen() 823 if (BIO_should_retry(wbio)) { in DTLSv1_listen() 881 BIO *wbio; in dtls1_shutdown() local [all...] |
H A D | ssl_lib.c | 1261 BIO_free_all(s->wbio); in SSL_free() 1262 s->wbio = NULL; in SSL_free() 1360 void SSL_set0_wbio(SSL *s, BIO *wbio) in SSL_set0_wbio() argument 1366 s->wbio = BIO_pop(s->wbio); in SSL_set0_wbio() 1368 BIO_free_all(s->wbio); in SSL_set0_wbio() 1369 s->wbio = wbio; in SSL_set0_wbio() 1371 /* Re-attach |bbio| to the new |wbio|. */ in SSL_set0_wbio() 1373 s->wbio in SSL_set0_wbio() 1376 SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio) SSL_set_bio() argument 1522 BIO *wbio = SSL_get_wbio(s); SSL_set_rfd() local [all...] |
H A D | d1_msg.c | 54 (void)BIO_flush(s->wbio); in dtls1_dispatch_alert()
|
H A D | s3_msg.c | 103 (void)BIO_flush(s->wbio); in ssl3_dispatch_alert()
|
H A D | bio_ssl.c | 314 ret = BIO_ctrl(ssl->wbio, cmd, num, ptr); in ssl_ctrl() 323 ret = BIO_ctrl(ssl->wbio, cmd, num, ptr); in ssl_ctrl()
|
/third_party/openssl/ssl/ |
H A D | d1_lib.c | 449 BIO *rbio, *wbio; in DTLSv1_listen() local 465 wbio = SSL_get_wbio(s); in DTLSv1_listen() 467 if (!rbio || !wbio) { in DTLSv1_listen() 784 * This is unnecessary if rbio and wbio are one and the same - but in DTLSv1_listen() 789 (void)BIO_dgram_set_peer(wbio, tmpclient); in DTLSv1_listen() 794 if (BIO_write(wbio, wbuf, wreclen) < (int)wreclen) { in DTLSv1_listen() 795 if (BIO_should_retry(wbio)) { in DTLSv1_listen() 805 if (BIO_flush(wbio) <= 0) { in DTLSv1_listen() 806 if (BIO_should_retry(wbio)) { in DTLSv1_listen() 864 BIO *wbio; in dtls1_shutdown() local [all...] |
H A D | ssl_lib.c | 1197 BIO_free_all(s->wbio); in SSL_free() 1198 s->wbio = NULL; in SSL_free() 1278 void SSL_set0_wbio(SSL *s, BIO *wbio) in SSL_set0_wbio() argument 1284 s->wbio = BIO_pop(s->wbio); in SSL_set0_wbio() 1286 BIO_free_all(s->wbio); in SSL_set0_wbio() 1287 s->wbio = wbio; in SSL_set0_wbio() 1289 /* Re-attach |bbio| to the new |wbio|. */ in SSL_set0_wbio() 1291 s->wbio in SSL_set0_wbio() 1294 SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio) SSL_set_bio() argument 1440 BIO *wbio = SSL_get_wbio(s); SSL_set_rfd() local [all...] |
H A D | d1_msg.c | 54 (void)BIO_flush(s->wbio); in dtls1_dispatch_alert()
|
H A D | s3_msg.c | 93 (void)BIO_flush(s->wbio); in ssl3_dispatch_alert()
|
/third_party/node/deps/openssl/openssl/crypto/http/ |
H A D | http_client.c | 47 int free_wbio; /* wbio allocated internally, free with ctx */ 48 BIO *wbio; /* BIO to write/send request to */ 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() 104 rctx->wbio = wbio; in OSSL_HTTP_REQ_CTX_new() 125 BIO_free_all(rctx->wbio); 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 in OSSL_HTTP_REQ_CTX_nbio() 1252 BIO *wbio; OSSL_HTTP_close() local [all...] |
/third_party/openssl/crypto/http/ |
H A D | http_client.c | 47 int free_wbio; /* wbio allocated internally, free with ctx */ 48 BIO *wbio; /* BIO to write/send request to */ 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() 104 rctx->wbio = wbio; in OSSL_HTTP_REQ_CTX_new() 125 BIO_free_all(rctx->wbio); 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 in OSSL_HTTP_REQ_CTX_nbio() 1241 BIO *wbio; OSSL_HTTP_close() local [all...] |
/third_party/node/deps/openssl/openssl/ssl/record/ |
H A D | rec_layer_s3.c | 439 && BIO_get_ktls_send(s->wbio) == 0 in ssl3_write_bytes() 542 if (i < 0 && (!s->wbio || !BIO_should_retry(s->wbio))) { in ssl3_write_bytes() 765 if (BIO_get_ktls_send(s->wbio)) { in do_ssl3_write() 894 if (!BIO_get_ktls_send(s->wbio) in do_ssl3_write() 926 if (BIO_get_ktls_send(s->wbio)) { in do_ssl3_write() 938 && !BIO_get_ktls_send(s->wbio) in do_ssl3_write() 993 if (!BIO_get_ktls_send(s->wbio) && !SSL_WRITE_ETM(s) && mac_size != 0) { in do_ssl3_write() 1009 if (!BIO_get_ktls_send(s->wbio)) { in do_ssl3_write() 1042 if (!BIO_get_ktls_send(s->wbio)) { in do_ssl3_write() [all...] |
H A D | ssl3_buffer.c | 128 if (s->wbio == NULL || !BIO_get_ktls_send(s->wbio)) { in ssl3_setup_write_buffer()
|
/third_party/openssl/ssl/record/ |
H A D | rec_layer_s3.c | 450 && BIO_get_ktls_send(s->wbio) == 0 in ssl3_write_bytes() 553 if (i < 0 && (!s->wbio || !BIO_should_retry(s->wbio))) { in ssl3_write_bytes() 776 if (BIO_get_ktls_send(s->wbio)) { in do_ssl3_write() 905 if (!BIO_get_ktls_send(s->wbio) in do_ssl3_write() 937 if (BIO_get_ktls_send(s->wbio)) { in do_ssl3_write() 949 && !BIO_get_ktls_send(s->wbio) in do_ssl3_write() 1004 if (!BIO_get_ktls_send(s->wbio) && !SSL_WRITE_ETM(s) && mac_size != 0) { in do_ssl3_write() 1020 if (!BIO_get_ktls_send(s->wbio)) { in do_ssl3_write() 1053 if (!BIO_get_ktls_send(s->wbio)) { in do_ssl3_write() [all...] |
H A D | ssl3_buffer.c | 128 if (s->wbio == NULL || !BIO_get_ktls_send(s->wbio)) { in ssl3_setup_write_buffer()
|
/third_party/node/deps/openssl/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);
|
/third_party/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);
|