From dad0cff70ce8776455dc68c3461ba807dac4e57b Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Thu, 24 Aug 2006 03:17:32 +0000 Subject: Copy from trunk. --- libcrypt/libcrypt.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 libcrypt/libcrypt.h (limited to 'libcrypt') diff --git a/libcrypt/libcrypt.h b/libcrypt/libcrypt.h new file mode 100644 index 000000000..11866200c --- /dev/null +++ b/libcrypt/libcrypt.h @@ -0,0 +1,20 @@ +/* prototypes for internal crypt functions + * + * Copyright (C) 2000-2006 by Erik Andersen + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#ifndef __LIBCRYPT_H__ +#define __LIBCRYPT_H__ + +extern char *__md5_crypt(const unsigned char *pw, const unsigned char *salt) attribute_hidden; +extern char *__des_crypt(const unsigned char *pw, const unsigned char *salt) attribute_hidden; + +/* shut up gcc-4.x signed warnings */ +#define strcpy(dst,src) strcpy((char*)dst,(char*)src) +#define strlen(s) strlen((char*)s) +#define strncat(dst,src,n) strncat((char*)dst,(char*)src,n) +#define strncmp(s1,s2,n) strncmp((char*)s1,(char*)s2,n) + +#endif -- cgit v1.2.3