summaryrefslogtreecommitdiffstats
path: root/lib/libmd/sha512c.c
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2015-09-15 15:50:00 -0500
committerLuiz Otavio O Souza <luiz@netgate.com>2015-10-20 12:03:24 -0500
commitfbbde3a0d1cef7642b2575e0b008ab41c519809c (patch)
treee19c9b385bef3548ddb16fd9b4d8f49238d1b99e /lib/libmd/sha512c.c
parente8001fd0fddc08dbe26cabe348f1adca96c271d8 (diff)
downloadFreeBSD-src-fbbde3a0d1cef7642b2575e0b008ab41c519809c.zip
FreeBSD-src-fbbde3a0d1cef7642b2575e0b008ab41c519809c.tar.gz
MFC r282726:
Ensure libmd symbols do not clash with libcrypto Add a prefix to all symbols in libmd to avoid incompatibilites with same-named, but not binary compatible, symbols from libcrypto. Also introduce Weak aliases to avoid the need to rebuild dependent binaries and a major version bump. PR: 199119 Differential Revision: D2216 Reviewed by: roberto, delphij MFC after: 2 weeks TAG: IPSEC-HEAD Issue: #4841
Diffstat (limited to 'lib/libmd/sha512c.c')
-rw-r--r--lib/libmd/sha512c.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/libmd/sha512c.c b/lib/libmd/sha512c.c
index c2a93be..5c2e200 100644
--- a/lib/libmd/sha512c.c
+++ b/lib/libmd/sha512c.c
@@ -318,3 +318,14 @@ SHA512_Final(unsigned char digest[64], SHA512_CTX * ctx)
/* Clear the context state */
memset((void *)ctx, 0, sizeof(*ctx));
}
+
+#undef SHA512_Init
+__weak_reference(_libmd_SHA512_Init, SHA512_Init);
+#undef SHA512_Update
+__weak_reference(_libmd_SHA512_Update, SHA512_Update);
+#undef SHA512_Final
+__weak_reference(_libmd_SHA512_Final, SHA512_Final);
+#undef SHA512_Transform
+__weak_reference(_libmd_SHA512_Transform, SHA512_Transform);
+#undef SHA512_version
+__weak_reference(_libmd_SHA512_version, SHA512_version);
OpenPOWER on IntegriCloud