aboutsummaryrefslogtreecommitdiff
path: root/src/StormCommon.h
diff options
context:
space:
mode:
authorLadislav Zezula <ladislav.zezula@avg.com>2014-08-27 14:00:15 +0200
committerLadislav Zezula <ladislav.zezula@avg.com>2014-08-27 14:00:15 +0200
commitd740634db4313d7adde780fbd3daae2bb9b9d520 (patch)
tree6bc23cf6a35a60b76d5d60050d1286e394661cbf /src/StormCommon.h
parentd0e8db518d33913c54b96886808bcf2c1dd683e9 (diff)
+ Added support for signing MPQ archive (weak signature).v9.10
+ Added test cases for signature support + Release 9.10
Diffstat (limited to 'src/StormCommon.h')
-rw-r--r--src/StormCommon.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/StormCommon.h b/src/StormCommon.h
index 52a5620..25cc981 100644
--- a/src/StormCommon.h
+++ b/src/StormCommon.h
@@ -77,6 +77,7 @@
#define MPQ_WEAK_SIGNATURE_SIZE 64
#define MPQ_STRONG_SIGNATURE_SIZE 256
#define MPQ_STRONG_SIGNATURE_ID 0x5349474E // ID of the strong signature ("NGIS")
+#define MPQ_SIGNATURE_FILE_SIZE (MPQ_WEAK_SIGNATURE_SIZE + 8)
// MPQ signature info
typedef struct _MPQ_SIGNATURE_INFO
@@ -303,6 +304,12 @@ int SAttrFileSaveToMpq(TMPQArchive * ha);
int SListFileSaveToMpq(TMPQArchive * ha);
//-----------------------------------------------------------------------------
+// Weak signature support
+
+int SSignFileCreate(TMPQArchive * ha);
+int SSignFileFinish(TMPQArchive * ha);
+
+//-----------------------------------------------------------------------------
// Dump data support
#ifdef __STORMLIB_DUMP_DATA__