diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-08-24 02:43:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-08-24 02:43:08 +0000 |
commit | 8d9ff89b645bfe6f5143eb97d650a34aeee23d28 (patch) | |
tree | 17edca4779de6591603dc0a6d990056e977acea6 /libcrypt/libcrypt.h | |
parent | 8f2da7e653fab73b1b628731eca01dd904d81a10 (diff) |
fix by Bernhard Fischer to move local prototypes to a header to keep things sane
Diffstat (limited to 'libcrypt/libcrypt.h')
-rw-r--r-- | libcrypt/libcrypt.h | 20 |
1 files changed, 20 insertions, 0 deletions
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 <andersen@uclibc.org> + * + * 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 |