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 2012/06/14 00:31:37 UTC

svn commit: r1350044 - in /santuario/xml-security-cpp/trunk/xsec/utils: XSECDOMUtils.cpp XSECDOMUtils.hpp

Author: scantor
Date: Wed Jun 13 22:31:37 2012
New Revision: 1350044

URL: http://svn.apache.org/viewvc?rev=1350044&view=rev
Log:
Add XML Enc 1.1 namespace.

Modified:
    santuario/xml-security-cpp/trunk/xsec/utils/XSECDOMUtils.cpp
    santuario/xml-security-cpp/trunk/xsec/utils/XSECDOMUtils.hpp

Modified: santuario/xml-security-cpp/trunk/xsec/utils/XSECDOMUtils.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/utils/XSECDOMUtils.cpp?rev=1350044&r1=1350043&r2=1350044&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/utils/XSECDOMUtils.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/utils/XSECDOMUtils.cpp Wed Jun 13 22:31:37 2012
@@ -88,7 +88,7 @@ const XMLCh * getXPFLocalName(const DOMN
 
 }
 
-const XMLCh DSIG_EXPORT * getXENCLocalName(const DOMNode *node) {
+const XMLCh * getXENCLocalName(const DOMNode *node) {
 
 	// XML Encryption namespace node
 
@@ -99,7 +99,18 @@ const XMLCh DSIG_EXPORT * getXENCLocalNa
 
 }
 
-const XMLCh DSIG_EXPORT * getXKMSLocalName(const DOMNode *node) {
+const XMLCh * getXENC11LocalName(const DOMNode *node) {
+
+	// XML Encryption 1.1 namespace node
+
+	if (!strEquals(node->getNamespaceURI(), DSIGConstants::s_unicodeStrURIXENC11))
+		return NULL;
+	else
+		return node->getLocalName();
+
+}
+
+const XMLCh * getXKMSLocalName(const DOMNode *node) {
 
 	// XKMS namespace node
 

Modified: santuario/xml-security-cpp/trunk/xsec/utils/XSECDOMUtils.hpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/utils/XSECDOMUtils.hpp?rev=1350044&r1=1350043&r2=1350044&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/utils/XSECDOMUtils.hpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/utils/XSECDOMUtils.hpp Wed Jun 13 22:31:37 2012
@@ -76,6 +76,7 @@ const XMLCh DSIG_EXPORT * getDSIG11Local
 const XMLCh DSIG_EXPORT * getECLocalName(const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node);
 const XMLCh DSIG_EXPORT * getXPFLocalName(const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node);
 const XMLCh DSIG_EXPORT * getXENCLocalName(const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node);
+const XMLCh DSIG_EXPORT * getXENC11LocalName(const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node);
 const XMLCh DSIG_EXPORT * getXKMSLocalName(const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node);
 
 // --------------------------------------------------------------------------------