libopie: on update, 0-pad the sequence integers to keep seed length
authorSimon Schubert <simon.schubert@epfl.ch>
Thu, 26 Feb 2009 13:04:00 +0000 (14:04 +0100)
committerSimon Schubert <simon.schubert@epfl.ch>
Thu, 26 Feb 2009 13:09:42 +0000 (14:09 +0100)
commite855db3d910f2628254a6a24e571589b9e2b0ced
tree524c9caff8df6304fb80ff93df66ac47f646423a
parentc044141b8e3b2f2c3dff6c29e5ae014a6fb9c2dc
libopie:  on update, 0-pad the sequence integers to keep seed length

OPIE requires a certain seed length and generates a default seed, using
a 0-padded random number.  Subsequently changing the password will
increment this seed.  The code missed 0-padding this increased integer,
so opiepasswd would advance the seed from e.g. "la0092" to "la93".  This
would prevent opiekey(1) from working, complaining about a too short
seed.
contrib/opie/libopie/newseed.c