This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.
With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
* 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.
svn path=/trunk/mcs/; revision=160143
* 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]
svn path=/trunk/mcs/; revision=117622
* XmlDsigEnvelopedTransformTest.cs: Added test for .ctor (bool). Use
Assert class. Improved properties tests.
* XmlDsigC14TransformTest.cs: Added test for .ctor (bool).
* XmlDsigExcC14NTransformTest.cs: Added .ctor tests and added asserts
IncludsiveNamespacesPrefixList
* XmlDsigExcC14NWithCommentsTransformTest.cs: Added basic .ctor and
properties tests.
* XmlDsigC14NWithCommentsTransformTest.cs: Fixed line endings.
* XmlLicenseTransformTest.cs: Added basic .ctor and properties tests.
* 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.
* System.Security_test.dll.sources: Added XmlLicenseTransformTest.cs
and XmlDsigExcC14NWithCommentsTransformTest.cs.
svn path=/trunk/mcs/; revision=115803
* EncryptedReference.cs, EncryptedType.cs: Remove unneeded field
initialization to their default values.
[Found using Gendarme AvoidUnneededFieldInitializationRule]
svn path=/trunk/mcs/; revision=115568
* SignedXmlTest.cs: Add support for signing XML using HMACSHA256,
HMACSHA384, HMACSHA512 and HMACRIPEMD160.
[Fix bug #425724]
svn path=/trunk/mcs/; revision=113344
* 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]
svn path=/trunk/mcs/; revision=104039
* ReferenceList.cs: Avoid infinite recursion when setting [].
Found by Gendarme.
* XmlDsigXPathTransform.cs: Fix direct comparison with NaN. Found
by Gendarme.
svn path=/trunk/mcs/; revision=92756
* XmlCanonicalizer.cs : fill prefixes which should be actually
written. It must be actually done before canonicalization (so
that node list filtering still takes spec-conformant effect).
* Transform.cs, XmlDsigC14NTransform.cs, XmlDsigExcC14NTransform.cs :
handle PropagatedNamespaces.
* XmlDsigC14NTransformTest.cs : added test for xmlns attribute
completion for input nodes, as well as test for
PropagatedNamespaces (ignored so far).
svn path=/trunk/mcs/; revision=74812
* SignedXml.cs : for internal URI (#blah) resolution, use
GetIdElement() so that any derived class which overrides this
method could resolve the reference correctly.
svn path=/trunk/mcs/; revision=72119
* SignedXml.cs : for DataObject, copy namespaces in Data into Object
element itself. I haven't solved the puzzle on why it is needed
though.
* SignedXmlTest.cs : enable SignElementWithPrefixedNamespace().
svn path=/trunk/mcs/; revision=71658
* 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.
* XmlCanonicalizer.cs : in Canonicalize(XmlNodeList), nodes [0] could
be XmlDocument and thus it could cause NullReferenceException.
svn path=/trunk/mcs/; revision=71540
* XmlCanonicalizer.cs : don't output default namespace when the node's
namespace is not empty. Check "visibly utilized" namespace nodes in
exc-c14n. Also, in exc-c14n, rendered namespaces are not written.
Added InclusiveNamespaces PrefixList field (not in use yet).
* XmlDsigExcC14NTransform.cs :
re-imported from XmlDsigC14NTransform.cs.
* System.Security_test.dll.sources : added
XmlDsigExcC14NTransformTest.cs.
* XmlDsigExcC14NTransformTest.cs : new tests, mostly copied from
non-exc test.
* xmldsig.cs : exc-c14n tests could be run under 2.0 profile (and
they are not working correctly yet).
* Makefile : Added net_2_0 profile support.
svn path=/trunk/mcs/; revision=71220
* SignedXml.cs : when there is an envelope document and no referenced
DataObject was found, then look for the target element from the
envelope.
* SignedXmlTest.cs : added DataReferenceToNonDataObject().
* xmldsig.cs : signature-big.xml also depends on the input document.
svn path=/trunk/mcs/; revision=70919
* DataObject.cs : don't clear attributes or children unnecessarily.
* DataObjectTest.cs : test to make sure to not clear attributes or
children unnecessarily.
svn path=/trunk/mcs/; revision=70916
* SignedXml.cs : actually ComputeSignature() itself does not raise
silly exception. It always use CryptographicException.
Added another check; malformed reference object.
* SignedXmlTest.cs : fixed ComputeSignatureNoSigningKey() to not
expect silly exception. Added test for malformed reference.
svn path=/trunk/mcs/; revision=70911
* SignedXml.cs : when SigningMethod does not match the algorithm that
the key actually supports, it raises an error.
* SignedXmlTest.cs : added a test for signature method mismatch.
svn path=/trunk/mcs/; revision=66535
* EncryptedXml.cs : use Padding member instead of const ISO10126 (though
I doubt it should be there). Use it in DecryptData().
* EncryptedXmlTest.cs, EncryptedXmlSample3.xml :
another decryption test for padding sanity.
* Makefile:
Added Test/S.S.C.Xml/EncryptedXmlSample3.xml to EXTRA_DISTFILES.
svn path=/trunk/mcs/; revision=65804
* EncryptedXml.cs :
Handle orthodox padding (xmlenc spec section 5.2). However, like
EncryptedXmlSample1, it might not exist, so make it optional.
* EncryptedXmlTest.cs, EncryptedXmlSample2.xml :
Added another case that expects correct padding processing which is
specified in W3C xmlenc spec section 5.2.
* Makefile:
Added Test/S.S.C.Xml/EncryptedXmlSample2.xml to EXTRA_DISTFILES.
svn path=/trunk/mcs/; revision=65766
* 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.
* EncryptedXmlTest.cs : new file. Added practical example.
* EncryptedXmlSample1.xml, sample.pfx : support files for the above test.
* System.Security_test.dll.sources: added EncryptedXmlTest.cs.
* Makefile: added some extra test support files as EXTRA_DISTFILES.
svn path=/trunk/mcs/; revision=65750
* SignedXml.cs : overwrite my fix with Gert's patch on #79454 to make it
possible to handle multiple certificates.
svn path=/trunk/mcs/; revision=65732
* 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.
* DataReferenceTest.cs : new test.
* System.Security_test.dll.sources: added DataReferenceTest.cs.
svn path=/trunk/mcs/; revision=64990
* 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.
svn path=/trunk/mcs/; revision=61337
* 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.
svn path=/trunk/mcs/; revision=56250
* 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).
svn path=/trunk/mcs/; revision=50855
* 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.
svn path=/trunk/mcs/; revision=44034
* 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).
svn path=/trunk/mcs/; revision=43879
* 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.
svn path=/trunk/mcs/; revision=43596
* SignedInfo.cs: Added [ComVisible (false)] to new property.
* SignedXml.cs: Added [ComVisible (false)] to new properties and
methods.
* ReferenceList.cs: Fixed members signatures for beta2.
* Reference.cs: Added [ComVisible (false)] to new set_TransformChain.
* EncryptedType.cs: Fix compilation with EncryptionPropertyCollection
changes.
* DataObject.cs: Fix compilation warnings.
* EncryptedKey.cs: Fix compilation with ReferenceList and
EncryptionPropertyCollection changes.
* EncryptionProperties.cs: Class has been renamed to
EncryptionPropertyCollection.
* Transform.cs: Added [ComVisible (false)] to new properties and
methods.
* EncryptedXml.cs: Changed XmlEncRSA1_5Url to XmlEncRSA15Url.
* KeyInfoRetrievalMethod.cs: Added [ComVisible (false)] to Type
property.
* KeyInfoX509Data.cs: Added [ComVisible (false)] to AddSubjectKeyId
(string) method and implemented it.
* EncryptedData.cs: Changed EncryptionProperties to new
EncryptionPropertyCollection.
* XmlDsigC14NTransform.cs: Added [ComVisible (false)] to
GetDigestedOutput method and added a basic implementation.
* X509IssuerSerial.cs: IssuerName and SerialNumber are now properties.
svn path=/trunk/mcs/; revision=43514