aboutsummaryrefslogtreecommitdiff
path: root/src/common/DataStores/DB2FileLoader.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2020-05-10 15:29:47 +0200
committerShauren <shauren.trinity@gmail.com>2020-05-10 15:29:47 +0200
commitd889228259d98b29c0a4668af45b8a43c14d5983 (patch)
tree6085f408dfd321cca63e5b9f0da8548a1ed57050 /src/common/DataStores/DB2FileLoader.h
parent16761e1d7c21db0cb612ac951bf7ad005d8214e7 (diff)
Core/DataStores: Allow loading encrypted sections when key is known when reading from casc storage
Closes #24456
Diffstat (limited to 'src/common/DataStores/DB2FileLoader.h')
-rw-r--r--src/common/DataStores/DB2FileLoader.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/DataStores/DB2FileLoader.h b/src/common/DataStores/DB2FileLoader.h
index ef247052c9e..70b6afc2081 100644
--- a/src/common/DataStores/DB2FileLoader.h
+++ b/src/common/DataStores/DB2FileLoader.h
@@ -90,6 +90,12 @@ struct TC_COMMON_API DB2FileLoadInfo
std::string TypesString;
};
+enum class DB2EncryptedSectionHandling
+{
+ Skip,
+ Process
+};
+
struct TC_COMMON_API DB2FileSource
{
virtual ~DB2FileSource();
@@ -109,6 +115,8 @@ struct TC_COMMON_API DB2FileSource
virtual int64 GetFileSize() const = 0;
virtual char const* GetFileName() const = 0;
+
+ virtual DB2EncryptedSectionHandling HandleEncryptedSection(DB2SectionHeader const& sectionHeader) const = 0;
};
class TC_COMMON_API DB2Record