[openssl-dev] [openssl.org #3824] FEATURE: Please provide a function to unintialize the library

noloader@gmail.com via RT rt at openssl.org
Wed Apr 29 05:10:29 UTC 2015


This question crops up on occasion: How do you shutdown the OpenSSL
library. See, for example:

 * "How to properly uninitialize OpenSSL",
http://stackoverflow.com/questions/29845527/how-to-properly-uninitialize-openssl.
 * "Order of Cleanup to avoid memory leaks?",
http://comments.gmane.org/gmane.comp.encryption.openssl.user/50784

If you look at an answer like questions and answers
http://comments.gmane.org/gmane.comp.encryption.openssl.user/50784,
its non-trivial to get right. There were at least ***8*** cleanup
calls, and 1 was still missed.

In addition, there are some things that cannot be cleaned up because
they are not accessible outside the library. For example:

  * ssl_comp_methods
  * https://rt.openssl.org/Ticket/Display.html?id=2561&user=guest&pass=guest
  * http://rt.openssl.org/Ticket/Display.html?id=2439&user=guest&pass=guest
  * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584968.

Please provide a function to unintialize the library. I imagine it
would be similar to SSL_library_init(). But rather than having it
create things, it would cleanup things.




More information about the openssl-dev mailing list