Re: [X2serv-general] Re: [X2serv-cvs] CVS: x2/source commands.c,1.169,1.170
Brought to you by:
sirvulcan
From: Richard P. <R.A.Peters@Student.tue.nl> - 2002-04-11 09:09:55
|
I use the C++ crypto library from http://www.eskimo.com/~weidai/cryptlib.html I think it's too difficult to implement SHA-1 for X2, using MD5 via crypt() is better, and when I want to port x2 files to jinx, I would have to use crypt() anyway, so that isn't a problem either after all. ----- Original Message ----- From: "Wolfram Knipp" <qu...@sq...> > Argh. Shouldn't be a problem. Can you fire me the SHA-1 code? I was > originally going to use SHA-1, but didn't have a clue on how to > impliment > it ): > Thanks! > > > - > Wolfram `Daedalus' Knipp > > > -----Original Message----- > From: x2s...@li... > [mailto:x2s...@li...]On Behalf Of Richard > Peters > Sent: Thursday, April 11, 2002 4:15 PM > To: x2s...@li... > Subject: [X2serv-general] Re: [X2serv-cvs] CVS: x2/source > commands.c,1.169,1.170 > > > I realise that I'm a bit late with this, but... > JinX uses SHA password hashing. Is it easy to change X2 so that it uses > SHA > too? > That would make converting from X2 to JinX much easier. > > Richard Peters > Lysergine > > ----- Original Message ----- > From: "Wolfram Knipp" <qua...@us...> > To: <x2s...@li...> > Sent: Thursday, April 11, 2002 8:10 AM > Subject: [X2serv-cvs] CVS: x2/source commands.c,1.169,1.170 > > > > Update of /cvsroot/x2serv/x2/source > > In directory usw-pr-cvs1:/tmp/cvs-serv22949 > > > > Modified Files: > > commands.c > > Log Message: > > Sorry, made an error in code. Just realized when I tried to compile. > > > > Index: commands.c > > =================================================================== > > RCS file: /cvsroot/x2serv/x2/source/commands.c,v > > retrieving revision 1.169 > > retrieving revision 1.170 > > diff -C2 -r1.169 -r1.170 > > *** commands.c 11 Apr 2002 06:59:03 -0000 1.169 > > --- commands.c 11 Apr 2002 07:10:35 -0000 1.170 > > *************** > > *** 1272,1276 **** > > strcpy(seed, "$1$92737837$"); > > else > > ! strcpy(seed, "x2); > > if(strcmp(hptr->Pass, crypt(password, seed))) > > { > > --- 1272,1276 ---- > > strcpy(seed, "$1$92737837$"); > > else > > ! strcpy(seed, "x2"); > > if(strcmp(hptr->Pass, crypt(password, seed))) > > { > > *************** > > *** 1361,1365 **** > > strcpy(seed, "$1$92737837$"); > > else > > ! strcpy(seed, "x2); > > if(strcmp(hptr->Pass, crypt(password, seed))) > > { > > --- 1361,1365 ---- > > strcpy(seed, "$1$92737837$"); > > else > > ! strcpy(seed, "x2"); > > if(strcmp(hptr->Pass, crypt(password, seed))) > > { > > > > > > _______________________________________________ > > X2serv-cvs mailing list > > X2s...@li... > > https://lists.sourceforge.net/lists/listinfo/x2serv-cvs > > > _______________________________________________ > X2serv-general mailing list > X2s...@li... > https://lists.sourceforge.net/lists/listinfo/x2serv-general > > |