From 61d11d6996e0bb78555793ad755cd98438185952 Mon Sep 17 00:00:00 2001
From: gcontini <1121667+gcontini@users.noreply.github.com>
Date: 周三, 01 1月 2020 20:22:21 +0800
Subject: [PATCH] add magic number

---
 src/templates/licensecc_properties.h.in |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/templates/licensecc_properties.h.in b/src/templates/licensecc_properties.h.in
index c1af888..6839823 100644
--- a/src/templates/licensecc_properties.h.in
+++ b/src/templates/licensecc_properties.h.in
@@ -12,6 +12,8 @@
 #define LICENSE_DATA_ENV_VAR "LICENSE_DATA"
 
 //Internal data structures limits
-#define MAX_LICENSE_LENGTH 256*1024
+#define MAX_LICENSE_LENGTH 256 * 1024
+
+#define VERIFY_MAGIC (lic_info.m_magic == @LCC_PROJECT_MAGIC_NUM@)
 
 #endif

--
Gitblit v1.9.1