KDE/kdebase/runtime/kwalletd/backend
2010 March 11 05:03 UTC
SVN commit 1101847 by mleupold:
Fix pamOpen hash size: it's 20, 40 or 56 depending on the password length.
M +2 -1 kwalletbackend.cc
--- trunk/KDE/kdebase/runtime/kwalletd/backend/kwalletbackend.cc #1101846:1101847
@@ -325,7 +325,8 @@
}
// check the password hash for correct size (currently fixed)
- if (passwordHash.size() != 20) {
+ if (passwordHash.size() != 20 && passwordHash.size() != passwordHash.size() != 40 &&
+ passwordHash.size() != 56) {
return -42; // unsupported encryption scheme
}