golden hour
/usr/lib64/perl5/vendor_perl/auto/Net/SSLeay
⬆️ Go Up
Upload
File/Folder
Size
Actions
SSLeay.so
423.98 KB
Del
OK
autosplit.ix
1.54 KB
Del
OK
debug_read.al
677 B
Del
OK
do_https.al
507 B
Del
OK
do_https2.al
446 B
Del
OK
do_https3.al
466 B
Del
OK
do_https4.al
357 B
Del
OK
do_httpx2.al
535 B
Del
OK
do_httpx3.al
1.52 KB
Del
OK
do_httpx4.al
544 B
Del
OK
dump_peer_certificate.al
958 B
Del
OK
get_http.al
316 B
Del
OK
get_http3.al
319 B
Del
OK
get_http4.al
319 B
Del
OK
get_https.al
319 B
Del
OK
get_https3.al
322 B
Del
OK
get_https4.al
322 B
Del
OK
get_httpx.al
316 B
Del
OK
get_httpx3.al
319 B
Del
OK
get_httpx4.al
319 B
Del
OK
head_http.al
319 B
Del
OK
head_http3.al
322 B
Del
OK
head_http4.al
346 B
Del
OK
head_https.al
322 B
Del
OK
head_https3.al
325 B
Del
OK
head_https4.al
333 B
Del
OK
head_httpx.al
319 B
Del
OK
head_httpx3.al
322 B
Del
OK
head_httpx4.al
399 B
Del
OK
http_cat.al
1.18 KB
Del
OK
https_cat.al
2.96 KB
Del
OK
httpx_cat.al
558 B
Del
OK
initialize.al
814 B
Del
OK
make_form.al
604 B
Del
OK
make_headers.al
575 B
Del
OK
new_x_ctx.al
1.2 KB
Del
OK
open_proxy_tcp_connection.al
1.25 KB
Del
OK
open_tcp_connection.al
1.4 KB
Del
OK
post_http.al
318 B
Del
OK
post_http3.al
321 B
Del
OK
post_http4.al
321 B
Del
OK
post_https.al
321 B
Del
OK
post_https3.al
324 B
Del
OK
post_https4.al
324 B
Del
OK
post_httpx.al
318 B
Del
OK
post_httpx3.al
321 B
Del
OK
post_httpx4.al
321 B
Del
OK
put_http.al
316 B
Del
OK
put_http3.al
319 B
Del
OK
put_http4.al
319 B
Del
OK
put_https.al
319 B
Del
OK
put_https3.al
322 B
Del
OK
put_https4.al
322 B
Del
OK
put_httpx.al
316 B
Del
OK
put_httpx3.al
319 B
Del
OK
put_httpx4.al
319 B
Del
OK
randomize.al
1.05 KB
Del
OK
set_cert_and_key.al
805 B
Del
OK
set_proxy.al
540 B
Del
OK
set_server_cert_and_key.al
413 B
Del
OK
ssl_read_CRLF.al
384 B
Del
OK
ssl_read_all.al
801 B
Del
OK
ssl_read_until.al
3.04 KB
Del
OK
ssl_write_CRLF.al
812 B
Del
OK
ssl_write_all.al
5.6 KB
Del
OK
sslcat.al
3.05 KB
Del
OK
tcp_read_CRLF.al
400 B
Del
OK
tcp_read_all.al
756 B
Del
OK
tcp_read_until.al
970 B
Del
OK
tcp_write_CRLF.al
793 B
Del
OK
tcp_write_all.al
1.2 KB
Del
OK
tcpcat.al
1.33 KB
Del
OK
tcpxcat.al
485 B
Del
OK
want_X509_lookup.al
441 B
Del
OK
want_nothing.al
357 B
Del
OK
want_read.al
309 B
Del
OK
want_write.al
312 B
Del
OK
Edit: 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 1079 "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;
Save