OSDN Git Service

fix by Bernhard Fischer to move local prototypes to a header to keep things sane
[uclinux-h8/uClibc.git] / libcrypt / des.c
index 5966da0..db2e22c 100644 (file)
@@ -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... */
@@ -349,7 +350,7 @@ des_init(void)
 
 
 static void
-setup_salt(long salt)
+setup_salt(u_int32_t salt)
 {
        u_int32_t       obit, saltbit;
        int     i;
@@ -638,8 +639,7 @@ encrypt(char *block, int flag)
                        block[(i << 5) | j] = (io[i] & bits32[j]) ? 1 : 0;
 }
 
-char attribute_hidden *
-__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;