summaryrefslogtreecommitdiffstats
path: root/perl/ssl_srvr.pl
diff options
context:
space:
mode:
authorRalf S. Engelschall <rse@openssl.org>1999-02-10 09:38:31 +0000
committerRalf S. Engelschall <rse@openssl.org>1999-02-10 09:38:31 +0000
commit8073036dd62848b616c6a817c155c3255074ec83 (patch)
tree8ae62e46c555ccc9e65b5dffd43cff25234c96af /perl/ssl_srvr.pl
parent0517335e3cdc565edbecb53dec8ef9091c936763 (diff)
Overhauled the Perl interface (perl/*):
- ported BN stuff to OpenSSL's different BN library - made the perl/ source tree CVS-aware - renamed the package from SSLeay to OpenSSL (the files still contain their history because I've copied them in the repository) - removed obsolete files (the test scripts will be replaced by better Test::Harness variants in the future)
Diffstat (limited to 'perl/ssl_srvr.pl')
-rw-r--r--perl/ssl_srvr.pl35
1 files changed, 0 insertions, 35 deletions
diff --git a/perl/ssl_srvr.pl b/perl/ssl_srvr.pl
deleted file mode 100644
index 419402f12b..0000000000
--- a/perl/ssl_srvr.pl
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/local/bin/perl
-
-use ExtUtils::testlib;
-
-use SSLeay;
-
-$ssl_ctx=SSL::CTX->new("SSLv3");
-
-$ssl_ctx->set_options("-info_callback" =>
- sub {
- print STDERR $_[0]->state()."\n";
- }
- );
-
-$ssl_ctx->use_PrivateKey_file("server.pem");
-
-$conn="localhost:4433";
-$conn=$ARGV[0] if $#ARGV >= 0;
-$bio=BIO->new("connect");
-$bio->hostname($conn) || die $ssl->error();
-
-$ssl=$ssl_ctx->new_ssl;
-$ssl->set_bio($bio);
-
-(($ret=$ssl->connect()) > 0) || die $ssl->error();
-
-(($ret=$ssl->write("GET / HTTP/1.0\r\n\r\n")) > 0) || die $ssl->error();
-
-while (1)
- {
- $ret=$ssl->read($buf,10240);
- last if ($ret <= 0);
- print $buf;
- }
-