Removing the encryption key is now done in clean(), so that it does not
affect rollback.
Change-Id: I629373fbaff6585e92581e48b97763cc6d374a28
Signed-off-by: Kamil Chłodnicki <k.chlodnicki@samsung.com>
namespace wgt {
namespace encrypt {
-common_installer::Step::Status StepRemoveEncryptionData::process() {
+common_installer::Step::Status StepRemoveEncryptionData::clean() {
wae_app_type_e enc_type =
context_->request_mode.get() == common_installer::RequestMode::GLOBAL ?
WAE_DOWNLOADED_GLOBAL_APP : WAE_DOWNLOADED_NORMAL_APP;
using Step::Step;
/**
- * \brief Remove encryption keys from database
+ * \brief Empty method - the actual work is done in clean() to delay it
*
- * \return Status::ERROR in case of failure,
- * Status::OK otherwise
+ * \return Status::OK
*/
- Status process() override;
+ Status process() override { return Status::OK; }
/**
- * \brief Empty method
+ * \brief Remove encryption keys from database
*
- * \return Status::OK
+ * \return Status::ERROR in case of failure,
+ * Status::OK otherwise
*/
- Status clean() override { return Status::OK; }
+ Status clean() override;
/**
* \brief Empty method