From 40e5faac167f061229e796cb0c85c624029c7dff Mon Sep 17 00:00:00 2001 From: DongHyun Song Date: Thu, 27 May 2021 13:02:42 +0900 Subject: [PATCH] Give inheritance attribute of Signature class This patch will provide inherit-ability to child class for its purpose. Change-Id: I0cef392af11082051a97f33942c1958d175442c2 Signed-off-by: DongHyun Song --- src/common/signature.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/signature.h b/src/common/signature.h index 689a537..6c8357a 100644 --- a/src/common/signature.h +++ b/src/common/signature.h @@ -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_; -- 2.7.4