1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00
freebsd/lib/libmd/md5.h
Thomas Quinot 9d8b66868a 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
2015-05-10 13:21:36 +00:00

24 lines
480 B
C

/* $FreeBSD$ */
#ifndef _MD5_H_
#define _MD5_H_
#ifndef _KERNEL
/* Ensure libmd symbols do not clash with libcrypto */
#define MD5Init _libmd_MD5Init
#define MD5Update _libmd_MD5Update
#define MD5Pad _libmd_MD5Pad
#define MD5Final _libmd_MD5Final
#define MD5Transform _libmd_MD5Transform
#define MD5End _libmd_MD5End
#define MD5File _libmd_MD5File
#define MD5FileChunk _libmd_MD5FileChunk
#define MD5Data _libmd_MD5Data
#endif
#include <sys/md5.h>
#endif /* _MD5_H_ */