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=3D1; i (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 =3D=3D SIGINT) || (i =3D=3D SIGBREAK) || (i =3D=3D =
SIGABRT)
|| (i =3D=3D SIGABRT_COMPAT) || (i =3D=3D 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: owner-openssl-dev@openssl.org
[mailtowner-openssl-dev@openssl.org] 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=20
=20
Hi All,
=20
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.
=20
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 majordomo@openssl.org
__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majordomo@openssl.org