If you are talking abt reusing SSL structures, you can do
SSL_clear(sslp) and SSL_set_session(sslp, NULL) to try and reuse the old
session. This way, you need not free(). It worked for me. Same holds for
SSL_accept. The only caveat is that you need to use the same method (SSLv23,
SSLv3 etc.) as before.
Arun.
-----Original Message-----
From: Levy itai <[EMAIL PROTECTED]>
To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]>
Date: Tuesday, June 13, 2000 7:45 AM
Subject: SSL_free
>Hi to all,
>
>Do I have to use the SSL_free (SSL *s) routine after every call to SSL_new
>(SSL *s) which allocates memory for the
>SSL structure upon every connection ?
>If I use the SSL_free routine it seems to free the session context and I
>can't do reuse in the next connection.
>I tried to use the s->method->ssl_free(SSL *s) but it seems that there are
>memory leaks (it doesn't free all the mallocs).
>
>Which routine should I use in order to clean after every SSL connection,
and
>also if SSL_accept fails.
>
>please help since this is a very important issue.
>
>Itai Levy,
>Algorithmic Research.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]