Lines Matching refs:io
3159 BIO *io, *ssl_bio, *sbio, *edio; in www_body() local
3179 io = BIO_new(BIO_f_buffer()); in www_body()
3182 if ((io == NULL) || (ssl_bio == NULL) || (edio == NULL)) in www_body()
3193 if (BIO_set_write_buffer_size(io, bufsize) <= 0) in www_body()
3234 BIO_push(io, ssl_bio); in www_body()
3241 io = BIO_push(filter, io); in www_body()
3292 i = BIO_gets(!BIO_eof(edio) ? edio : io, buf, bufsize + 1); in www_body()
3294 if (!BIO_should_retry(io) && !SSL_waiting_for_async(con)) { in www_body()
3301 if (BIO_should_io_special(io) in www_body()
3302 && BIO_get_retry_reason(io) == BIO_RR_SSL_X509_LOOKUP) { in www_body()
3356 BIO_gets(io, buf, bufsize + 1); in www_body()
3359 BIO_puts(io, in www_body()
3361 BIO_puts(io, "<HTML><BODY BGCOLOR=\"#ffffff\">\n"); in www_body()
3362 BIO_puts(io, "<pre>\n"); in www_body()
3364 BIO_puts(io, "\n"); in www_body()
3371 BIO_puts(io, "<"); in www_body()
3374 BIO_puts(io, ">"); in www_body()
3377 BIO_puts(io, "&"); in www_body()
3380 BIO_write(io, myp, 1); in www_body()
3383 BIO_write(io, " ", 1); in www_body()
3385 BIO_puts(io, "\n"); in www_body()
3387 ssl_print_secure_renegotiation_notes(io, con); in www_body()
3392 BIO_printf(io, "Ciphers supported in s_server binary\n"); in www_body()
3397 BIO_printf(io, "%-11s:%-25s ", in www_body()
3400 BIO_puts(io, "\n"); in www_body()
3402 BIO_puts(io, "\n"); in www_body()
3405 BIO_printf(io, in www_body()
3410 BIO_write(io, space, 26 - j); in www_body()
3413 BIO_write(io, ((i % 3) ? " " : "\n"), 1); in www_body()
3415 BIO_write(io, p, 1); in www_body()
3420 BIO_puts(io, "\n"); in www_body()
3422 ssl_print_sigalgs(io, con); in www_body()
3424 ssl_print_groups(io, con, 0); in www_body()
3426 print_ca_names(io, con); in www_body()
3427 BIO_printf(io, (SSL_session_reused(con) in www_body()
3430 BIO_printf(io, "%s, Cipher is %s\n", in www_body()
3432 SSL_SESSION_print(io, SSL_get_session(con)); in www_body()
3433 BIO_printf(io, "---\n"); in www_body()
3434 print_stats(io, SSL_get_SSL_CTX(con)); in www_body()
3435 BIO_printf(io, "---\n"); in www_body()
3438 BIO_printf(io, "Client certificate\n"); in www_body()
3439 X509_print(io, peer); in www_body()
3440 PEM_write_bio_X509(io, peer); in www_body()
3443 BIO_puts(io, "no client certificate available\n"); in www_body()
3445 BIO_puts(io, "</pre></BODY></HTML>\r\n\r\n"); in www_body()
3482 BIO_puts(io, text); in www_body()
3483 BIO_printf(io, "'%s' is an invalid file name\r\n", p); in www_body()
3489 BIO_puts(io, text); in www_body()
3490 BIO_printf(io, "'%s' contains '..' or ':'\r\n", p); in www_body()
3495 BIO_puts(io, text); in www_body()
3496 BIO_printf(io, "'%s' is an invalid path\r\n", p); in www_body()
3502 BIO_puts(io, text); in www_body()
3503 BIO_printf(io, "'%s' is a directory\r\n", p); in www_body()
3509 BIO_puts(io, text); in www_body()
3510 BIO_printf(io, "Error opening '%s' mode='%s'\r\n", p, opmode); in www_body()
3511 ERR_print_errors(io); in www_body()
3523 BIO_puts(io, in www_body()
3526 BIO_puts(io, in www_body()
3545 BIO_printf(io, "Error fstat '%s'\r\n", p); in www_body()
3546 ERR_print_errors(io); in www_body()
3551 if (((int)BIO_flush(io)) < 0) in www_body()
3557 BIO_printf(io, "Error SSL_sendfile '%s'\r\n", p); in www_body()
3558 ERR_print_errors(io); in www_body()
3596 k = BIO_write(io, &(buf[j]), i - j); in www_body()
3598 if (!BIO_should_retry(io) in www_body()
3617 i = (int)BIO_flush(io); in www_body()
3619 if (!BIO_should_retry(io)) in www_body()
3631 BIO_free_all(io); in www_body()
3642 BIO *io, *ssl_bio, *sbio; in rev_body() local
3650 io = BIO_new(BIO_f_buffer()); in rev_body()
3652 if ((io == NULL) || (ssl_bio == NULL)) in rev_body()
3656 if (BIO_set_write_buffer_size(io, bufsize) <= 0) in rev_body()
3686 BIO_push(io, ssl_bio); in rev_body()
3693 io = BIO_push(filter, io); in rev_body()
3711 i = BIO_do_handshake(io); in rev_body()
3714 if (!BIO_should_retry(io)) { in rev_body()
3720 if (BIO_should_io_special(io) in rev_body()
3721 && BIO_get_retry_reason(io) == BIO_RR_SSL_X509_LOOKUP) { in rev_body()
3734 i = BIO_gets(io, buf, bufsize + 1); in rev_body()
3736 if (!BIO_should_retry(io)) { in rev_body()
3743 if (BIO_should_io_special(io) in rev_body()
3744 && BIO_get_retry_reason(io) == BIO_RR_SSL_X509_LOOKUP) { in rev_body()
3772 BIO_write(io, buf, i + 1); in rev_body()
3774 i = BIO_flush(io); in rev_body()
3777 if (!BIO_should_retry(io)) in rev_body()
3790 BIO_free_all(io); in rev_body()