cvs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Cvs-dev] cvs-passwd patch: weird problem


From: Derek R. Price
Subject: Re: [Cvs-dev] cvs-passwd patch: weird problem
Date: Tue, 22 Aug 2006 07:01:07 -0400
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Prasad J Pandit wrote:
>> In a typical case, if there is a crypt_set_format() function, it may
>> support md5, blowfish or other formats. The password typically looks
>> like
>>
>>     $1$theMD5Salt$rest
>>     $2$theBlowFishSalt$re
>>
>> Of course, that is typically using the crypt() function supported by the
>> host. You will want to identify ways to support MD5 passwords even on
>> hosts that do not normally support that algorithm.
> 
>   I'll see to it. Thank you Mark! :)

You might want to notice that we've already import the "md5.c" and
"md5.h" files from GNULIB.  They can be found in CVS's "lib" directory.
 There is also an hmac-md5 module among other digest modules (md2, md4,
sha1, ???).

I would note that GNULIB now also has a "gc" ("generic crypto") module,
which looks like it wraps standard MD5 and HMAC-MD5, among other
digests.  I believe the idea of the gc module is that you set a
particular mode, then call all the digest functions identically,
otherwise.  If you want to support more than one type of password
digest, this may be the easiest way to go.

Cheers,

Derek
- --
Derek R. Price
CVS Solutions Architect
Get CVS support at Ximbiot <http://ximbiot.com>!
v: +1 248.835.1260
f: +1 248.835.1263
<mailto:address@hidden>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE6uPyLD1OTBfyMaQRAt9pAJ98LXGPTplbVefG9nouTDUQy6JV9gCg8tLg
sGV8pwInXRFN74tZ+2gMUSU=
=2Nx8
-----END PGP SIGNATURE-----





reply via email to

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