Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / step / security / step_recover_trust_anchor.h
1 // Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by an apache 2.0 license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMMON_STEP_SECURITY_STEP_RECOVER_TRUST_ANCHOR_H_
6 #define COMMON_STEP_SECURITY_STEP_RECOVER_TRUST_ANCHOR_H_
7
8 #include <manifest_parser/utils/logging.h>
9
10 #include "common/installer_context.h"
11 #include "common/step/recovery/step_recovery.h"
12
13 namespace common_installer {
14 namespace security {
15
16 /**
17  * @brief responsible for restoring trust anchor values
18  *
19  *
20  * Part of Recovery Mode. In case of partial
21  * installation trust anchor values get unregistered
22  * In case of unsuccessful partial update
23  * trust anchor values for the app before update
24  * gets restored
25  */
26 class StepRecoverTrustAnchor : public recovery::StepRecovery {
27  public:
28   using StepRecovery::StepRecovery;
29
30   Status RecoveryNew() override;
31   Status RecoveryUpdate() override;
32
33   STEP_NAME(RecoverTrustAnchor)
34 };
35
36 }  // namespace security
37 }  // namespace common_installer
38
39 #endif  // COMMON_STEP_SECURITY_STEP_RECOVER_TRUST_ANCHOR_H_