Amit Ben Shahar wrote:
The documentation specifies that SSL_ERROR_ZERO_RETURN is returned if
the transport layer is closed normally.
My question is, how should i handle this return code?
specifically should i call SSL_free normally to free resources, or are
resources already freed?
Yes you need to call SSL_free() to release the (SSL *) handle.
You may need to free/release other OpenSSL objects you created that were
also used in relation to the (SSL *) handle.
Unfortunately things get a big vague as man page documentation often
doesn't clearly indicate which API calls transfer ownership (and
therefore responsibly to release/free) to the callee from the caller
(usually your application code).
Darryl
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majord...@openssl.org