Don't play with keys if the LUKS is not setup
authorAlberto Mardegan <alberto.mardegan@nokia.com>
Wed, 13 Apr 2011 14:00:03 +0000 (17:00 +0300)
committerAlberto Mardegan <alberto.mardegan@nokia.com>
Wed, 13 Apr 2011 14:03:29 +0000 (17:03 +0300)
commitc96407986a2050d799864832dbd1125136112134
treee7bea20b0774bdae7da9fecf4e637dffb873be8e
parent63a08b91dc8b320f17953c1a8e36d9e6bf4bf43a
Don't play with keys if the LUKS is not setup

CryptoManager::encryptionKeyInUse() attempts to mount the FS, failing if it's
not setup. But we can avoid all the expensive setup operations by just adding
one simple check.
src/signond/key-handler.cpp