From 8d9ff89b645bfe6f5143eb97d650a34aeee23d28 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 24 Aug 2006 02:43:08 +0000 Subject: fix by Bernhard Fischer to move local prototypes to a header to keep things sane --- libcrypt/des.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libcrypt/des.c') diff --git a/libcrypt/des.c b/libcrypt/des.c index 3f6b382bb..db2e22cb9 100644 --- a/libcrypt/des.c +++ b/libcrypt/des.c @@ -64,6 +64,7 @@ #include #include #include +#include "libcrypt.h" /* Re-entrantify me -- all this junk needs to be in * struct crypt_data to make this really reentrant... */ @@ -638,9 +639,7 @@ encrypt(char *block, int flag) block[(i << 5) | j] = (io[i] & bits32[j]) ? 1 : 0; } -char *__des_crypt(const char *key, const char *setting) attribute_hidden; -char * -__des_crypt(const char *key, const char *setting) +char *__des_crypt(const unsigned char *key, const unsigned char *setting) { u_int32_t count, salt, l, r0, r1, keybuf[2]; u_char *p, *q; -- cgit v1.2.3