> > I'm using Win NT4 with Visual Studio 6 and OpenSSL version 0.9.5.
> >
> > I'm trying to read a file with a private key using:
> > EVP_PKEY* pKey = (EVP_PKEY*) PEM_ASN1_read( (char *(*)())d2i_PrivateKey,
> > PEM_STRING_EVP_PKEY, fpKey, NULL, NULL, NULL);
> >
> > This goes well of the private key is not encrypted, but if the key file
> is
> > encrypted (3DES), PEM_ASN1_read() never returns and the CPU usage goes
> to
> > 100%.
>
> Applications should not call PEM_ASN1_read(). If you want to read a
> private key use PEM_read_PrivateKey() instead.
>
> Steve.
> --
> Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
>
>
Thanks once again Steve.....
That did the trick.
I have a similar problem with the function:
RSA *d2i_Netscape_RSA(RSA **a, unsigned char **pp, long length, int
(*cb)());
....but here the callback does not take any parameters, so how do
you supply the password to OpenSSL in the callback?
I can see that the callback really is being called, but all I can do
in it, is to return an integer value.
TIA
Kim Hellan
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]