function PEM_read_RSAPrivateKey not returning

2006-02-15 Thread Matthias
Good day everyone! I do have the problem that the OpenSSL function PEM_read_RSAPrivateKey does nothing, not even returning. Since I can not find any more hints in the net I am asking here for help. I wrote a minimalistic example program and hope somebody can give me some advice based on that. I

Re: openssl 0.9.7 and above break apache with firefox on solaris

2006-02-15 Thread Michael Smith
Hi Kyle,I rebuilt with zlib 1.2.3, as I was previously using 1.1.3 - but no change. I also tried compiling openssl with -no-zlibI also triedSSLCipherSuite SSLv2:-LOW:-EXPORT:RC4+RSAandSSLCipherSuite SSLv3:-LOW:-EXPORT:RC4+RSA with no successCan you make other suggestions as to things I might

Re: function PEM_read_RSAPrivateKey not returning

2006-02-15 Thread Kyle Hamilton
One of the most important things about this is, when did you obtain the installer from slproweb.com? It's difficult to figure out if it's older, or a problem in a very recent build, or what. Did you attach a debugger to the program and examine it to see what might be looping? (In the meantime,

Diffarent Error codes have same value

2006-02-15 Thread Konark
Hi All , I found in ssl.h header file that error codes repeats many times like. #define SSL_R_BAD_ECDSA_SIGNATURE 1112 #define SSL_R_KEY_ARG_TOO_LONG 1112 #define SSL_R_BAD_ECDSA_SIGNATURE 1112 #define SSL_R_MISSING_TMP_ECDH_KEY 1114 #define

Re: function PEM_read_RSAPrivateKey not returning

2006-02-15 Thread Matthias
Hi again I downloaded from slproweb at 9. February 2006 and the file is called Win32OpenSSL-v0.9.8a.exe. I didn't have any OpenSSL stuff on my computer before, so even no old things lieing around on the harddisc. If I run the program in VS .net 2003 v7.1.3088 with Start F5 the program seems to

RE: function PEM_read_RSAPrivateKey not returning

2006-02-15 Thread Ambarish Mitra
Your stack trace points to a release version of MS libraries. Please ensure that you run the release version of your program. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Matthias Sent: Wednesday, February 15, 2006 4:24 PM To: openssl-users@openssl.org

Re: Memory leak in OpenSSL application

2006-02-15 Thread Krishna M Singh
Hi All the best thing to track openSSL memory leak (as per my little understanding) is to have a debug file with Boundschecker and than provide some traffic and shutdown ur app. In case of leak its caught by the boundschecker. Now use some memory allocator (like Buddy Alloc etc...) and than have

Re: Problems with deprecated kbhit() under MS VC/C++ V8.0 (Visual Studio 2005)

2006-02-15 Thread Dr. Stephen Henson
On Wed, Feb 15, 2006, Daniel Maag wrote: Hi, I am trying to compile OpenSSL V0.9.8a. Visual Studio 2005 has several functions deprecated (read,write,fileno). I have replaced the deprecated function with the new one( read()-_read() ) Anything is working fine with one exception

Re: function PEM_read_RSAPrivateKey not returning

2006-02-15 Thread Dr. Stephen Henson
On Wed, Feb 15, 2006, Matthias wrote: Good day everyone! I do have the problem that the OpenSSL function PEM_read_RSAPrivateKey does nothing, not even returning. Since I can not find any more hints in the net I am asking here for help. I wrote a minimalistic example program and hope

Re: function PEM_read_RSAPrivateKey not returning

2006-02-15 Thread Kyle Hamilton
msvcr71d.dll? That looks like a debug version of the VC library to me. Incidentally, I'm getting the same problem on VC8 (VC++2005 Express Edition). And I'm getting it even in release configuration. -Kyle H On 2/15/06, Ambarish Mitra [EMAIL PROTECTED] wrote: Your stack trace points to a

Re: Problems with deprecated kbhit() under MS VC/C++ V8.0 (Visual Studio 2005)

2006-02-15 Thread Kyle Hamilton
...nd really stupid question, how do you configure the latest stable OpenSSL 0.9.8 (20060215) snapshot for win32? There is no opensslconf.h file (except in the MacOS directory), and nmake complains that it doesn't know how to make it. -Kyle H On 2/15/06, Dr. Stephen Henson [EMAIL PROTECTED

Re: SSL v2/3 and TLS.. How to be flexible?

2006-02-15 Thread Richard Koenning
Lee Dilkie wrote: Perhaps I'm getting confused with what's reported. I just noticed that SSLv3 gets reported even when I specify TLS methods on the client and server. ie. cipher spec=AES256-SHA SSLv3 Kx=RSA Au=RSA Enc=AES(256) Mac=SHA1 Is this really SSLv3 or is it

Re: Problems with deprecated kbhit() under MS VC/C++ V8.0 (Visual Studio 2005)

2006-02-15 Thread Dr. Stephen Henson
On Wed, Feb 15, 2006, Kyle Hamilton wrote: ...nd really stupid question, how do you configure the latest stable OpenSSL 0.9.8 (20060215) snapshot for win32? There is no opensslconf.h file (except in the MacOS directory), and nmake complains that it doesn't know how to make

Re: OBJ_create - a little problem.

2006-02-15 Thread Katie Lucas
On Mon, Feb 13, 2006 at 08:03:41PM +0100, Dr. Stephen Henson wrote: On Mon, Feb 13, 2006, [EMAIL PROTECTED] wrote: Hi everybody! Here is the sample code: int nid; nid = OBJ_create(1.2.3.4, MyAlias, My Test Alias Extension); X509V3_EXT_add_alias(nid,

openssl enc

2006-02-15 Thread list
I am looking to encrypt/decrypt files using openssl with a public key.. I set up a test environment and created a key pair with: openssl genrsa -des3 -out privkey.pem 2048 openssl rsa -in privkey.pem -pubout -out pubkey.pem I can get encryption to work fine with: openssl enc -aes-256-cbc

Memory grows

2006-02-15 Thread Samy Thiyagarajan
Hi all, I have a TLS enabled client and server. Both are working fine as far as the communication is concerned. For testing I loop my client ,such that it establish a connection,send and receive some sample data and release the connection. I just noticed that the memory at the client side

Re: openssl enc

2006-02-15 Thread Dr. Stephen Henson
On Wed, Feb 15, 2006, list wrote: I am looking to encrypt/decrypt files using openssl with a public key.. I set up a test environment and created a key pair with: openssl genrsa -des3 -out privkey.pem 2048 openssl rsa -in privkey.pem -pubout -out pubkey.pem I can get encryption to work

Re: SSL v2/3 and TLS.. How to be flexible?

2006-02-15 Thread Lee Dilkie
Unfortunately, ssldump isn't easily available on win32 (okay, i gave it all of 30 seconds but ./configure failed so I wasn't about to debug why). It's just that I would expect SSL_CIPHER_description( SSL_get_current_cipher(..)..) to return TLS if it was a TLS connection. Is there some other

Re: Diffarent Error codes have same value

2006-02-15 Thread Nils Larsch
Konark wrote: Hi All , I found in ssl.h header file that error codes repeats many times like. #define SSL_R_BAD_ECDSA_SIGNATURE 1112 #define SSL_R_KEY_ARG_TOO_LONG 1112 #define SSL_R_BAD_ECDSA_SIGNATURE

Re: Problems with deprecated kbhit() under MS VC/C++ V8.0 (Visual Studio 2005)

2006-02-15 Thread Kyle Hamilton
' Stop. C:\openssl-0.9.8-stable-SNAP-20060215 Now, can you help me figure out why it's failing here? I'm presuming that this is the first place that it's attempting to compile anything, but the .\crypto\opensslconf.h file isn't being generated by the prior steps. (There is an opensslconf.h.in

Re: Problems with deprecated kbhit() under MS VC/C++ V8.0 (Visual Studio 2005)

2006-02-15 Thread Kyle Hamilton
\e_ubsec_err.h Copying: ./engines/e_ubsec_err.h to tmp32dll/e_ubsec_err.h NMAKE : fatal error U1073: don't know how to make '.\crypto\opensslconf.h' Stop. C:\openssl-0.9.8-stable-SNAP-20060215 Now, can you help me figure out why it's failing here? I'm presuming that this is the first place that it's

Re: Problems with deprecated kbhit() under MS VC/C++ V8.0 (Visual Studio 2005)

2006-02-15 Thread Dr. Stephen Henson
On Wed, Feb 15, 2006, Kyle Hamilton wrote: I did. It mentioned nothing about this problem. I have Activestate Perl v5.8.7 installed, and nasm in the PATH. I ran ms\do_nasm.bat, as specified in INSTALL.W32. Did you do: perl Configure VC-WIN32 first? Steve. -- Dr Stephen N. Henson.

Re: Problems with deprecated kbhit() under MS VC/C++ V8.0 (Visual Studio 2005)

2006-02-15 Thread Kyle Hamilton
I thought it had, but it appears that I had not. My apologies. (Would you accept a patch to verify that the environment is set up correctly in the makefile?) ./crypto/opensslconf.h: @echo You need to run 'perl Configure VC-WIN32' before OpenSSL can be compiled @exit 42 -Kyle H Also,

Re: [Crypt::SSLeay] mod_ssl overrides settings by mod_perl applications?

2006-02-15 Thread Marko Asplund
On 2006-02-14, at 16.44, Richard Eggert wrote: Thanks. That worked perfectly (well, actually, it failed, but that's what I wanted to happen). Is there any way for me to tell within my code which SSL has been loaded, or am I pretty much stuck having to both set the HTTPS_CA_FILE variable