[xml-security-c] 15/23: Remove unused variable 2

Ferenc Wágner wferi-guest at moszumanska.debian.org
Thu Jul 21 20:15:43 UTC 2016


This is an automated email from the git hooks/post-receive script.

wferi-guest pushed a commit to branch patch-queue/master
in repository xml-security-c.

commit 9479456d3569d219dc6bb90e2eab4e36933dffec
Author: Ferenc Wágner <wferi at niif.hu>
Date:   Sun Jan 31 00:50:48 2016 +0100

    Remove unused variable 2
---
 xsec/tools/xtest/xtest.cpp | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/xsec/tools/xtest/xtest.cpp b/xsec/tools/xtest/xtest.cpp
index ec40cb2..d8f4c6c 100644
--- a/xsec/tools/xtest/xtest.cpp
+++ b/xsec/tools/xtest/xtest.cpp
@@ -985,7 +985,6 @@ void unitTestRSASig(DOMImplementation * impl, XSECCryptoKeyRSA * k, const XMLCh
 		XSECProvider prov;
 		DSIGSignature *sig;
 		DOMElement *sigNode;
-		DSIGReference *ref[4];
 		
 		sig = prov.newSignature();
 		sig->setDSIGNSPrefix(MAKE_UNICODE_STRING("ds"));
@@ -1005,10 +1004,6 @@ void unitTestRSASig(DOMImplementation * impl, XSECCryptoKeyRSA * k, const XMLCh
 		DOMText * txt= doc->createTextNode(MAKE_UNICODE_STRING("A test string"));
 		obj->appendChild(txt);
 
-		// Add a Reference
-		ref[0] = sig->createReference(MAKE_UNICODE_STRING("#ObjectId"), 
-			DSIGConstants::s_unicodeStrURISHA1);
-
 		// Get a key
 		cerr << "signing ... ";
 
@@ -2545,7 +2540,6 @@ int main(int argc, char **argv) {
 	bool		doEncryptionUnitTests = true;
 	bool		doSignatureTest = true;
 	bool		doSignatureUnitTests = true;
-	bool		doXKMSTest = true;
 
 	int paramCount = 1;
 
@@ -2576,28 +2570,24 @@ int main(int argc, char **argv) {
 			doEncryptionTest = false;
 			doEncryptionUnitTests = false;
 			doSignatureUnitTests = false;
-			doXKMSTest = false;
 			paramCount++;
 		}
 		else if (_stricmp(argv[paramCount], "--encryption-only") == 0 || _stricmp(argv[paramCount], "-e") == 0) {
 			doSignatureTest = false;
 			doEncryptionUnitTests = false;
 			doSignatureUnitTests = false;
-			doXKMSTest = false;
 			paramCount++;
 		}
 		else if (_stricmp(argv[paramCount], "--encryption-unit-only") == 0 || _stricmp(argv[paramCount], "-u") == 0) {
 			doEncryptionTest = false;
 			doSignatureTest = false;
 			doSignatureUnitTests = false;
-			doXKMSTest = false;
 			paramCount++;
 		}
 		else if (_stricmp(argv[paramCount], "--signature-unit-only") == 0 || _stricmp(argv[paramCount], "-t") == 0) {
 			doEncryptionTest = false;
 			doSignatureTest = false;
 			doEncryptionUnitTests = false;
-			doXKMSTest = false;
 			paramCount++;
 		}
 /*		else if (stricmp(argv[paramCount], "--xkms-only") == 0 || stricmp(argv[paramCount], "-x") == 0) {
@@ -2723,17 +2713,6 @@ int main(int argc, char **argv) {
 
 			unitTestEncrypt(impl);
 		}
-/*
-		// Running XKMS Base test
-		if (doXKMSTest) {
-			cerr << endl << "====================================";
-			cerr << endl << "Performing XKMS Function";
-			cerr << endl << "====================================";
-			cerr << endl << endl;
-
-			testXKMS(impl);
-		}
-*/
 		cerr << endl << "All tests passed" << endl;
 
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/xml-security-c.git



More information about the Pkg-shibboleth-devel mailing list