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]

Reply via email to