]> andersk Git - openssh.git/blobdiff - md5crypt.c
Forgot to check in before.
[openssh.git] / md5crypt.c
index a9f0f26dd1c78fd1edf25d5380b28a2bc10e03d5..c1479d2e991133cb032b618cf95cd5d2d649fe4f 100644 (file)
  * Adapted from shadow-19990607 by Tudor Bosman, tudorb@jm.nu
  */
 
-#include "config.h"
+#include "includes.h"
+
+RCSID("$Id$");
 
 #if defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT)
 
-#include <unistd.h>
-#include <string.h>
 #include <openssl/md5.h>
 
 static unsigned char itoa64[] =                /* 0 ... 63 => ascii - 64 */
        "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
 
 static char    *magic = "$1$"; /*
-                                 * This string is magic for
-                                 * this algorithm.  Having
-                                 * it this way, we can get
-                                 * get better later on
-                                 */
+                                * This string is magic for
+                                * this algorithm.  Having
+                                * it this way, we can get
+                                * get better later on
+                                */
 
 static void
 to64(char *s, unsigned long v, int n)
@@ -45,7 +45,7 @@ to64(char *s, unsigned long v, int n)
 int
 is_md5_salt(const char *salt)
 {
-        return (!strncmp(salt, magic, strlen(magic)));
+       return (!strncmp(salt, magic, strlen(magic)));
 }
 
 /*
This page took 0.062641 seconds and 4 git commands to generate.