Suppress TEEC deprecated declarations warnings
[platform/core/security/key-manager.git] / src / manager / crypto / tz-backend / tz-serializer.h
index 6a5b572..b865477 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2019-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.
@@ -26,7 +26,6 @@
 #include <list>
 #include <memory>
 
-#include <tee_client_api.h>
 #include <km_serialization.h>
 
 #include <tz-backend/tz-memory.h>
@@ -55,7 +54,7 @@ public:
 
 class TZSerializableBinary : public TZSerializable {
 public:
-       explicit TZSerializableBinary(uint32_t data_size);
+       explicit TZSerializableBinary(uint32_t data_size, bool is_size_fixed = true);
        explicit TZSerializableBinary(const RawBuffer &data);
        uint32_t GetSize() const override;
        int Serialize(void **buffer, uint32_t *size_guard) const override;
@@ -63,6 +62,8 @@ public:
        void Pull(RawBuffer &buffer) const override;
 private:
        KM_BinaryData m_data;
+       bool m_isSizeFixed;
+       uint32_t m_expectedSize;
 };