From dd64f246510b6c4e0618130bacbca5046c6295aa Mon Sep 17 00:00:00 2001
From: open-license-manager <rillf@maildrop.cc>
Date: 摹曛, 17 4月 2014 05:08:21 +0800
Subject: [PATCH] signature

---
 src/library/LicenseReader.cpp |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/src/library/LicenseReader.cpp b/src/library/LicenseReader.cpp
index 174bdb0..6e1c064 100644
--- a/src/library/LicenseReader.cpp
+++ b/src/library/LicenseReader.cpp
@@ -285,21 +285,22 @@
 	oss << toupper_copy(trim_copy(this->product));
 	oss << SHARED_RANDOM
 	;
-	/*if (has_client_sig) {
-	 oss << trim_copy(this->client_signature);
-	 }
-	 if (has_versions) {
-	 oss << "|" << this->from_sw_version << "-" << this->to_sw_version;
-	 }*/
+	if (has_client_sig) {
+		oss << trim_copy(this->client_signature);
+	}
+	if (has_versions) {
+		oss << "|" << this->from_sw_version << "-" << this->to_sw_version;
+	}
 	if (has_expiry) {
 		oss << "|" << this->from_date << "|" << this->to_date;
-	}/*
-	 if (this->extra_data.length() > 0) {
-	 oss << "|" << extra_data;
-	 }*/
-	string result = oss.str();
+	}
+	if (this->extra_data.length() > 0) {
+		oss << "|" << extra_data;
+	}
+#ifdef _DEBUG
 	cout << "[" << oss.str() << "]" << endl;
-	return result;
+#endif
+	return oss.str();
 
 }
 

--
Gitblit v1.9.1