Subject: | trace option to new doesn't work properly |
The new() sub in SSH2.pm looks like this:
sub new {
my $class = shift;
my %opts = @_;
$class->_new($opts{trace} ? 1 : 0);
}
It should be this in order to pass the _value_ of $opts{trace} onto the
_new function found in SSH2.xs
sub new {
my $class = shift;
my %opts = @_;
$class->_new($opts{trace} ? $opts{trace} : 0);
}
The trace() method in SSH2.xs works just fine.
It would also be great if the LIBSSH2_TRACE_* constants from libssh2.h
were available to import from Net::SSH2.