$47 GRAYBYTE WORDPRESS FILE MANAGER $52

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/lib64/perl5/vendor_perl/auto/Net/SSLeay/

HOME
Current File : /lib64/perl5/vendor_perl/auto/Net/SSLeay//https_cat.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 1178 "blib/lib/Net/SSLeay.pm (autosplit into blib/lib/auto/Net/SSLeay/https_cat.al)"
###
### Basic request - response primitive, this is different from sslcat
###                 because this does not shutdown the connection.
###

sub https_cat { # address, port, message --> returns reply / (reply,errs,cert)
    my ($dest_serv, $port, $out_message, $crt_path, $key_path) = @_;
    my ($ctx, $ssl, $got, $errs, $written);

    ($got, $errs) = open_proxy_tcp_connection($dest_serv, $port);
    return (wantarray ? (undef, $errs) : undef) unless $got;

    ### Do SSL negotiation stuff

    warn "Creating SSL $ssl_version context...\n" if $trace>2;
    initialize();

    $ctx = new_x_ctx();
    goto cleanup2 if $errs = print_errs('CTX_new') or !$ctx;

    CTX_set_options($ctx, &OP_ALL);
    goto cleanup2 if $errs = print_errs('CTX_set_options');

    warn "Cert `$crt_path' given without key" if $crt_path && !$key_path;
    set_cert_and_key($ctx, $crt_path, $key_path) if $crt_path;

    warn "Creating SSL connection (context was '$ctx')...\n" if $trace>2;
    $ssl = new($ctx);
    goto cleanup if $errs = print_errs('SSL_new') or !$ssl;

    warn "Setting fd (ctx $ctx, con $ssl)...\n" if $trace>2;
    set_fd($ssl, fileno(SSLCAT_S));
    goto cleanup if $errs = print_errs('set_fd');

    warn "Entering SSL negotiation phase...\n" if $trace>2;

    if ($trace>2) {
	my $i = 0;
	my $p = '';
	my $cipher_list = 'Cipher list: ';
	$p=Net::SSLeay::get_cipher_list($ssl,$i);
	$cipher_list .= $p if $p;
	do {
	    $i++;
	    $cipher_list .= ', ' . $p if $p;
	    $p=Net::SSLeay::get_cipher_list($ssl,$i);
	} while $p;
	$cipher_list .= '\n';
	warn $cipher_list;
    }

    $got = Net::SSLeay::connect($ssl);
    warn "SSLeay connect failed" if $trace>2 && $got==0;
    goto cleanup if $errs = print_errs('SSL_connect');

    my $server_cert = get_peer_certificate($ssl);
    print_errs('get_peer_certificate');
    if ($trace>1) {
	warn "Cipher `" . get_cipher($ssl) . "'\n";
	print_errs('get_ciper');
	warn dump_peer_certificate($ssl);
    }

    ### Connected. Exchange some data (doing repeated tries if necessary).

    warn "https_cat $$: sending " . blength($out_message) . " bytes...\n"
	if $trace==3;
    warn "https_cat $$: sending `$out_message' (" . blength($out_message)
	. " bytes)...\n" if $trace>3;
    ($written, $errs) = ssl_write_all($ssl, $out_message);
    goto cleanup unless $written;

    warn "waiting for reply...\n" if $trace>2;
    ($got, $errs) = ssl_read_all($ssl);
    warn "Got " . blength($got) . " bytes.\n" if $trace==3;
    warn "Got `$got' (" . blength($got) . " bytes)\n" if $trace>3;

cleanup:
    free ($ssl);
    $errs .= print_errs('SSL_free');
cleanup2:
    CTX_free ($ctx);
    $errs .= print_errs('CTX_free');
    close SSLCAT_S;
    return wantarray ? ($got, $errs, $server_cert) : $got;
}

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


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


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

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF