]> Pileus Git - ~andy/fetchmail/blobdiff - smbencrypt.c
Rediff patch.
[~andy/fetchmail] / smbencrypt.c
index 1749bf071edb643a6f218e709fa1662962fae62c..2714064cbf0bf4239b1659f87dc4334cf6a17755 100644 (file)
@@ -26,6 +26,7 @@ extern int DEBUGLEVEL;
 
 #include <unistd.h>
 #include <stdlib.h>
+#include <stdint.h>
 #include <string.h>
 #include <ctype.h>
 #include "smbbyteorder.h"
@@ -61,12 +62,6 @@ static size_t skip_multibyte_char(char c)
     return 0;
 }
 
-
-/*******************************************************************
-safe string copy into a known length string. maxlength does not
-include the terminating zero.
-********************************************************************/
-
 static void strupper(char *s)
 {
 while (*s)
@@ -150,7 +145,7 @@ static int _my_mbstowcs(int16_t *dst, unsigned char *src, int len)
  * Creates the MD4 Hash of the users password in NT UNICODE.
  */
  
-static void E_md4hash(uchar *passwd, uchar *p16)
+static void E_md4hash(unsigned char *passwd, unsigned char *p16)
 {
        int len;
        int16_t wpwd[129];
@@ -180,7 +175,6 @@ void SMBOWFencrypt(unsigned char passwd[16], unsigned char *c8, unsigned char p2
 }
 
 /* Does the NT MD4 hash then des encryption. */
 void SMBNTencrypt(unsigned char *passwd, unsigned char *c8, unsigned char *p24)
 {
        unsigned char p21[21];