summaryrefslogtreecommitdiffstats
path: root/lib/libmd/md4.h
diff options
context:
space:
mode:
authorthomas <thomas@FreeBSD.org>2015-05-10 13:21:36 +0000
committerthomas <thomas@FreeBSD.org>2015-05-10 13:21:36 +0000
commit398e09896a073bed0b23e5a1f51d2ca561de8f31 (patch)
tree830f8cd4bac6ac9eb1bef6cb1679a7adb8e13809 /lib/libmd/md4.h
parent6a841c4bb74150d38d7156deff66f5b8fefddf43 (diff)
downloadFreeBSD-src-398e09896a073bed0b23e5a1f51d2ca561de8f31.zip
FreeBSD-src-398e09896a073bed0b23e5a1f51d2ca561de8f31.tar.gz
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
Diffstat (limited to 'lib/libmd/md4.h')
-rw-r--r--lib/libmd/md4.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libmd/md4.h b/lib/libmd/md4.h
index 4773513..efef98f 100644
--- a/lib/libmd/md4.h
+++ b/lib/libmd/md4.h
@@ -35,6 +35,18 @@ typedef struct MD4Context {
#include <sys/cdefs.h>
__BEGIN_DECLS
+
+/* Ensure libmd symbols do not clash with libcrypto */
+
+#define MD4Init _libmd_MD4Init
+#define MD4Update _libmd_MD4Update
+#define MD4Pad _libmd_MD4Pad
+#define MD4Final _libmd_MD4Final
+#define MD4End _libmd_MD4End
+#define MD4File _libmd_MD4File
+#define MD4FileChunk _libmd_MD4FileChunk
+#define MD4Data _libmd_MD4Data
+
void MD4Init(MD4_CTX *);
void MD4Update(MD4_CTX *, const void *, unsigned int);
void MD4Pad(MD4_CTX *);
OpenPOWER on IntegriCloud