]> andersk Git - openssh.git/blobdiff - md5crypt.c
- (dtucker) [openbsd-compat/pwcache.c] Pull in includes.h and thus defines.h
[openssh.git] / md5crypt.c
index dba788804d5564c88cf0d2d53d16bf7bb752ccaf..22ef9893356eb0bcb65917002665415a4b68b599 100644 (file)
@@ -1,9 +1,9 @@
 /*
  * ----------------------------------------------------------------------------
  * "THE BEER-WARE LICENSE" (Revision 42):
- * <phk@login.dknet.dk> wrote this file.  As long as you retain this 
- * notice you can do whatever you want with this stuff. If we meet some 
- * day, and you think this stuff is worth it, you can buy me a beer in 
+ * <phk@login.dknet.dk> wrote this file.  As long as you retain this
+ * notice you can do whatever you want with this stuff. If we meet some
+ * day, and you think this stuff is worth it, you can buy me a beer in
  * return.   Poul-Henning Kamp
  * ----------------------------------------------------------------------------
  */
 #include "includes.h"
 
 #if defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT)
-#include <openssl/md5.h>
+#include <sys/types.h>
+
+#include <string.h>
 
-RCSID("$Id$");
+#include <openssl/md5.h>
 
 /* 0 ... 63 => ascii - 64 */
 static unsigned char itoa64[] =
@@ -35,7 +37,7 @@ to64(unsigned long v, int n)
                *s++ = itoa64[v&0x3f];
                v >>= 6;
        }
-       
+
        return (buf);
 }
 
@@ -157,7 +159,7 @@ md5_crypt(const char *pw, const char *salt)
        memset(salt_copy, 0, sizeof(salt_copy));
        memset(&ctx, 0, sizeof(ctx));
        memset(&ctx1, 0, sizeof(ctx1));
-       (void)to64(0, 4)
+       (void)to64(0, 4);
 
        return (passwd);
 }
This page took 0.034568 seconds and 4 git commands to generate.