Bug#142070: [Pkg-shadow-devel] Bug#142070: Patch applied in sarge branch

Christian Perrier Christian Perrier <bubulle@debian.org>, 142070@bugs.debian.org
Wed, 6 Apr 2005 14:12:11 +0200


(remember, only reply to the bug number...:-)))

> If I can ..
> Now I thing it will be better prepare this kind functionality in more 
> common way for allow not only one encryption algorintm.
> Propably in future even on libc level will be used more than two algorithms
> (now DES and MD5).
> Instead use --md5 and probalby in future --sha1 (--sha256), --blodish and
> other better will be use --<shwitch> <algh_name>.
> 
> I think best will be plug this under "{-c|--crypt} <algh_name>" (other 
> proposition ?)
> 
> If it will be acceptable I'll try ASAP prepare patch using this new shema
> for CVS shadow tree.

I think that's OK, but you'll have to keep the "--des" and "--md5"
command line switches for backward compatibility.

Maybe get utilities print some warning message when they are
used. Something like:

$ echo tintin:tintin | chpasswd --des
WARNING: the --des command line switch is obsolete. Please use
         "--crypt des" instead.
$

(and doing the work anyway...)