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 2010/05/14 17:57:32 UTC
svn commit: r944327 - in /xml/security/trunk/c: CHANGELOG.txt
src/dsig/DSIGReference.cpp src/dsig/DSIGReference.hpp
Author: scantor
Date: Fri May 14 15:57:32 2010
New Revision: 944327
URL: http://svn.apache.org/viewvc?rev=944327&view=rev
Log:
https://issues.apache.org/bugzilla/show_bug.cgi?id=49289
Modified:
xml/security/trunk/c/CHANGELOG.txt
xml/security/trunk/c/src/dsig/DSIGReference.cpp
xml/security/trunk/c/src/dsig/DSIGReference.hpp
Modified: xml/security/trunk/c/CHANGELOG.txt
URL: http://svn.apache.org/viewvc/xml/security/trunk/c/CHANGELOG.txt?rev=944327&r1=944326&r2=944327&view=diff
==============================================================================
--- xml/security/trunk/c/CHANGELOG.txt (original)
+++ xml/security/trunk/c/CHANGELOG.txt Fri May 14 15:57:32 2010
@@ -8,6 +8,7 @@ Changes since 1.5.1
* Fix for bug#49260, header guard in XPath transform header (SC)
* Fix for bug#49264, string release crash (SC)
* Fix for bug#44983, improper c14n of XSLT (SC)
+* Fix for bug#49289, setters for Reference Type/Id (SC)
* Expose algorithm URI on Signature and Reference objects (SC)
* White/blacklisting of otherwise registered algorithms (SC)
Modified: xml/security/trunk/c/src/dsig/DSIGReference.cpp
URL: http://svn.apache.org/viewvc/xml/security/trunk/c/src/dsig/DSIGReference.cpp?rev=944327&r1=944326&r2=944327&view=diff
==============================================================================
--- xml/security/trunk/c/src/dsig/DSIGReference.cpp (original)
+++ xml/security/trunk/c/src/dsig/DSIGReference.cpp Fri May 14 15:57:32 2010
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2005 The Apache Software Foundation.
+ * Copyright 2002-2010 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -401,6 +401,29 @@ void DSIGReference::setPreHashTXFM(TXFMB
}
+// setId
+// --------------------------------------------------------------------------------
+
+void DSIGReference::setId(const XMLCh *id) {
+
+ if (mp_referenceNode)
+ ((DOMElement*)mp_referenceNode)->setAttributeNS(NULL, MAKE_UNICODE_STRING("Id"), id);
+
+}
+
+// --------------------------------------------------------------------------------
+// setType
+// --------------------------------------------------------------------------------
+
+void DSIGReference::setType(const XMLCh *type) {
+
+ if (mp_referenceNode)
+ ((DOMElement*)mp_referenceNode)->setAttributeNS(NULL, MAKE_UNICODE_STRING("Type"), type);
+
+}
+
+// --------------------------------------------------------------------------------
+
// --------------------------------------------------------------------------------
// isManifest
// --------------------------------------------------------------------------------
Modified: xml/security/trunk/c/src/dsig/DSIGReference.hpp
URL: http://svn.apache.org/viewvc/xml/security/trunk/c/src/dsig/DSIGReference.hpp?rev=944327&r1=944326&r2=944327&view=diff
==============================================================================
--- xml/security/trunk/c/src/dsig/DSIGReference.hpp (original)
+++ xml/security/trunk/c/src/dsig/DSIGReference.hpp Fri May 14 15:57:32 2010
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2005 The Apache Software Foundation.
+ * Copyright 2002-2010 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -271,7 +271,27 @@ public:
void setPreHashTXFM(TXFMBase * t);
-
+ /**
+ * \brief Set the Id attribute of the DSIGReference
+ *
+ * This method allows applications to set the Id attribute of the DSIGReference
+ * as described in http://www.w3.org/TR/xmldsig-core/#sec-Reference.
+ *
+ *
+ * @param id The value for this reference.
+ */
+ void setId(const XMLCh *id);
+
+ /**
+ * \brief Set the Type attribute of the DSIGReference
+ *
+ * This method allows applications to set the Type attribute of the DSIGReference
+ * as described in http://www.w3.org/TR/xmldsig-core/#sec-Reference.
+ *
+ *
+ * @param type The value for this reference.
+ */
+ void setType(const XMLCh *type);
//@}
/** @name Getting Information */