How do I uninitialize OpenSSL properly?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(Top posting to keep thread consistent).

It is also worth noting that if OpenSSL is used in a
plugin, which is unloaded (along with OpenSSL) and later
reloaded long before the container process is unloaded,
then "things that are only allocated once per OpenSSL
library lifetime" become very real memory leaks in that
container process.

On 30/04/2015 11:48, Newcomer83 at web.de wrote:
> According to the answer I received at 
> http://stackoverflow.com/questions/29845527/how-to-properly-uninitialize-openssl 
> there is apparently a ticket with my problem out there already, namely 
> the one here: https://rt.openssl.org/Ticket/Display.html?id=2561 The 
> newest answer even references my thread.
> I know some people don't like removing memory leaks of objects that 
> get initialized only once and are being used until shutdown, but if 
> the solution Mat proposed really does the trick, I would really 
> appreciate it if someone(tm) could take the time to put this seemingly 
> small fix in the code.
> Cheers
> Alex
> *Gesendet:* Dienstag, 28. April 2015 um 20:06 Uhr
> *Von:* "Salz, Rich" <rsalz at akamai.com>
> *An:* "openssl-users at openssl.org" <openssl-users at openssl.org>
> *Betreff:* Re: [openssl-users] How do I uninitialize OpenSSL properly?
> > Unfortunately this didn't solve my problem, but at least I narrowed 
> it down.
> > The leaks are caused by my call to "SSL_CTX_load_verify_locations", 
> which is
> > essentially "X509_STORE_load_locations".
>
> Doesn't freeing the SSL_CTX_free release that data? If not, please 
> file an RT ticket.

Enjoy

Jakob
-- 
Jakob Bohm, CIO, Partner, WiseMo A/S.  http://www.wisemo.com
Transformervej 29, 2860 S?borg, Denmark.  Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux