[openssl.org #1510]

2007-03-20 Thread via RT
__ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]

[openssl.org #1511] A possible bug when compiling openSSL with minGW

2007-03-20 Thread [EMAIL PROTECTED] via RT
Hi, I am having a bit of a trouble compiling the openSSL release 0.9.8e under WinXP SP2. The version of minGW's the gcc compiler I am using is 3.4.5-20060117-1 and the minGW32-make is 3.80.0-1. For some reason the build tools use malformed file names such as .\crypto\/cryptlib.h (pay attention

Re: Memory Leaks in SSL_Library_init()

2007-03-20 Thread Brian Craft
David Schwartz wrote: The function SSL_library_init() is observed to be introudcing memory leak in the application code. There is still some amount of memory leak left even after the series of cleanup calls suggested in the openssl FAQ. Your first sentence is pretty funny though. How can

Re: Memory Leaks in SSL_Library_init()

2007-03-20 Thread Darryl Miles
David Schwartz wrote: The function SSL_library_init() is observed to be introudcing memory leak in the application code. There is still some amount of memory leak left even after the series of cleanup calls suggested in the openssl FAQ. Can someone help understand that technically what is the

Bug : SSL_CTX_use_certificate_chain_file fails due to earlier errors

2007-03-20 Thread Erik de Castro Lopo
Hi all, In the test suite for some C++ classes I'm writing, I deliberately invoke errors so I can test the error handling of my code. Doing this means that I have also turned up an error in the OpenSSL error handling. The problem I was seeing was that I would invoke an error and then in the

RE: Bug : SSL_CTX_use_certificate_chain_file fails due to earlier errors

2007-03-20 Thread David Schwartz
diff -ru openssl-0.9.8e/ssl/ssl_rsa.c openssl-0.9.8e-hacked/ssl/ssl_rsa.c --- openssl-0.9.8e/ssl/ssl_rsa.c 2005-04-09 08:52:41.0 +1000 +++ openssl-0.9.8e-hacked/ssl/ssl_rsa.c 2007-03-19 09:03:15.0 +1100 @@ -728,6 +728,9 @@ goto end; }

Re: Bug : SSL_CTX_use_certificate_chain_file fails due to earlier errors

2007-03-20 Thread Erik de Castro Lopo
David Schwartz wrote: Yep, this code is broken. That is not a particularly good fix though because errors can be lost. I guessed as much :-). The simplest and probably best fix is a new function, ERR_get_count() that returns the number of entries on the error stack. Callers that need to do

RE: Memory Leaks in SSL_Library_init()

2007-03-20 Thread Nitin M
From: David Schwartz [EMAIL PROTECTED] Reply-To: openssl-dev@openssl.org To: openssl-dev@openssl.org Subject: RE: Memory Leaks in SSL_Library_init() Date: Tue, 20 Mar 2007 05:02:01 -0700 The function SSL_library_init() is observed to be introudcing memory leak in the application code.

RE: Memory Leaks in SSL_Library_init()

2007-03-20 Thread David Schwartz
Keepin it apart from the memory leak, i would like to know by example how a perfect cleanup can casue performance problems? One common case goes like this: 1) You have an object you create very early in the library initialization. 2) The object is accessed a lot, and having to check if it's

Re: Memory Leaks in SSL_Library_init()

2007-03-20 Thread Nitin M
Hi! All, Thanks very much for your inouts on this. From: Darryl Miles [EMAIL PROTECTED] Reply-To: openssl-dev@openssl.org To: openssl-dev@openssl.org Subject: Re: Memory Leaks in SSL_Library_init() Date: Tue, 20 Mar 2007 17:18:40 + David Schwartz wrote: The function SSL_library_init()

RE: Memory Leaks in SSL_Library_init()

2007-03-20 Thread Nitin M
Hi! I have an example case where by the unused memoy allocated by SSL_library_init when not freed, would accumulate. There is an application which takes services from some of the libraries say A, B and C. These libraries are dynamically loaded and unloaded into the application as and when