Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: Passwd auth with MD5 hash
Home

[Freeciv-Dev] Re: Passwd auth with MD5 hash

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Passwd auth with MD5 hash
From: Auth Gábor <franko@xxxxxxxxxxxxxxxx>
Date: Tue, 21 Aug 2001 14:06:09 +0200
Reply-to: franko@xxxxxxxxxxxxxxxx

Hi!

>> Advanced password auth patch for civserver. Enable password
>> authentication for clients, and passwords stored in MD5 hash.
> I don't see the md5 method.
  The hash is MD5, when salt begin $1$ magic chars, uses same call to
crypt().

>> +  char passwd[36];
> A symbolic define would be nice.
  Yes, it is not nice... :)

> You have to initialize Salt[0-11]. The access to Salt[12] is bad.
  Sorry, sorry...

>> +  sscanf(name, "%[^:]:%s",buf_name,buf_passwd);
>> +  if ( sscanf(req->name,"%[^:]:%s",buf_name,buf_passwd)!=2 )
> Could this be expressed with strchr()?
  Hmm... sscanf is not UNIX specified function, IMHO. This is declared
in stdio.h header.
-- 
Frank O'Yanco - Auth Gábor -=- Mobil/SMS +36203494743 /+36303687792
Age of The Penguin -=- SuSE Linux 7.1 -=- http://andromeda.rgstudio.hu


[Prev in Thread] Current Thread [Next in Thread]