سؤال

Does Boost::asio::ssl free all the allocation made by OpenSSL? I know from using OpenSSL directly, I have to call things like BIO_free_all, SSL_CTX_free, etc. Does Asio do this? If so , when does it free the allocations?

هل كانت مفيدة؟

المحلول

Looking at the source, boost::asio::ssl does indeed appear to free up its OpenSSL allocations. e.g. SSL_CTX_free is called in context's destructor.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top