about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTPasswd.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-01-22 12:03:56 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1998-01-22 12:03:56 -0500
commitab8b1f12eaf6b1524439f4a277cb7d122068acd7 (patch)
tree1b9a5ed17066e83f22164e8394a6aeea821b2792 /WWW/Library/Implementation/HTPasswd.c
parente38e34bfb6683c78cec7b217fc30b71874f756f4 (diff)
downloadlynx-snapshots-ab8b1f12eaf6b1524439f4a277cb7d122068acd7.tar.gz
snapshot of project "lynx", label v2-7-1ac_0-110
Diffstat (limited to 'WWW/Library/Implementation/HTPasswd.c')
-rw-r--r--WWW/Library/Implementation/HTPasswd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/WWW/Library/Implementation/HTPasswd.c b/WWW/Library/Implementation/HTPasswd.c
index e08bfbeb..ada39ee5 100644
--- a/WWW/Library/Implementation/HTPasswd.c
+++ b/WWW/Library/Implementation/HTPasswd.c
@@ -21,6 +21,7 @@
 #include <string.h>
 #include "HTAAUtil.h"	/* Common parts of AA	*/
 #include "HTAAFile.h"	/* File routines	*/
+#include "HTAAServ.h"	/* Server routines	*/
 #include "HTPasswd.h"	/* Implemented here	*/
 
 #include "LYLeaks.h"
@@ -87,16 +88,15 @@ PUBLIC char *HTAA_encryptPasswd ARGS1(CONST char *, password)
     char *tmp;
     CONST char *cur = password;
     int len = strlen(password);
-    extern time_t theTime;
-    int random = (int)theTime;	/* This is random enough */
+    int randum = (int)theTime;	/* This is random enough */
 
     if (!(result = (char*)malloc(13*((strlen(password)+7)/8) + 1)))
 	outofmem(__FILE__, "HTAA_encryptPasswd");
 
     *result = (char)0;
     while (len > 0) {
-	salt[0] = salt_chars[random%64];
-	salt[1] = salt_chars[(random/64)%64];
+	salt[0] = salt_chars[randum%64];
+	salt[1] = salt_chars[(randum/64)%64];
 	salt[2] = (char)0;
 
 	strncpy(chunk, cur, 8);