summaryrefslogtreecommitdiffstats
path: root/lib/libcrypt
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-30 05:51:47 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-30 05:51:47 +0000
commitf05428e4cd63dde97bac14b84dd146a5c00455e3 (patch)
treee1331adb5d216f2b3fa6baa6491752348d2e5f10 /lib/libcrypt
parent6de57e42c294763c78d77b0a9a7c5a08008a378a (diff)
downloadFreeBSD-src-f05428e4cd63dde97bac14b84dd146a5c00455e3.zip
FreeBSD-src-f05428e4cd63dde97bac14b84dd146a5c00455e3.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'lib/libcrypt')
-rw-r--r--lib/libcrypt/Makefile4
-rw-r--r--lib/libcrypt/crypt.c14
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/libcrypt/Makefile b/lib/libcrypt/Makefile
index 96b03f8..d4d5057 100644
--- a/lib/libcrypt/Makefile
+++ b/lib/libcrypt/Makefile
@@ -1,5 +1,5 @@
#
-# $Id: Makefile,v 1.5 1994/11/07 21:07:05 phk Exp $
+# $Id: Makefile,v 1.6 1994/11/14 06:44:45 bde Exp $
#
LCRYPTBASE= libcrypt
@@ -18,7 +18,7 @@ CFLAGS+= -I${.CURDIR}/../libmd
# This may have to be revised
afterinstall:
-.if !defined(NOPIC)
+.if !defined(NOPIC)
@cd ${DESTDIR}${SHLIBDIR}; \
if [ ! -e ${LCRYPTSO} ]; then \
rm -f ${LCRYPTSO}; \
diff --git a/lib/libcrypt/crypt.c b/lib/libcrypt/crypt.c
index fd24e79..0b47561 100644
--- a/lib/libcrypt/crypt.c
+++ b/lib/libcrypt/crypt.c
@@ -6,12 +6,12 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id$
+ * $Id: crypt.c,v 1.2 1994/11/07 21:07:09 phk Exp $
*
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$Header$";
+static char rcsid[] = "$Header: /home/ncvs/src/lib/libcrypt/crypt.c,v 1.2 1994/11/07 21:07:09 phk Exp $";
#endif /* LIBC_SCCS and not lint */
#include <unistd.h>
@@ -35,7 +35,7 @@ to64(s, v, n)
/*
* UNIX password
- *
+ *
* Use MD5 for what it is best at...
*/
@@ -88,7 +88,7 @@ crypt(pw, salt)
MD5Update(&ctx1,sp,sl);
MD5Update(&ctx1,pw,strlen(pw));
MD5Final(final,&ctx1);
- for(pl = strlen(pw); pl > 0; pl -= 16)
+ for(pl = strlen(pw); pl > 0; pl -= 16)
MD5Update(&ctx,final,pl>16 ? 16 : pl);
/* Don't leave anything around in vm they could use. */
@@ -108,8 +108,8 @@ crypt(pw, salt)
MD5Final(final,&ctx);
- /*
- * and now, just to make sure things don't run too fast
+ /*
+ * and now, just to make sure things don't run too fast
* On a 60 Mhz Pentium this takes 34 msec, so you would
* need 30 seconds to build a 1000 entry dictionary...
*/
@@ -134,7 +134,7 @@ crypt(pw, salt)
}
p = passwd + strlen(passwd);
-
+
l = (final[ 0]<<16) | (final[ 6]<<8) | final[12]; to64(p,l,4); p += 4;
l = (final[ 1]<<16) | (final[ 7]<<8) | final[13]; to64(p,l,4); p += 4;
l = (final[ 2]<<16) | (final[ 8]<<8) | final[14]; to64(p,l,4); p += 4;
OpenPOWER on IntegriCloud