[corlib] Improve CancellationTokenSource test
[mono.git] / mcs / class / System.Security / System.Security.Cryptography.Xml / ChangeLog
index 289a65c5f727a79e07cf44ab2aaaad1f057de968..8eb7ab31416f60b414ecabfdf25ce3ed33c406e8 100644 (file)
@@ -1,3 +1,276 @@
+2010-07-09  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SignedXml.cs : avoid using LoadXml() to load xml element as in
+         literal string. Use ImportNode() instead.
+         Copy namespaces for a referenced node found in envelope document too.
+
+2009-07-14  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * SignedXml.cs: Fix HMACOutputLength to match XMLDSIG erratum (ref: 
+       CVE-2009-0217) and add stricter checks.
+
+2009-06-05  Marek Safar  <marek.safar@gmail.com>
+
+       * *.cs: Fixed NET_2_0 conditional to actually handle Mono.Security
+       dependency.
+
+2008-11-01  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * EncryptedXml.cs: Add proper null check inside methods.
+       * SignedXml.cs: GetIdElement returns null if either of its parameter
+       is null.
+       * Transform.cs: Comment compatibility-NRE in GetDigestedOutput.
+       * XmlDecryptionTransform.cs: IsTargetElement returns null if either
+       of its parameter is null.
+       * XmlDsigC14NTransform.cs: Comment compatibility-NRE in 
+       GetDigestedOutput.
+       * XmlDsigExcC14NTransform.cs: Comment compatibility-NRE in 
+       GetDigestedOutput.
+       [Found using Gendarme CheckParametersNullityInVisibleMethodsRule]
+
+2008-10-14  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * XmlDsigBase64Transform.cs: Use constant for Algorithm namespace.
+       * XmlDsigExcC14NTransform.cs: Fixed ctors to use WithComments
+       algorithm if includeComments is true. Assign includeNamespacesPrefixList
+       to instance field.
+       * XmlDsigExcC14NWithCommentsTransform.cs: Remove unnecessary
+       assignment to Algorithm now that base ctor is fixed.
+       * XmlDsigC14NWithCommentsTransform.cs: Remove unnecessary assignment
+       to Algorithm now that base ctor is fixed.
+       * XmlDsigC14NTransform.cs: In default ctor, just invoke .ctor (bool).
+       In .ctor (bool), assign WithComments algorithm if includeComments is
+       true. Use constants for Algorithm namespace.
+       * XmlDsigEnvelopedSignatureTransform.cs: Use constant for Algorithm
+       namespace.
+       * XmlDsigXPathTransform.cs: Use constant for Algorithm namespace.
+       * XmlDsigXsltTransform.cs: Use constant for Algorithm namespace.
+       * XmlLicenseTransform.cs: Assign Algorithm in ctor.
+       * XmlSignature.cs: Added constant for XmlLicenseTransform algorithm.
+
+2008-10-12  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * EncryptedReference.cs, EncryptedType.cs: Remove unneeded field
+       initialization to their default values.
+       [Found using Gendarme AvoidUnneededFieldInitializationRule]
+
+2008-09-17  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * SignedXmlTest.cs: Add support for signing XML using HMACSHA256,
+       HMACSHA384, HMACSHA512 and HMACRIPEMD160.
+       [Fix bug #425724]
+
+2008-08-07  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * set Algorithm in .ctor(bool), fixed bug #398904.
+
+2008-08-06  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * XmlDsigC14NTransform.cs,
+       * XmlDsigExcC14NTransform.cs
+       * XmlDsigXsltTransform.cs: Don't use is + as.
+       [Found using Gendarme AvoidRepetitiveCastsRule]
+
+2008-06-28  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * XmlDecryptionTransform.cs,
+       * XmlDsigC14NTransform.cs,
+       * XmlDsigEnvelopedSignatureTransform.cs,
+       * XmlDsigExcC14NTransform.cs,
+       * XmlDsigXsltTransform.cs: Replace Type.GetType("x") into typeof(x)
+       [Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]
+
+2008-05-25  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * XmlDecryptionTransform.cs,
+       * XmlDsigBase64Transform.cs,
+       * XmlDsigC14NTransform.cs,
+       * XmlDsigEnvelopedSignatureTransform.cs,
+       * XmlDsigExcC14NTransform.cs,
+       * XmlDsigXPathTransform.cs,
+       * XmlDsigXsltTransform.cs,
+       * XmlLicenseTransform.cs: Don't use lock(this). In fact remove locking
+       since the worse that can happen is two copies of the same data.
+       [Found using Gendarme]
+
+2008-01-12  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * ReferenceList.cs: Avoid infinite recursion when setting []. 
+       Found by Gendarme.
+       * XmlDsigXPathTransform.cs: Fix direct comparison with NaN. Found 
+       by Gendarme.
+
+2007-11-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlDsigExcC14NTransform.cs : removed extra [ComVisible].
+
+2007-03-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Transform.cs, XmlDsigC14NTransform.cs, XmlDsigExcC14NTransform.cs :
+         handle PropagatedNamespaces.
+
+2007-02-01  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SignedXml.cs : for internal URI (#blah) resolution, use
+         GetIdElement() so that any derived class which overrides this
+         method could resolve the reference correctly.
+
+2007-01-25  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SignedXml.cs : for DataObject, copy namespaces in Data into Object
+         element itself. I haven't solved the puzzle on why it is needed
+         though.
+
+2007-01-23  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataObject.cs : it should not append created DataObject element to
+         the owner document. It affects on XPath selection, though currently
+         SignedXml.GetReferenceHash() is bogus so I cannot add meaningful
+         tests for it.
+
+2007-01-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SignedInfo.cs : removed incorrect CanonicalizationMethodObject
+         implementation.
+       * EncryptedReference.cs : added exc-c14n support in LoadXml().
+
+2007-01-17  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlDsigExcC14NTransform.cs :
+         re-imported from XmlDsigC14NTransform.cs.
+
+2007-01-12  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SignedXml.cs : when there is an envelope document and no referenced
+         DataObject was found, then look for the target element from the
+         envelope.
+
+2007-01-12  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DataObject.cs : don't clear attributes or children unnecessarily.
+
+2007-01-12  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SignedXml.cs : actually ComputeSignature() itself does not raise
+         silly exception. It always use CryptographicException.
+         Added another check; malformed reference object.
+
+2007-01-12  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SignedXml.cs : ComputeSignature() should check empty key.
+
+2006-10-11  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SignedXml.cs : when SigningMethod does not match the algorithm that
+         the key actually supports, it raises an error.
+
+2006-09-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * EncryptedXml.cs : use Padding member instead of const ISO10126 (though
+         I doubt it should be there). Use it in DecryptData().
+
+2006-09-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * EncryptedXml.cs : implement orthodox padding on encryption.
+
+2006-09-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * EncryptedXml.cs :
+         Handle orthodox padding (xmlenc spec section 5.2). However, like 
+         EncryptedXmlSample1, it might not exist, so make it optional.
+
+2006-09-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * EncryptedXml.cs : True fix for DecryptData(). It indeed uses block size
+         (or possibly IV size) in Transform(), but only for stripping the heading
+         n bytes garbage.
+
+2006-09-20  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SignedXml.cs : overwrite my fix with Gert's patch on #79454 to make it
+         possible to handle multiple certificates.
+
+2006-09-20  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SignedXml.cs : handle KeyInfoX509Data in GetPublicKey(). Fixed #1 of
+         bug #79454.
+
+2006-09-07  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * EncryptedXml.cs : DecryptData() should not pass block size to
+         Transform() as the index.
+
+2006-09-06  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * CipherReference.cs, EncryptedReference.cs : unify duplicate code.
+         Remove incorrect name check in the latter class so that it works
+         for DataReference and KeyReference as well.
+
+2006-05-31  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * KeyInfoClause.cs: Under 2.0 the ctor is protected.
+       * Transform.cs: Under 2.0 the ctor is protected. Enable the use of 
+       XmlSecureResolver when the security manager is active.
+
+2006-01-30  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XmlDsigEnvelopedSignatureTransform.cs :
+         It should not remove nodes in another XmlNodeList while its
+         iterator is in active use. This is exposed by the recent
+         XmlNodeList change.
+
+2005-09-27  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * KeyInfoX509Data.cs: Remove old 2.0 specific check.
+       * XmlDsigXPathTransform.cs: Remove old 2.0 specific check. Return 
+       empty node list of the XmlDocument is null (fixed tests case for 2.0
+       RC).
+
+2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * EncryptionProperties.cs: Added [IndexerName] attribute to rename 
+       "this" from Item to ItemOf. Added missing Item(int) method.
+       * ReferenceList.cs: Added [IndexerName] attribute to rename "this" 
+       from Item to ItemOf.
+
+2005-05-04  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * SignedXml.cs: Return an empty (not null) KeyInfo by default and
+       don't throw a CryptographicException in CheckSignature (both NET_2_0).
+       * KeyInfoRetrievalMethod.cs: Don't include an empty URI attribute
+       in the XML output for NET_2_0.
+       * XmlDsigXPathTransform.cs: Throw an XPathException in NET_2_0 if no
+       xpath expression has been supplied to the transform.
+
+2005-05-03  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * XmlDsigXsltTransform.cs: Fixed 2 test cases (that nows throws 
+       ArgumentNullException) in 2.0.
+
+2005-05-02  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * SignedXml.cs: Throw ArgumentNullException in AddObject and 
+       AddReference methods in 2.0.
+       * XmlDsigC14NTransform.cs: Throw ArgumentException when loading from
+       an unknown type in 2.0 (it was simply ignored in 1.x).
+
+2005-04-26  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * KeyInfoX509Data.cs: Fixed to work biwht unit tests on both NET_1_1 
+       and NET_2_0 (except for obvious beta2 bugs). ArraList are now only 
+       created when required.
+
+2005-04-25  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * EncryptedData.cs: Avoid re-creating collection object on load.
+       * EncryptedKey.cs: Fix compiler warning (unused variables).
+       * EncryptedType.cs: Remove set on EncryptionProperties property.
+       * IRelDecryptor.cs: New. Interface for XrML support.
+       * SymmetricKeyWrap.cs: Comment unused static method Xor(byte[],int).
+       * XmlDecryptionTransform.cs: Fix compiler warning (unused variable).
+       * XmlDsigEnvelopedSignatureTransform.cs: Fix compiler warning.
+       * XmlLicenseTransform.cs: New. Class for XrML support.
+
 2005-04-24  Sebastien Pouliot  <sebastien@ximian.com>
 
        * SignedInfo.cs: Added [ComVisible (false)] to new property.