[xml-security-c] 05/23: Fix indentation 1

Ferenc Wágner wferi-guest at moszumanska.debian.org
Thu Jul 21 20:15:41 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 0c54ae643248bb98bbd0024f01c43db8f779d6ef
Author: Ferenc Wágner <wferi at niif.hu>
Date:   Sat Jan 30 22:10:59 2016 +0100

    Fix indentation 1
---
 xsec/canon/XSECC14n20010315.cpp | 6 +++---
 xsec/dsig/DSIGReference.cpp     | 8 ++++----
 xsec/dsig/DSIGSignature.cpp     | 6 +++---
 xsec/dsig/DSIGTransformXSL.cpp  | 6 +++---
 4 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/xsec/canon/XSECC14n20010315.cpp b/xsec/canon/XSECC14n20010315.cpp
index 717c87a..9bdcd2b 100644
--- a/xsec/canon/XSECC14n20010315.cpp
+++ b/xsec/canon/XSECC14n20010315.cpp
@@ -757,9 +757,9 @@ bool XSECC14n20010315::checkRenderNameSpaceNode(DOMNode *e, DOMNode *a) {
 	if (m_XPathSelection && ! m_XPathMap.hasNode(a))
 		return false;
 
-    // BUGFIX: we need to skip xmlns:xml if the value is http://www.w3.org/XML/1998/namespace
-    if (strEquals(a->getLocalName(), "xml") && strEquals(a->getNodeValue(), "http://www.w3.org/XML/1998/namespace"))
-        return false;
+	// BUGFIX: we need to skip xmlns:xml if the value is http://www.w3.org/XML/1998/namespace
+	if (strEquals(a->getLocalName(), "xml") && strEquals(a->getNodeValue(), "http://www.w3.org/XML/1998/namespace"))
+		return false;
 
 	// First - are we exclusive?
 
diff --git a/xsec/dsig/DSIGReference.cpp b/xsec/dsig/DSIGReference.cpp
index dff5e85..4a06d98 100644
--- a/xsec/dsig/DSIGReference.cpp
+++ b/xsec/dsig/DSIGReference.cpp
@@ -1306,10 +1306,10 @@ unsigned int DSIGReference::calculateHash(XMLByte *toFill, unsigned int maxToFil
 
 	}
 
-    // Check for debugging sink for the data
-    TXFMBase* sink = XSECPlatformUtils::GetReferenceLoggingSink(d);
-    if (sink)
-        chain->appendTxfm(sink);
+	// Check for debugging sink for the data
+	TXFMBase* sink = XSECPlatformUtils::GetReferenceLoggingSink(d);
+	if (sink)
+		chain->appendTxfm(sink);
 
 
 	// Get the mapping for the hash transform
diff --git a/xsec/dsig/DSIGSignature.cpp b/xsec/dsig/DSIGSignature.cpp
index f43a8ee..2f177a0 100644
--- a/xsec/dsig/DSIGSignature.cpp
+++ b/xsec/dsig/DSIGSignature.cpp
@@ -856,9 +856,9 @@ unsigned int DSIGSignature::calculateSignedInfoHash(unsigned char * hashBuf,
 	Janitor<TXFMChain> j_chain(chain);
 
 	// Check for debugging sink for the data
-    TXFMBase* sink = XSECPlatformUtils::GetReferenceLoggingSink(mp_doc);
-    if (sink)
-        chain->appendTxfm(sink);
+	TXFMBase* sink = XSECPlatformUtils::GetReferenceLoggingSink(mp_doc);
+	if (sink)
+		chain->appendTxfm(sink);
 
 	// Setup Hash
 	// First find the appropriate handler for the URI
diff --git a/xsec/dsig/DSIGTransformXSL.cpp b/xsec/dsig/DSIGTransformXSL.cpp
index 22d997b..a65f7f8 100644
--- a/xsec/dsig/DSIGTransformXSL.cpp
+++ b/xsec/dsig/DSIGTransformXSL.cpp
@@ -207,12 +207,12 @@ DOMNode * DSIGTransformXSL::setStylesheet(DOMNode * stylesheet) {
 	DOMNode * ret = mp_stylesheetNode;
 
 	if (mp_stylesheetNode) {
-	    if (stylesheet)
-	        mp_txfmNode->insertBefore(stylesheet, mp_stylesheetNode);
+		if (stylesheet)
+			mp_txfmNode->insertBefore(stylesheet, mp_stylesheetNode);
 		mp_txfmNode->removeChild(mp_stylesheetNode);
 	}
 	else if (stylesheet) {
-	    mp_txfmNode->appendChild(stylesheet);
+		mp_txfmNode->appendChild(stylesheet);
 	}
 
 	mp_stylesheetNode = stylesheet;

-- 
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