summaryrefslogtreecommitdiffstats
path: root/lib/libmd/md4c.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/md4c.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/md4c.c')
-rw-r--r--lib/libmd/md4c.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libmd/md4c.c b/lib/libmd/md4c.c
index 1211a98..2234c40 100644
--- a/lib/libmd/md4c.c
+++ b/lib/libmd/md4c.c
@@ -290,3 +290,12 @@ unsigned int len;
output[i] = ((UINT4)input[j]) | (((UINT4)input[j+1]) << 8) |
(((UINT4)input[j+2]) << 16) | (((UINT4)input[j+3]) << 24);
}
+
+#undef MD4Init
+__weak_reference(_libmd_MD4Init, MD4Init);
+#undef MD4Update
+__weak_reference(_libmd_MD4Update, MD4Update);
+#undef MD4Pad
+__weak_reference(_libmd_MD4Pad, MD4Pad);
+#undef MD4Final
+__weak_reference(_libmd_MD4Final, MD4Final);
OpenPOWER on IntegriCloud