njårdshome

SVN commit 1101849 by mleupold:

Backport of r1101847:
Fix pamOpen hash size: it's 20, 40 or 56 depending on the password length.


M +2 -1 kwalletbackend.cc


--- branches/KDE/4.4/kdebase/runtime/kwalletd/backend/kwalletbackend.cc #1101848:1101849
@@ -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
}