aboutsummaryrefslogtreecommitdiff
path: root/lib/libmd/md4c.c
diff options
context:
space:
mode:
authorThomas Quinot <thomas@FreeBSD.org>2015-05-10 13:21:36 +0000
committerThomas Quinot <thomas@FreeBSD.org>2015-05-10 13:21:36 +0000
commit9d8b66868add17ed4d51feda862c6a782ca8d6ca (patch)
tree830f8cd4bac6ac9eb1bef6cb1679a7adb8e13809 /lib/libmd/md4c.c
parenta998d1031cb739c15c8f09d95aeb0c3a0e0e6f49 (diff)
downloadsrc-9d8b66868add17ed4d51feda862c6a782ca8d6ca.tar.gz
src-9d8b66868add17ed4d51feda862c6a782ca8d6ca.zip
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
Notes
Notes: svn path=/head/; revision=282726
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 1211a98b4172..2234c40fba96 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);