X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/1bbcb4cd0ec0d3c73a1a7a482d4e3712ce0fad87..d7af0c507a35fa24c857296be9e3dbc4e33117a9:/md5crypt.c diff --git a/md5crypt.c b/md5crypt.c index dba78880..22ef9893 100644 --- a/md5crypt.c +++ b/md5crypt.c @@ -1,9 +1,9 @@ /* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): - * 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 + * 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 * ---------------------------------------------------------------------------- */ @@ -11,9 +11,11 @@ #include "includes.h" #if defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT) -#include +#include + +#include -RCSID("$Id$"); +#include /* 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); }