Hi Girish, this rings a bell in my head! Just yesterday I made a similar experience with the EVP_read_pw_string() function.
What happens: In des/read_pwd.c the function pushsig() is called which sets a signal handler for all signals and stores the previous values (to restore them later with the popsig() function). Values (i=1; i<NX509_SIG; i++) are used as signals, but with VC8 (Visual Studio 2005) an assertion is thrown if an invalid signal number is used with the signal() function. At least in debug-binaries. I put the following lines in the beginning of the for-loops of pushsig() and popsig(): #ifdef WIN32 if (!( (i == SIGINT) || (i == SIGBREAK) || (i == SIGABRT) || (i == SIGABRT_COMPAT) || (i == SIGTERM) ) ) continue; #endif which solved the issue for me. But the actual bug in my opinion is in the Microsoft runtime libraries that come with VC8. (This is not the only change that makes programs crash that were running properly with earlier versions.) Kind regards Robert -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Girish kumar via RT Sent: Mittwoch, 11. Oktober 2006 19:04 Cc: openssl-dev@openssl.org Subject: [openssl.org #1409] Openssl Bug report Password protected private key file causes crash in MSVCR80 Hi All, I am using openssl version openssl-0.9.7d on Windows XP. When I run my application on MSVCRuntime 80, I get a crash when server is configured to run against a password protected private key file. In console it displays the message Enter pass phrase and crashes. If we use private key without password it goes through fine. Hope it has something to do with the console input code written inside the library. This is a critical issue for us to deploy our product in VCRuntime 80. Girish _________________________________________________________________ Call friends with PC-to-PC calling -- FREE http://get.live.com/messenger/overview ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]