summaryrefslogtreecommitdiffstats
path: root/perl/bio.pl
diff options
context:
space:
mode:
Diffstat (limited to 'perl/bio.pl')
-rw-r--r--perl/bio.pl30
1 files changed, 0 insertions, 30 deletions
diff --git a/perl/bio.pl b/perl/bio.pl
deleted file mode 100644
index 70a97e7925..0000000000
--- a/perl/bio.pl
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/local/bin/perl
-
-use ExtUtils::testlib;
-
-use SSLeay;
-
-$cmd=<<"EOF";
-GET / HTTP/1.0
-
-EOF
-
-$conn="localhost:4433";
-$conn=$ARGV[0] if $#ARGV >= 0;
-$bio=SSLeay::BIO::new("connect");
-#$bio->set_callback(sub {print STDERR SSLeay::BIO::number_read($_[0])."\n"; $_[$#_] });
-#$bio->set_callback(sub {print STDERR "$#_:".$_[0].":$_[1]:$_[2]:$_[3]:$_[4]:\n"; $_[$#_] });
-$bio->hostname($conn) || die $ssl->error();
-
-
-(($ret=$bio->do_handshake()) > 0) || die $bio->error();
-
-(($ret=$bio->syswrite($cmd)) > 0) || die $bio->error();
-
-while (1)
- {
- $ret=$bio->sysread($buf,10240);
- last if ($ret <= 0);
- print $buf;
- }
-