Drop all encryption requests upon disconnection
[platform/core/security/key-manager.git] / src / manager / service / encryption-service.h
index 264b0fc..27a007f 100644 (file)
@@ -55,6 +55,13 @@ public:
                });
        }
 
+       virtual void Event(const CloseEvent &event)
+       {
+               CreateEvent([this, event]() {
+                       this->CustomHandle(event);
+               });
+       }
+
        void Start();
        void Stop();
 
@@ -62,6 +69,7 @@ protected:
        // CustomHandle is used to bypass security check
        void CustomHandle(const ReadEvent &event);
        void CustomHandle(const SecurityEvent &event);
+       void CustomHandle(const CloseEvent &event);
 
 private:
        virtual void SetCommManager(CommMgr *manager);