From: Chris R. <chr...@me...> - 2002-05-10 13:31:27
|
Ewa Skrenty <Ewa...@un...> wrote: > Hi, > I found the reason why I couldn't use start_tls function in my > programms. I have used IO::Socket::SSL v.0.81 package and in this > socketToSSL function differ from this in v.0.80 this package. Difference > is in result of this method. In version 0.81 aren't implemented TIEHANDLE > method ,because socketToSSL has implemented association with > IO::Socket::SSL and using > > tie *{$sock}, 'IO::Socket::SSL', $sock > > in Net::LDAP::start_tls function couses an error. Yes, that would explain it. > To use latest version of IO::Socket::SSL is possible to change > following line of start_tls function od Net::LDAP package > from this: > > (IO::Socket::SSL::socketToSSL($sock) and tie *{$sock}, 'IO::Socket::SSL', > $sock) > > to this > > IO::Socket::SSL::socketToSSL($sock) If I recall (Graham?) the 'and tie ...' was to avoid a bug in IO::Socket::SSL::socketToSSL. I guess that bug workaround could go, but then there would need to be a test in the Makefile.PL for a specific (ie >= 0.81) version of IO::Socket::SSL. Cheers, Chris |