From: Matt Caswell Date: Fri, 11 Sep 2020 13:04:51 +0000 (+0100) Subject: Remove some unneeded code from lhash.h X-Git-Tag: openssl-3.0.0-alpha7~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=028b31b32da97ada44140120297511eae518ed42;p=thirdparty%2Fopenssl.git Remove some unneeded code from lhash.h lhash.h had some workaround code for the issue where static inline functions contained references to libcrypto symbols in public header files. Since this issue no longer exists this workaround code can be removed. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/12860) --- diff --git a/include/openssl/lhash.h b/include/openssl/lhash.h index 816b613eafe..ccdd3a60ee5 100644 --- a/include/openssl/lhash.h +++ b/include/openssl/lhash.h @@ -256,32 +256,6 @@ DEFINE_LHASH_OF(OPENSSL_CSTRING); # pragma warning (pop) # endif -/* - * If called without higher optimization (min. -xO3) the Oracle Developer - * Studio compiler generates code for the defined (static inline) functions - * above. - * This would later lead to the linker complaining about missing symbols when - * this header file is included but the resulting object is not linked against - * the Crypto library (openssl#6912). - */ -# ifdef __SUNPRO_C -# pragma weak OPENSSL_LH_new -# pragma weak OPENSSL_LH_flush -# pragma weak OPENSSL_LH_free -# pragma weak OPENSSL_LH_insert -# pragma weak OPENSSL_LH_delete -# pragma weak OPENSSL_LH_retrieve -# pragma weak OPENSSL_LH_error -# pragma weak OPENSSL_LH_num_items -# pragma weak OPENSSL_LH_node_stats_bio -# pragma weak OPENSSL_LH_node_usage_stats_bio -# pragma weak OPENSSL_LH_stats_bio -# pragma weak OPENSSL_LH_get_down_load -# pragma weak OPENSSL_LH_set_down_load -# pragma weak OPENSSL_LH_doall -# pragma weak OPENSSL_LH_doall_arg -# endif /* __SUNPRO_C */ - #ifdef __cplusplus } #endif