Massimiliano Pala wrote:
> 
> Nikolay Sturm wrote:
> >
> > On 20 Sep 2000, at 17:24, Massimiliano Pala wrote:
> >
> > > > Can't call method "setParams" on an undefined value at
> > > > /home/httpd/cgi-ca/ca line 112.
> > > The OpenCA::OpenSSL module can not be initialized and probably because
> > > it cannot be found the "openssl" command.
> >
> > This error seems to be perl 5.6 specific. After downgrading to perl
> > 5.004_5 I could use the script without problems. Maybe you want
> > to verify your code against a current perl, because new Linux or
> > *BSD Systems ship with perl 5.6.
> 
> The error was in the OpenCA::OpenSSL code, it seemed, anyway I have tried the
> code on Perl5.6 and got no errors.... I'll check deeper...

I experienced the same problem. In my case the problem was a non
standard path to openssl.
Here new OpenCA::OpenSSL returns "undef" due to the following check:

        if( not -e "$self->{shell}" ) {
                return;
        };

This always happens when the default value for "shell" in
OpenCA::OpenSSL points to a nonexisting path.
The call to setParams would fix this, but perl doesnt like calling
methods on undef.
(especially when the value hasnt got any blessing...).

FIX:

directly use the parameters from setParams on the call to new,
eliminating the setParams call.

(The very same Problem hits other scripts as well. Just check all "new"s
on OpenCA:OpenSSL)


regards

Rainer Pruy                     ([EMAIL PROTECTED])
                                 Dr. Nagler & Cie. Consult GmbH

--------------------------------------------------------------
Per problemi: [EMAIL PROTECTED] oppure (anche meglio)
[EMAIL PROTECTED]  (messaggio con la sola parola HELP)
--------------------------------------------------------------

Reply via email to