aboutsummaryrefslogtreecommitdiff
path: root/games/crossfire-server/files/patch-ag
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2000-07-21 18:15:36 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2000-07-21 18:15:36 +0000
commit70f89778c0f2f76bc2f8046e99cc55f2962ac9c2 (patch)
tree14c35099cfb4f4257c5e0b8e589d530fcb829468 /games/crossfire-server/files/patch-ag
parentf667b39b3c0614d5aeb9bcb4bac4a4b222408185 (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_4_1_0'.release/4.1.0
Notes
Notes: svn path=/head/; revision=30942 svn path=/tags/RELEASE_4_1_0/; revision=30943; tag=release/4.1.0
Diffstat (limited to 'games/crossfire-server/files/patch-ag')
-rw-r--r--games/crossfire-server/files/patch-ag47
1 files changed, 0 insertions, 47 deletions
diff --git a/games/crossfire-server/files/patch-ag b/games/crossfire-server/files/patch-ag
deleted file mode 100644
index 6b36400a06c9..000000000000
--- a/games/crossfire-server/files/patch-ag
+++ /dev/null
@@ -1,47 +0,0 @@
---- server/main.c.orig Sun Jan 5 19:59:27 1997
-+++ server/main.c Wed Sep 17 15:34:40 1997
-@@ -139,6 +139,36 @@
- }
- }
-
-+#if defined(__FreeBSD__)
-+static unsigned char itoa64[] =
-+ "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./";
-+
-+static void
-+to64(char *s, long v, int n)
-+{
-+ while (--n >= 0) {
-+ *s++ = itoa64[v&0x3f];
-+ v >>= 6;
-+ }
-+}
-+
-+char *
-+crypt_string(char *str, char *salt)
-+{
-+ char s[10];
-+ if (salt==NULL) {
-+ struct timeval tv;
-+ gettimeofday(&tv,0);
-+ to64(&s[0], random(), 3);
-+ to64(&s[3], tv.tv_usec, 3);
-+ to64(&s[6], tv.tv_sec, 2);
-+ s[8] = '\0';
-+ salt = s;
-+ }
-+ return (crypt(str, salt));
-+}
-+#else
-+
- char *crypt_string(char *str, char *salt) {
- static char *c=
- "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./";
-@@ -151,6 +181,7 @@
- s[1]= salt[1];
- return crypt(str,s);
- }
-+#endif
-
- int check_password(char *typed,char *crypted) {
- return !strcmp(crypt_string(typed,crypted),crypted);