You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by sc...@apache.org on 2017/09/04 18:14:52 UTC

svn commit: r1807271 - in /santuario/xml-security-cpp/trunk/xsec: canon/XSECC14n20010315.cpp dsig/DSIGReference.cpp dsig/DSIGSignature.cpp dsig/DSIGTransformXSL.cpp

Author: scantor
Date: Mon Sep  4 18:14:52 2017
New Revision: 1807271

URL: http://svn.apache.org/viewvc?rev=1807271&view=rev
Log:
Fix indentation.

Modified:
    santuario/xml-security-cpp/trunk/xsec/canon/XSECC14n20010315.cpp
    santuario/xml-security-cpp/trunk/xsec/dsig/DSIGReference.cpp
    santuario/xml-security-cpp/trunk/xsec/dsig/DSIGSignature.cpp
    santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXSL.cpp

Modified: santuario/xml-security-cpp/trunk/xsec/canon/XSECC14n20010315.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/canon/XSECC14n20010315.cpp?rev=1807271&r1=1807270&r2=1807271&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/canon/XSECC14n20010315.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/canon/XSECC14n20010315.cpp Mon Sep  4 18:14:52 2017
@@ -735,9 +735,9 @@ bool XSECC14n20010315::checkRenderNameSp
 	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?
 

Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGReference.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGReference.cpp?rev=1807271&r1=1807270&r2=1807271&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGReference.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGReference.cpp Mon Sep  4 18:14:52 2017
@@ -1306,10 +1306,10 @@ unsigned int DSIGReference::calculateHas
 
 	}
 
-    // 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

Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGSignature.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGSignature.cpp?rev=1807271&r1=1807270&r2=1807271&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGSignature.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGSignature.cpp Mon Sep  4 18:14:52 2017
@@ -856,9 +856,9 @@ unsigned int DSIGSignature::calculateSig
 	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

Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXSL.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXSL.cpp?rev=1807271&r1=1807270&r2=1807271&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXSL.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGTransformXSL.cpp Mon Sep  4 18:14:52 2017
@@ -197,12 +197,12 @@ DOMNode * DSIGTransformXSL::setStyleshee
 	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;