summaryrefslogtreecommitdiffstats
path: root/perl/b.pl
blob: ac1e52de792f6c4c89bc4c01e73f8da4b5d25bf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/local/bin/perl

use ExtUtils::testlib;

use SSLeay;

$cmd=<<"EOF";

EOF

$conn="localhost:4433";
$conn=$ARGV[0] if $#ARGV >= 0;
print "X\n";
$bio=BIO->new("connect");
print "XX\n";
$bio->set_callback(sub {print STDERR $_[0]->number_read."\n"; $_[$#_] });
print "XXX\n";
$bio->hostname($conn) || die $ssl->error();
print "XXXX\n";

#$ssl=BIO->new("ssl");