From d740634db4313d7adde780fbd3daae2bb9b9d520 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Wed, 27 Aug 2014 14:00:15 +0200 Subject: + Added support for signing MPQ archive (weak signature). + Added test cases for signature support + Release 9.10 --- src/StormCommon.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/StormCommon.h') 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 @@ -302,6 +303,12 @@ int SAttrFileSaveToMpq(TMPQArchive * ha); int SListFileSaveToMpq(TMPQArchive * ha); +//----------------------------------------------------------------------------- +// Weak signature support + +int SSignFileCreate(TMPQArchive * ha); +int SSignFileFinish(TMPQArchive * ha); + //----------------------------------------------------------------------------- // Dump data support -- cgit v1.2.3