Initialising OpenSSL more than once - how do we handle this?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Initialising OpenSSL more than once - how do we handle this?

Viktor Dukhovni


> On Jul 31, 2018, at 4:59 AM, Matt Caswell <[hidden email]> wrote:
>
> To be clear I can only think of one leak that we have at process exit
> (well technically its two instances of the same thing). And that leak is
> not the result of a *mistake*. It is a deliberate design decision to
> workaround around a problem on some platforms (i.e. anything that isn't
> Windows, Linux or Solaris, IIRC).

There's at least one more, we don't call X509_PURPOSE_cleanup(), without
which we leak memory allocated via X509_PURPOSE_add().  There may be other
static allocations that the test suite does not exercise.

--
        Viktor.

--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
12