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%.
Since I don't supply a callback function for getting the key password,
PEM_ASN1_read() should just return a NULL pointer for encrypted key files
(as it did in earlier versions).

Is this an error in OpenSSL version 0.9.5?

Med venlig hilsen / Best regards

Kim Hellan
KMD
Mailto:[EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to