On Mon, Feb 15, 2016 at 10:17:15PM +0000, Matt Caswell wrote:

> Maybe EVP_cleanup() and other similar explicit deinit functions should
> be deprecated, and do nothing in 1.1.0? The auto-deinit capability
> should handle it. That way you would not need to do anything "special"
> for 1.1.0 with "#ifdef" etc. What do you think?

That may be a reasonable approach to avoid unexpected failures with
existing users. As far as wpa_supplicant is concerned, I ran quite a bit
of valgrind testing with the OpenSSL init/deinit calls commented out.
While I did find some memory leaks, those were not caused by the OpenSSL
library itself. As such, I've already added the #ifdef based on OpenSSL
version. This has the additional benefit of marking up code for cleanup
once OpenSSL 1.0.2 support terminates in the future.

-- 
Jouni Malinen                                            PGP id EFC895FA
-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

Reply via email to