Encryption service calls proper encryption/decryption methods
[platform/core/security/key-manager.git] / src / manager / crypto / generic-backend / gkey.h
index 9327645..b06926d 100644 (file)
@@ -33,7 +33,7 @@ class GKey {
 protected:
     GKey(){}
 public:
-    virtual RawBuffer getBinary() {
+    virtual RawBuffer getBinary() const {
         ThrowErr(Exc::Crypto::OperationNotSupported);
     }
 
@@ -56,6 +56,7 @@ public:
     virtual ~GKey () {}
 };
 
+typedef std::unique_ptr<GKey> GKeyUPtr;
 typedef std::shared_ptr<GKey> GKeyShPtr;
 
 } // namespace Crypto