Hi DS
Thank You very much for your help. I am stuck here. I create SSL
connection as following:
fd = accept(...);
ssl = SSl_new(ctx);
SSL_get_fd(ssl, fd);
I spin off a thread for each connection using thread, pthread_detach..
I do not use BIO at all. Do I have to follow exactly TLS closue ?? Send
close notify, then wait for close_notify form Server/client ???
I use TLS in my application. I also call Thread_setup(int) in the
Network Security with OpenSSL book, but never call Thread_clenup(void)
because Thread_setup(int) is called onetime only at initialization
only.
Thank again
TD
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Schwartz
Sent: Tuesday, April 17, 2007 15:21
To: [email protected]
Subject: RE: It is Memory leak ??
> Hi DS
> How do we handle closure in openssl??? . I just call:
[snip]
> But sometimes I receive return 0 for both call. I do not know why, so
> I just call one time
> SSL_shutdown(ssl);
> SSl_free(ssl);
> close(sock);
>
> Please help.
It depends on how you created the SSL connection in the first place. You
may also need to free one or more BIOs. How did you create/open the SSL
connection?
DS
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]