GRAYBYTE WORDPRESS FILE MANAGER4413

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/lib64/perl5/vendor_perl/auto/Net/SSLeay/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/lib64/perl5/vendor_perl/auto/Net/SSLeay//ssl_write_all.al
# NOTE: Derived from blib/lib/Net/SSLeay.pm.
# Changes made here will be lost when autosplit is run again.
# See AutoSplit.pm.
package Net::SSLeay;

#line 630 "blib/lib/Net/SSLeay.pm (autosplit into blib/lib/auto/Net/SSLeay/ssl_write_all.al)"
sub ssl_write_all {
    my $ssl = $_[0];
    my ($data_ref, $errs);
    if (ref $_[1]) {
	$data_ref = $_[1];
    } else {
	$data_ref = \$_[1];
    }
    my ($wrote, $written, $to_write) = (0,0, blength($$data_ref));
    my $vm = $trace>2 && $linux_debug ?
	(split ' ', `cat /proc/$$/stat`)[22] : 'vm_unknown';
    warn "  write_all VM at entry=$vm\n" if $trace>2;
    while ($to_write) {
	#sleep 1; # *** DEBUG
	warn "partial `$$data_ref'\n" if $trace>3;
	$wrote = write_partial($ssl, $written, $to_write, $$data_ref);
	if (defined $wrote && ($wrote > 0)) {  # write_partial can return -1
	    $written += $wrote;
	    $to_write -= $wrote;
	} else {
	  if (defined $wrote) {
	    # check error conditions via SSL_get_error per man page
	    if ( my $sslerr = get_error($ssl, $wrote) ) {
	      my $errstr = ERR_error_string($sslerr);
	      my $errname = '';
	      SWITCH: {
		$sslerr == constant("ERROR_NONE") && do {
		  # according to map page SSL_get_error(3ssl):
		  #  The TLS/SSL I/O operation completed.
		  #  This result code is returned if and only if ret > 0
                  # so if we received it here complain...
		  warn "ERROR_NONE unexpected with invalid return value!"
		    if $trace;
		  $errname = "SSL_ERROR_NONE";
		};
		$sslerr == constant("ERROR_WANT_READ") && do {
		  # operation did not complete, call again later, so do not
		  # set errname and empty err_que since this is a known
		  # error that is expected but, we should continue to try
		  # writing the rest of our data with same io call and params.
		  warn "ERROR_WANT_READ (TLS/SSL Handshake, will continue)\n"
		    if $trace;
		  print_errs('SSL_write(want read)');
		  last SWITCH;
		};
		$sslerr == constant("ERROR_WANT_WRITE") && do {
		  # operation did not complete, call again later, so do not
		  # set errname and empty err_que since this is a known
		  # error that is expected but, we should continue to try
		  # writing the rest of our data with same io call and params.
		  warn "ERROR_WANT_WRITE (TLS/SSL Handshake, will continue)\n"
		    if $trace;
		  print_errs('SSL_write(want write)');
		  last SWITCH;
		};
		$sslerr == constant("ERROR_ZERO_RETURN") && do {
		  # valid protocol closure from other side, no longer able to
		  # write, since there is no longer a session...
		  warn "ERROR_ZERO_RETURN($wrote): TLS/SSLv3 Closure alert\n"
		    if $trace;
		  $errname = "SSL_ERROR_ZERO_RETURN";
		  last SWITCH;
		};
		$sslerr == constant("ERROR_SSL") && do {
		  # library/protocol error
		  warn "ERROR_SSL($wrote): Library/Protocol error occured\n"
		    if $trace;
		  $errname = "SSL_ERROR_SSL";
		  last SWITCH;
		};
		$sslerr == constant("ERROR_WANT_CONNECT") && do {
		  # according to man page, should never happen on call to
		  # SSL_write, so complain, but handle as known error type
		  warn "ERROR_WANT_CONNECT: Unexpected error for SSL_write\n"
		    if $trace;
		  $errname = "SSL_ERROR_WANT_CONNECT";
		  last SWITCH;
		};
		$sslerr == constant("ERROR_WANT_ACCEPT") && do {
		  # according to man page, should never happen on call to
		  # SSL_write, so complain, but handle as known error type
		  warn "ERROR_WANT_ACCEPT: Unexpected error for SSL_write\n"
		    if $trace;
		  $errname = "SSL_ERROR_WANT_ACCEPT";
		  last SWITCH;
		};
		$sslerr == constant("ERROR_WANT_X509_LOOKUP") && do {
		  # operation did not complete: waiting on call back,
		  # call again later, so do not set errname and empty err_que
		  # since this is a known error that is expected but, we should
		  # continue to try writing the rest of our data with same io
		  # call parameter.
		  warn "ERROR_WANT_X509_LOOKUP: (Cert Callback asked for in ".
		    "SSL_write will contine)\n" if $trace;
		  print_errs('SSL_write(want x509');
		  last SWITCH;
		};
		$sslerr == constant("ERROR_SYSCALL") && do {
		  # some IO error occured. According to man page:
		  # Check retval, ERR, fallback to errno
		  if ($wrote==0) { # EOF
		    warn "ERROR_SYSCALL($wrote): EOF violates protocol.\n"
		      if $trace;
		    $errname = "SSL_ERROR_SYSCALL(EOF)";
		  } else { # -1 underlying BIO error reported.
		    # check error que for details, don't set errname since we
		    # are directly appending to errs
		    my $chkerrs = print_errs('SSL_write (syscall)');
		    if ($chkerrs) {
		      warn "ERROR_SYSCALL($wrote): Have errors\n" if $trace;
		      $errs .= "ssl_write_all $$: 1 - ERROR_SYSCALL($wrote,".
			"$sslerr,$errstr,$!)\n$chkerrs";
		    } else { # que was empty, use errno
		      warn "ERROR_SYSCALL($wrote): errno($!)\n" if $trace;
		      $errs .= "ssl_write_all $$: 1 - ERROR_SYSCALL($wrote,".
			"$sslerr) : $!\n";
		    }
		  }
		  last SWITCH;
		};
		warn "Unhandled val $sslerr from SSL_get_error(SSL,$wrote)\n"
		  if $trace;
		$errname = "SSL_ERROR_?($sslerr)";
	      } # end of SWITCH block
	      if ($errname) { # if we had an errname set add the error
		$errs .= "ssl_write_all $$: 1 - $errname($wrote,$sslerr,".
		  "$errstr,$!)\n";
	      }
	    } # endif on have SSL_get_error val
	  } # endif on $wrote defined
	} # endelse on $wrote > 0
	$vm = $trace>2 && $linux_debug ?
	    (split ' ', `cat /proc/$$/stat`)[22] : 'vm_unknown';
	warn "  written so far $wrote:$written bytes (VM=$vm)\n" if $trace>2;
	# append remaining errors in que and report if errs exist
	$errs .= print_errs('SSL_write');
	return (wantarray ? (undef, $errs) : undef) if $errs;
    }
    return wantarray ? ($written, $errs) : $written;
}

# end of Net::SSLeay::ssl_write_all
1;

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 19:11:18
root / root
0755
SSLeay.so
601.711 KB
April 22 2022 17:22:43
root / root
0755
autosplit.ix
1.544 KB
April 22 2022 17:22:32
root / root
0644
debug_read.al
0.661 KB
April 22 2022 17:22:32
root / root
0644
do_https.al
0.496 KB
April 22 2022 17:22:32
root / root
0644
do_https2.al
0.436 KB
April 22 2022 17:22:32
root / root
0644
do_https3.al
0.455 KB
April 22 2022 17:22:32
root / root
0644
do_https4.al
0.349 KB
April 22 2022 17:22:32
root / root
0644
do_httpx2.al
0.546 KB
April 22 2022 17:22:32
root / root
0644
do_httpx3.al
1.521 KB
April 22 2022 17:22:32
root / root
0644
do_httpx4.al
0.531 KB
April 22 2022 17:22:32
root / root
0644
dump_peer_certificate.al
0.936 KB
April 22 2022 17:22:32
root / root
0644
get_http.al
0.309 KB
April 22 2022 17:22:32
root / root
0644
get_http3.al
0.312 KB
April 22 2022 17:22:32
root / root
0644
get_http4.al
0.312 KB
April 22 2022 17:22:32
root / root
0644
get_https.al
0.312 KB
April 22 2022 17:22:32
root / root
0644
get_https3.al
0.314 KB
April 22 2022 17:22:32
root / root
0644
get_https4.al
0.314 KB
April 22 2022 17:22:32
root / root
0644
get_httpx.al
0.309 KB
April 22 2022 17:22:32
root / root
0644
get_httpx3.al
0.312 KB
April 22 2022 17:22:32
root / root
0644
get_httpx4.al
0.312 KB
April 22 2022 17:22:32
root / root
0644
head_http.al
0.312 KB
April 22 2022 17:22:32
root / root
0644
head_http3.al
0.314 KB
April 22 2022 17:22:32
root / root
0644
head_http4.al
0.338 KB
April 22 2022 17:22:32
root / root
0644
head_https.al
0.314 KB
April 22 2022 17:22:32
root / root
0644
head_https3.al
0.317 KB
April 22 2022 17:22:32
root / root
0644
head_https4.al
0.325 KB
April 22 2022 17:22:32
root / root
0644
head_httpx.al
0.312 KB
April 22 2022 17:22:32
root / root
0644
head_httpx3.al
0.314 KB
April 22 2022 17:22:32
root / root
0644
head_httpx4.al
0.39 KB
April 22 2022 17:22:32
root / root
0644
http_cat.al
1.175 KB
April 22 2022 17:22:32
root / root
0644
https_cat.al
2.957 KB
April 22 2022 17:22:32
root / root
0644
httpx_cat.al
0.545 KB
April 22 2022 17:22:32
root / root
0644
initialize.al
0.796 KB
April 22 2022 17:22:32
root / root
0644
make_form.al
0.59 KB
April 22 2022 17:22:32
root / root
0644
make_headers.al
0.562 KB
April 22 2022 17:22:32
root / root
0644
new_x_ctx.al
1.813 KB
April 22 2022 17:22:32
root / root
0644
open_proxy_tcp_connection.al
1.254 KB
April 22 2022 17:22:32
root / root
0644
open_tcp_connection.al
1.447 KB
April 22 2022 17:22:32
root / root
0644
post_http.al
0.311 KB
April 22 2022 17:22:32
root / root
0644
post_http3.al
0.313 KB
April 22 2022 17:22:32
root / root
0644
post_http4.al
0.313 KB
April 22 2022 17:22:32
root / root
0644
post_https.al
0.313 KB
April 22 2022 17:22:32
root / root
0644
post_https3.al
0.316 KB
April 22 2022 17:22:32
root / root
0644
post_https4.al
0.316 KB
April 22 2022 17:22:32
root / root
0644
post_httpx.al
0.311 KB
April 22 2022 17:22:32
root / root
0644
post_httpx3.al
0.313 KB
April 22 2022 17:22:32
root / root
0644
post_httpx4.al
0.313 KB
April 22 2022 17:22:32
root / root
0644
put_http.al
0.309 KB
April 22 2022 17:22:32
root / root
0644
put_http3.al
0.312 KB
April 22 2022 17:22:32
root / root
0644
put_http4.al
0.312 KB
April 22 2022 17:22:32
root / root
0644
put_https.al
0.312 KB
April 22 2022 17:22:32
root / root
0644
put_https3.al
0.314 KB
April 22 2022 17:22:32
root / root
0644
put_https4.al
0.314 KB
April 22 2022 17:22:32
root / root
0644
put_httpx.al
0.309 KB
April 22 2022 17:22:32
root / root
0644
put_httpx3.al
0.312 KB
April 22 2022 17:22:32
root / root
0644
put_httpx4.al
0.312 KB
April 22 2022 17:22:32
root / root
0644
randomize.al
1.003 KB
April 22 2022 17:22:32
root / root
0644
set_cert_and_key.al
0.809 KB
April 22 2022 17:22:32
root / root
0644
set_proxy.al
0.527 KB
April 22 2022 17:22:32
root / root
0644
set_server_cert_and_key.al
0.403 KB
April 22 2022 17:22:32
root / root
0644
ssl_read_CRLF.al
0.375 KB
April 22 2022 17:22:32
root / root
0644
ssl_read_all.al
1.022 KB
April 22 2022 17:22:32
root / root
0644
ssl_read_until.al
3.069 KB
April 22 2022 17:22:32
root / root
0644
ssl_write_CRLF.al
0.793 KB
April 22 2022 17:22:32
root / root
0644
ssl_write_all.al
5.599 KB
April 22 2022 17:22:32
root / root
0644
sslcat.al
3.052 KB
April 22 2022 17:22:32
root / root
0644
tcp_read_CRLF.al
0.391 KB
April 22 2022 17:22:32
root / root
0644
tcp_read_all.al
0.738 KB
April 22 2022 17:22:32
root / root
0644
tcp_read_until.al
0.947 KB
April 22 2022 17:22:32
root / root
0644
tcp_write_CRLF.al
0.774 KB
April 22 2022 17:22:32
root / root
0644
tcp_write_all.al
1.202 KB
April 22 2022 17:22:32
root / root
0644
tcpcat.al
1.326 KB
April 22 2022 17:22:32
root / root
0644
tcpxcat.al
0.474 KB
April 22 2022 17:22:32
root / root
0644
want_X509_lookup.al
0.431 KB
April 22 2022 17:22:32
root / root
0644
want_nothing.al
0.349 KB
April 22 2022 17:22:32
root / root
0644
want_read.al
0.302 KB
April 22 2022 17:22:32
root / root
0644
want_write.al
0.305 KB
April 22 2022 17:22:32
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF