You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by bl...@apache.org on 2004/02/28 23:17:19 UTC

cvs commit: xml-security/c/src/framework XSECProvider.hpp

blautenb    2004/02/28 14:17:19

  Modified:    c/src/dsig DSIGReference.cpp
               c/src/framework XSECProvider.hpp
  Log:
  Bugfix for issue with DOM Level 1 calls reported by Andrew Krajewski (andrew@pdsoftware.com)
  
  Revision  Changes    Path
  1.20      +5 -5      xml-security/c/src/dsig/DSIGReference.cpp
  
  Index: DSIGReference.cpp
  ===================================================================
  RCS file: /home/cvs/xml-security/c/src/dsig/DSIGReference.cpp,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- DSIGReference.cpp	24 Feb 2004 10:32:49 -0000	1.19
  +++ DSIGReference.cpp	28 Feb 2004 22:17:19 -0000	1.20
  @@ -320,13 +320,13 @@
   
   	// Set type
   	if (type != NULL)
  -		ret->setAttribute(MAKE_UNICODE_STRING("Type"),
  +		ret->setAttributeNS(NULL, MAKE_UNICODE_STRING("Type"),
   			MAKE_UNICODE_STRING(type));
   
   	// Set URI
   	if (URI != NULL) {
  -		ret->setAttribute(s_unicodeStrURI, URI);
  -		mp_URI = ret->getAttribute(s_unicodeStrURI); // Used later on as a pointer
  +		ret->setAttributeNS(NULL, s_unicodeStrURI, URI);
  +		mp_URI = ret->getAttributeNS(NULL, s_unicodeStrURI); // Used later on as a pointer
   	}
   	else {
   		// Anonymous reference
  @@ -347,7 +347,7 @@
   
   	}
   
  -	digestMethod->setAttribute(DSIGConstants::s_unicodeStrAlgorithm, str.sbStrToXMLCh());
  +	digestMethod->setAttributeNS(NULL, DSIGConstants::s_unicodeStrAlgorithm, str.sbStrToXMLCh());
   
   	// DigestValue
   
  
  
  
  1.12      +4 -2      xml-security/c/src/framework/XSECProvider.hpp
  
  Index: XSECProvider.hpp
  ===================================================================
  RCS file: /home/cvs/xml-security/c/src/framework/XSECProvider.hpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- XSECProvider.hpp	8 Feb 2004 10:24:24 -0000	1.11
  +++ XSECProvider.hpp	28 Feb 2004 22:17:19 -0000	1.12
  @@ -215,7 +215,9 @@
   
   private:
   
  -
  +	// Copy constructor is disabled
  +	XSECProvider(const XSECProvider &);
  +	XSECProvider * operator = (const XSECProvider &);
   
   	// Internal functions