Deprecate SSL_COMP_free_compression_methods() and make it a no-op

SSL_COMP_free_compression_methods() should not be called expicitly - we
should leave auto-deinit to clean this up instead.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
Matt Caswell
2016-04-04 13:53:35 +01:00
parent 6827cb3610
commit 03b0e73555
5 changed files with 23 additions and 11 deletions

View File

@@ -198,9 +198,9 @@ static void ssl_library_stop(void)
#ifndef OPENSSL_NO_COMP
#ifdef OPENSSL_INIT_DEBUG
fprintf(stderr, "OPENSSL_INIT: ssl_library_stop: "
"SSL_COMP_free_compression_methods()\n");
"ssl_comp_free_compression_methods_intern()\n");
#endif
SSL_COMP_free_compression_methods();
ssl_comp_free_compression_methods_intern();
#endif
}