SSLeay_add_all_algorithms usage problem?

2005-04-15 Thread Aftab Alam
Hi All, I am writing a function in which I am calling these lines void Func() { SSLeay_add_all_algorithms(); ERR_load_crypto_strings(); // Now just free this. ERR_free_strings(); CRYPTO_cleanup_all_ex_data(); // I don't know if it can do the thing. } At

RE: SSLeay_add_all_algorithms usage problem?

2005-04-15 Thread Aftab Alam
Hi Again, I just went through FAQ and found out that if I call EVP_cleanup() then the identified leaks go away but now when I call int nVal = PKCS12_parse(pPKCS12, password, pPrivateKey, pSignerCert, pskSignerCertChain); if(nVal == PKCS12_ERROR) { coutError

Re: build openssl with debug information available

2005-04-15 Thread hao chen
Hi, I would like to add more information to the second question. I built openssl successfully by following the install.w32 instructions and tested the build without any problem. When I tried to run sign.c in VC v7 IDE environment, the program crashes. I did change the complier option to /MTd and

OpenSSL Bus Error from Stunnel 4.05 on Solaris

2005-04-15 Thread Andrew . Gubb
Hi, I'm experiencing odd behaviour which results in a bus error core dump on Solaris. I'm using OpenSSL as the SSL provider for stunnel 4.05. I can successfully start stunnel to open a tunnel to one host, eg: accept=localhost:4445 connect=host.domain.com:14445 but I get a bus error core

Re: build openssl with debug information available

2005-04-15 Thread Si Tiange
In openssl's directory, u should try the following steps as described in INSTALL.W32 1. perl Configure VC-WIN32 2. ms\do_ms 3. Edit ms\ntdll.mak or ms\nt.mak, modify -MD to -MDd 4. nmake -f ms\ntdll.mak p.s. The EVP_SignXXX functions work well. Try check your own code. On 4/15/05, hao chen

Re: build openssl with debug information available

2005-04-15 Thread hao chen
Hi Tiange, I also would like to know how to add an option such that the built DLL has debug information. So far I did not write any code by using openssl. Just tried to run the sign.c in the demo directory shipped with openssl. It is compiled fine but runs into crashing. Any one know if the

mod_ssl/OpenSSL crashing Safari 1.2.4

2005-04-15 Thread Taj Morton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, I'm having some problems with https and Safari. OpenSSL 0.9.7a, mod_ssl 2.8.22, Apache 1.3.33. Fedora Core 3 + cPanel. The Safari log can be found at http://www.wildgardenseed.com/Taj/Safari-log.txt Any ideas, this has been driving people

Confusion about SSL_ERROR_WANT_READ/WRITE

2005-04-15 Thread Edward Chan
Title: Confusion about SSL_ERROR_WANT_READ/WRITE I have an app where reads and writes happen from different threads. Now, ideally, one would envision that I just replace the reads/writes with SSL_read/SSL_write. Now I know it is not as simple as that. What exactly is the meaning of the

Re: Confusion about SSL_ERROR_WANT_READ/WRITE

2005-04-15 Thread Christopher Fowler
Whats wrong with select? Or are you using java that does not support select() On Fri, 2005-04-15 at 18:24, Edward Chan wrote: I have an app where reads and writes happen from different threads. Now, ideally, one would envision that I just replace the reads/writes with SSL_read/SSL_write.

Re: Confusion about SSL_ERROR_WANT_READ/WRITE

2005-04-15 Thread Dr. Stephen Henson
On Fri, Apr 15, 2005, Edward Chan wrote: I have an app where reads and writes happen from different threads. Now, ideally, one would envision that I just replace the reads/writes with SSL_read/SSL_write. Now I know it is not as simple as that. If you read and write the same stream in

RE: Confusion about SSL_ERROR_WANT_READ/WRITE

2005-04-15 Thread David Schwartz
I have an app where reads and writes happen from different threads. Now, ideally, one would envision that I just replace the reads/writes with SSL_read/SSL_write. Now I know it is not as simple as that. You need to wrap each SSL connection with a lock and hold that lock when you call

RE: Confusion about SSL_ERROR_WANT_READ/WRITE

2005-04-15 Thread Edward Chan
Thanks for this explanation. As I read more, I think I am getting a better understanding of this. So unlike normal tcp connections, where a read juts reads, and a write just writes, SSL_read may write, and SSL_write may read. This is all done under the hood, so I don't need to be concerned with