Use fixed object ID in TZ backend
[platform/core/security/key-manager.git] / src / manager / service / ckm-logic.h
index 97281d2..b22f1a0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2014-2020 Samsung Electronics Co., Ltd. All rights reserved
+ *  Copyright (c) 2014-2021 Samsung Electronics Co., Ltd. All rights reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -219,7 +219,6 @@ public:
                const Policy &policy);
 
        int unlockSystemDB();
-
 private:
        // select private/system database depending on asking uid and owner id.
        // output: database handler for effective owner
@@ -263,7 +262,8 @@ private:
                const Name &name,
                const ClientId &owner,
                const Crypto::Data &data,
-               const Policy &policy);
+               const Policy &policy,
+               const RawBuffer &hash);
 
        int getPKCS12Helper(
                const Credentials &cred,
@@ -282,7 +282,8 @@ private:
                const PKCS12Serializable &pkcs,
                const PolicySerializable &keyPolicy,
                const PolicySerializable &certPolicy,
-               DB::RowVector &output);
+               DB::RowVector &output,
+               const Credentials &cred);
 
        int removeDataHelper(
                const Credentials &cred,
@@ -300,8 +301,8 @@ private:
        Crypto::GObjUPtr rowToObject(
                UserData &handler,
                DB::Row row,
-               const Password &password);
-
+               const Password &password,
+               const RawBuffer &hash);
 protected:
        int readDataHelper(
                bool exportFlag,