X509_STORE

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

X509_STORE

Steffen Lips
Hi,

We have already some leaks in our application.

I found out, that for STACK_OF(X509) there are two cleanup functions.
sk_X509_free to free only the 'stackframe', and sk_509_pop_free for
freeing the whole stack.
Is there something for X509_STORE, too? X509_STORE_free seems not to
free the X509 structures in it.

Thanx
Steffen

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: X509_STORE

Nils Larsch
Steffen Lips wrote:
> Hi,
>
> We have already some leaks in our application.
>
> I found out, that for STACK_OF(X509) there are two cleanup functions.
> sk_X509_free to free only the 'stackframe', and sk_509_pop_free for
> freeing the whole stack.
> Is there something for X509_STORE, too? X509_STORE_free seems not to
> free the X509 structures in it.

do you mean the STACK_OF(X509_OBJECT) in X509_STORE ? X509_STORE_free
should call X509_free() for each X509 objects in the stack.

Cheers,
Nils
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]