Revert "Fix encryption request handling"
[platform/core/security/key-manager.git] / src / manager / service / encryption-logic.h
index 8f941dd..627ed85 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2000-2019 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.
 
 namespace CKM {
 
-class EncryptionLogic
-{
+class EncryptionLogic {
 public:
-    EncryptionLogic(IEncryptionService& service) : m_service(service) {}
-    virtual ~EncryptionLogic() {}
+       explicit EncryptionLogic(IEncryptionService &service) : m_service(service) {}
+       virtual ~EncryptionLogic() {}
+
+       void Crypt(const CryptoRequest &request);
+       void KeyRetrieved(MsgKeyResponse response);
 
-    void Crypt(const CryptoRequest& request);
-    void KeyRetrieved(MsgKeyResponse response);
 private:
-    IEncryptionService& m_service;
+       IEncryptionService &m_service;
 
-    std::map<int, CryptoRequest> m_requests;
+       std::map<int, CryptoRequest> m_requestsMap;
 };
 
 } /* namespace CKM */