diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2012-04-27 00:49:55 -0400 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2012-04-27 00:49:55 -0400 |
commit | 03964d1fce1720413498dbb537acc52ba3321566 (patch) | |
tree | 0ee97040ecc6c0c930e4feb04dc6c3406f9af079 /passlib/handlers/des_crypt.py | |
parent | a8c0ef90542ec5b17fe84c18ecbe7c439da4105d (diff) | |
download | passlib-03964d1fce1720413498dbb537acc52ba3321566.tar.gz |
context change - shortened hash_needs_update() to needs_update()
- renamed internal update hooks as well
- needs_update() now accepts an optional copy of the password.
this is unused for now, but should pave the way for properly
migrating crypt_blowfish $2x$ hashes in the next release.
Diffstat (limited to 'passlib/handlers/des_crypt.py')
-rw-r--r-- | passlib/handlers/des_crypt.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/passlib/handlers/des_crypt.py b/passlib/handlers/des_crypt.py index 4a19532..68ab3dd 100644 --- a/passlib/handlers/des_crypt.py +++ b/passlib/handlers/des_crypt.py @@ -278,11 +278,11 @@ class bsdi_crypt(uh.HasManyBackends, uh.HasRounds, uh.HasSalt, uh.GenericHandler return rounds @classmethod - def _deprecation_detector(cls, **settings): - return cls._hash_needs_update + def _bind_needs_update(cls, **settings): + return cls._needs_update @classmethod - def _hash_needs_update(cls, hash): + def _needs_update(cls, hash, secret): # mark bsdi_crypt hashes as deprecated if they have even rounds. assert cls.identify(hash) if isinstance(hash, unicode): |