DragonFly-2.3.0.295.ge855d master contrib/opie/libopie newseed.c

Simon Schubert corecode at crater.dragonflybsd.org
Thu Feb 26 05:11:37 PST 2009


commit e855db3d910f2628254a6a24e571589b9e2b0ced
Author: Simon Schubert <simon.schubert at epfl.ch>
Date:   Thu Feb 26 14:04:00 2009 +0100

    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.

Summary of changes:
 contrib/opie/libopie/newseed.c |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e855db3d910f2628254a6a24e571589b9e2b0ced


-- 
DragonFly BSD source repository





More information about the Commits mailing list