summaryrefslogtreecommitdiff
path: root/libcrypt/des.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-08-24 02:43:08 +0000
committerMike Frysinger <vapier@gentoo.org>2006-08-24 02:43:08 +0000
commit8d9ff89b645bfe6f5143eb97d650a34aeee23d28 (patch)
tree17edca4779de6591603dc0a6d990056e977acea6 /libcrypt/des.c
parent8f2da7e653fab73b1b628731eca01dd904d81a10 (diff)
fix by Bernhard Fischer to move local prototypes to a header to keep things sane
Diffstat (limited to 'libcrypt/des.c')
-rw-r--r--libcrypt/des.c5
1 files changed, 2 insertions, 3 deletions
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 <pwd.h>
#include <string.h>
#include <crypt.h>
+#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;