Give inheritance attribute of Signature class 62/258862/3
authorDongHyun Song <dh81.song@samsung.com>
Thu, 27 May 2021 04:02:42 +0000 (13:02 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Wed, 2 Jun 2021 02:16:32 +0000 (02:16 +0000)
This patch will provide inherit-ability to child class for its purpose.

Change-Id: I0cef392af11082051a97f33942c1958d175442c2
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
src/common/signature.h

index 689a537..6c8357a 100644 (file)
@@ -29,9 +29,9 @@ class Signature {
             skip_check_reference_(skip_check_reference),
             cert_info_(cert_info) {}
 
-  bool CheckSignatures(bool check_reference, PrivilegeLevel* level,
-                      boost::filesystem::path sig_root_path,
-                      std::string* error_message);
+  virtual bool CheckSignatures(bool check_reference, PrivilegeLevel* level,
+                               boost::filesystem::path sig_root_path,
+                               std::string* error_message);
   bool GetPrivilegeLevel(boost::filesystem::path sig_root_path,
                         PrivilegeLevel* level,
                         std::string* error_message);
@@ -49,7 +49,7 @@ class Signature {
   const bf::path& GetFilePath() const;
   const bf::path& GetBackupPath() const;
 
- private:
+ protected:
   RequestType request_type_;
   std::string pkgid_;
   bool is_readonly_package_;