> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Lutz Jaenicke
> Sent: Monday, November 06, 2000 16:00
> To: [EMAIL PROTECTED]
> Subject: Re: What should be freed when looping?
>
> [some included mail deleted for brevity]
>
> > SSL_free (ssl);
> > SSL_CTX_free (ctx);
> >
> You can and should safely reuse a SSL_CTX object, so that you
> don't need to
> reinitialize things like the certificate stuff.
> An SSL object can also be reused, you should however make sure to call
> SSL_clear() on it before reuse.
> I cannot give you numbers on the performance impact of SSL_new() or
> SSL_CTX_new(), respectively. Both functions do however call functions
> of the malloc() class quite often, so that memory fragmentation might
> occur. For this reason alone, I would already recommend you to reuse SSL
> and SSL_CTX objects.
But, if you reuse the SSL object by calling SSL_clear(), what should you do
to start reusing it? Just call SSL_set_fd() (or like) again?
I've looked into the manual pages, but there's nothing about this...
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]