From e4645cb0c653feeb67ed3569637225d33b66620e Mon Sep 17 00:00:00 2001 From: pengjingtong Date: Tue, 26 Sep 2023 15:38:24 +0800 Subject: [PATCH] update README.OpenSource version number Signed-off-by: pengjingtong --- C/Util/7z/7zMain.c | 6 +++--- LICENSE | 11 +++++++++++ README.OpenSource | 4 ++-- 3 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 LICENSE diff --git a/C/Util/7z/7zMain.c b/C/Util/7z/7zMain.c index 3ab63a3..b0b28cd 100644 --- a/C/Util/7z/7zMain.c +++ b/C/Util/7z/7zMain.c @@ -357,10 +357,10 @@ static BOOL WINAPI FileTimeToLocalFileTime(const FILETIME *fileTime, FILETIME *l } static const UInt32 kNumTimeQuantumsInSecond = 10000000; -static const UInt32 kFileTimeStartYear = 1601; -static const UInt32 kUnixTimeStartYear = 1970; +#define K_FILE_TIME_START_YEAR 1601 +#define K_UNIX_TIME_START_YEAR 1970 static const UInt64 kUnixTimeOffset = - (UInt64)60 * 60 * 24 * (89 + 365 * (kUnixTimeStartYear - kFileTimeStartYear)); + (UInt64)60 * 60 * 24 * (89 + 365 * (K_UNIX_TIME_START_YEAR - K_FILE_TIME_START_YEAR)); static Int64 Time_FileTimeToUnixTime64(const FILETIME *ft) { diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2740140 --- /dev/null +++ b/LICENSE @@ -0,0 +1,11 @@ +LZMA SDK is written and placed in the public domain by Igor Pavlov. + +Some code in LZMA SDK is based on public domain code from another developers: + 1) PPMd var.H (2001): Dmitry Shkarin + 2) SHA-256: Wei Dai (Crypto++ library) + +You can copy, modify, distributed and perform LZMA SDK code, even for commerical purpose, +all without asking permission. + +LZMA SDK code is compatible with open source license, for example, you can +include it to GNU GPL or GNU LGPL code. \ No newline at end of file diff --git a/README.OpenSource b/README.OpenSource index 8d03f8e..9bd5d23 100644 --- a/README.OpenSource +++ b/README.OpenSource @@ -3,9 +3,9 @@ "Name": "lzma", "License": "Public domain", "License File": "LICENSE", - "Version Number": "19.00", + "Version Number": "22.00", "Owner": "zangleizhen@huawei.com", - "Upstream URL": "https://7-zip.org/a/lzma1900.7z", + "Upstream URL": "https://7-zip.org/a/lzma2200.7z", "Description": "LZMA is default and general compression method of 7z and xz format." } ]