Home
last modified time | relevance | path

Searched refs:wbio (Results 1 – 14 of 14) sorted by relevance

/openbsd/src/regress/lib/libssl/tlslegacy/
Dtlslegacytest.c561 BIO *rbio = NULL, *wbio = NULL; in tlslegacy_client_test() local
573 if ((wbio = BIO_new(BIO_s_mem())) == NULL) { in tlslegacy_client_test()
589 BIO_up_ref(wbio); in tlslegacy_client_test()
590 SSL_set_bio(ssl, rbio, wbio); in tlslegacy_client_test()
610 BIO_free(wbio); in tlslegacy_client_test()
/openbsd/src/regress/lib/libssl/server/
Dservertest.c117 BIO *rbio = NULL, *wbio = NULL; in server_hello_test() local
129 if ((wbio = BIO_new(BIO_s_mem())) == NULL) { in server_hello_test()
162 BIO_up_ref(wbio); in server_hello_test()
163 SSL_set_bio(ssl, rbio, wbio); in server_hello_test()
181 BIO_free(wbio); in server_hello_test()
/openbsd/src/usr.bin/openssl/
Denc.c342 BIO *rbio = NULL, *wbio = NULL; in enc_main() local
531 wbio = out; in enc_main()
543 wbio = BIO_push(b64, wbio); in enc_main()
577 && (BIO_write(wbio, magic, in enc_main()
579 || BIO_write(wbio, in enc_main()
717 wbio = BIO_push(benc, wbio); in enc_main()
723 if (BIO_write(wbio, (char *) buff, inl) != inl) { in enc_main()
728 if (!BIO_flush(wbio)) { in enc_main()
/openbsd/src/lib/libssl/
Dssl_lib.c541 if (s->bbio == s->wbio) { in SSL_free()
542 s->wbio = BIO_pop(s->wbio); in SSL_free()
548 if (s->rbio != s->wbio) in SSL_free()
550 BIO_free_all(s->wbio); in SSL_free()
611 SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio) in SSL_set_bio() argument
615 if (s->wbio == s->bbio) { in SSL_set_bio()
616 s->wbio = BIO_next(s->wbio); in SSL_set_bio()
621 if (s->rbio != rbio && s->rbio != s->wbio) in SSL_set_bio()
623 if (s->wbio != wbio) in SSL_set_bio()
624 BIO_free_all(s->wbio); in SSL_set_bio()
[all …]
Dtls13_legacy.c67 if (ssl->wbio == NULL) { in tls13_legacy_wire_write()
75 if ((n = BIO_write(ssl->wbio, buf, len)) <= 0) { in tls13_legacy_wire_write()
76 if (BIO_should_write(ssl->wbio)) in tls13_legacy_wire_write()
102 if (BIO_flush(ssl->wbio) <= 0) { in tls13_legacy_wire_flush()
103 if (BIO_should_write(ssl->wbio)) in tls13_legacy_wire_flush()
194 BIO_set_retry_write(ssl->wbio); in tls13_legacy_return_code()
Dbio_ssl.c369 ret = BIO_ctrl(ssl->wbio, cmd, num, ptr); in ssl_ctrl()
378 ret = BIO_ctrl(ssl->wbio, cmd, num, ptr); in ssl_ctrl()
394 if (ssl->rbio != ssl->wbio) in ssl_ctrl()
395 BIO_free_all(ssl->wbio); in ssl_ctrl()
398 ssl->wbio = NULL; in ssl_ctrl()
Dssl_pkt.c648 if (s->wbio != NULL) { in ssl3_write_pending()
650 i = BIO_write(s->wbio, (char *)&(wb->buf[wb->offset]), in ssl3_write_pending()
1306 (void)BIO_flush(s->wbio); in ssl3_dispatch_alert()
Dssl_clnt.c300 if (s->bbio != s->wbio) in ssl3_connect()
301 s->wbio = BIO_push(s->bbio, s->wbio); in ssl3_connect()
561 if (BIO_flush(s->wbio) <= 0) { in ssl3_connect()
564 if (!BIO_should_retry(s->wbio)) { in ssl3_connect()
Dssl_srvr.c526 if (BIO_flush(s->wbio) <= 0) { in ssl3_accept()
529 if (!BIO_should_retry(s->wbio)) { in ssl3_accept()
Dssl_local.h872 BIO *wbio; /* used by SSL_write */ member
Dssl.h1136 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
/openbsd/src/regress/lib/libssl/client/
Dclienttest.c623 BIO *rbio = NULL, *wbio = NULL; in client_hello_test() local
640 if ((wbio = BIO_new(BIO_s_mem())) == NULL) { in client_hello_test()
663 BIO_up_ref(wbio); in client_hello_test()
664 SSL_set_bio(ssl, rbio, wbio); in client_hello_test()
673 len = BIO_get_mem_data(wbio, &wbuf); in client_hello_test()
725 BIO_free(wbio); in client_hello_test()
/openbsd/src/regress/lib/libssl/dtls/
Ddtlstest.c410 if (ssl->wbio == ssl->bbio) in dtls_info_callback()
411 ((SSL *)ssl)->wbio = BIO_pop(ssl->wbio); in dtls_info_callback()
/openbsd/src/regress/lib/libssl/ssl/
Dssltest.c1357 s_ssl->wbio = NULL; in doit()
1361 c_ssl->wbio = NULL; in doit()