Return error if password is not empty and row is not password protected 74/48874/9
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 1 Oct 2015 06:32:54 +0000 (08:32 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 26 Oct 2015 11:34:39 +0000 (12:34 +0100)
commitf8575d6b7807c953fa4693f1588535ce35d88548
treebb6c753230310938a3e58b66a23a6416607522d4
parent51a5e9cfe81d0374a02c1e28375a482b68afd879
Return error if password is not empty and row is not password protected

[Problem] If old scheme row is not password protected and the user tries to
read it with non empty password it will get reencrypted with this password.
[Solution] Throw an authentication exception if password is not empty and row
is not password protected.

[Verification] Run ckm-tests-internal -t ENCRYPTION_SCHEME_TEST/T120_Read_wrong_pass

Change-Id: I44b270dbbefd043b6efb9371f0d7a81c1b234b31
src/manager/service/crypto-logic.cpp