I found the solution when I noticed reference count in SSL_CTX_free.




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Imran Badr
Sent: Tuesday, October 09, 2001 11:07 AM
To: [EMAIL PROTECTED]
Subject: SSL Context and SSL structure



I am writing a small test ssl server using openssl. I first create an ssl
context using SSL_CTX_new(method) and using this context I create as many
SSL structures (using SSL_new(ctx)) as required. I call SSL_sutdown(ss) and
SSL_free(ssl) when my client sends shutdown alert. I am noticing that when I
call SSL_free(ssl), it also frees context. This could be a problem because I
wanted to allocate more SSL structures depending on client TCP connections.
Please let me know if there is something wrong in my strategy.

Thanks.
Imran.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to