summaryrefslogtreecommitdiff
path: root/passlib/tests
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2012-04-17 15:10:07 -0400
committerEli Collins <elic@assurancetechnologies.com>2012-04-17 15:10:07 -0400
commitab5a64cea160b07477874e646bb3c11511af3967 (patch)
tree6646759a4d74d1ea419ec2b9cd5dea005147070f /passlib/tests
parent29e7c681bed9a2a9b96f71b56b0bf4edca8ef044 (diff)
downloadpasslib-ab5a64cea160b07477874e646bb3c11511af3967.tar.gz
bugfix: set des_crypt.checksum_size, so it will now reject hashes with missing chars
Diffstat (limited to 'passlib/tests')
-rw-r--r--passlib/tests/test_handlers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/passlib/tests/test_handlers.py b/passlib/tests/test_handlers.py
index b06d100..259a58f 100644
--- a/passlib/tests/test_handlers.py
+++ b/passlib/tests/test_handlers.py
@@ -643,6 +643,10 @@ class _des_crypt_test(HandlerCase):
# bad char in otherwise correctly formatted hash
#\/
'!gAwTx2l6NADI',
+
+ # wrong size
+ 'OgAwTx2l6NAD',
+ 'OgAwTx2l6NADIj',
]
platform_crypt_support = dict(