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/crypt.c | |
parent | 8f2da7e653fab73b1b628731eca01dd904d81a10 (diff) |
fix by Bernhard Fischer to move local prototypes to a header to keep things sane
Diffstat (limited to 'libcrypt/crypt.c')
-rw-r--r-- | libcrypt/crypt.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libcrypt/crypt.c b/libcrypt/crypt.c index 5d8215fac..8b361d393 100644 --- a/libcrypt/crypt.c +++ b/libcrypt/crypt.c @@ -8,16 +8,14 @@ #define __FORCE_GLIBC #include <crypt.h> #include <unistd.h> +#include "libcrypt.h" -extern char * __md5_crypt( const char *pw, const char *salt) attribute_hidden; -extern char * __des_crypt( const char *pw, const char *salt) attribute_hidden; - -char * crypt(const char *key, const char *salt) +char *crypt(const char *key, const char *salt) { /* First, check if we are supposed to be using the MD5 replacement * instead of DES... */ if (salt[0]=='$' && salt[1]=='1' && salt[2]=='$') - return __md5_crypt(key, salt); + return __md5_crypt((unsigned char*)key, (unsigned char*)salt); else - return __des_crypt(key, salt); + return __des_crypt((unsigned char*)key, (unsigned char*)salt); } |