Commit Graph
24 Commits
Author SHA1 Message Date
Sebastien Pouliot 14846e6f2f Security fix for CVE-2009-0217
svn path=/trunk/mcs/; revision=137886
2009-07-14 18:45:19 +00:00
Robert Jordan fc7def2009 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136968
2009-06-26 15:00:46 +00:00
Sebastien Pouliot 1bad75202f 2008-11-01 Sebastien Pouliot <[email protected]>
* EncryptedXmlTest.cs: Add null check test cases for many methods.
	* SignedXmlTest.cs: New. Check that GetIdElement returns null when
	either parameter is null.
	* TransformTest.cs: New. Check null check behavior.
	* XmlDecryptionTransformTest.cs: New. Check null check behavior.
	* XmlDsigC14NTransformTest.cs: Confirm MS.NET NRE behavior inside
	GetDigestedOutput method.
	* XmlDsigExcC14NTransformTest.cs: Confirm MS.NET NRE behavior inside
	GetDigestedOutput method.


svn path=/trunk/mcs/; revision=117620
2008-11-02 00:21:25 +00:00
Sebastien Pouliot e6fd2f6754 2008-09-17 Sebastien Pouliot <[email protected]>
* SignedXmlTest.cs: Add test cases for HMACSHA[256|384|512] and
	HMACRIPEMD160 which are supported in 2.0. Based on test case from
	Fredrik Olsson on bug #425724.


svn path=/trunk/mcs/; revision=113345
2008-09-17 19:10:48 +00:00
Atsushi Eno b2f49647aa 2007-01-25 Atsushi Enomoto <[email protected]>
* 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
2007-01-25 09:57:57 +00:00
Atsushi Eno f237dd4a61 2007-01-23 Atsushi Enomoto <[email protected]>
* SignedXmlTest.cs : fixed ambiguous variable name in previous tests.


svn path=/trunk/mcs/; revision=71530
2007-01-23 17:45:35 +00:00
Atsushi Eno 34dc209f21 2007-01-23 Atsushi Enomoto <[email protected]>
* XmlCanonicalizer.cs : it should be reset before being reused.

	* SignedXmlTest.cs :
	  run the transformation in yesterday's test twice.


svn path=/trunk/mcs/; revision=71529
2007-01-23 17:40:38 +00:00
Atsushi Eno 6e62bf5a02 2007-01-22 Atsushi Enomoto <[email protected]>
* XmlDsigExcC14NTransformTest.cs, XmlDsigC14NTransformTest.cs,
	  SignedXmlTest.cs : added some more tests which blocks indigo.


svn path=/trunk/mcs/; revision=71462
2007-01-22 20:48:17 +00:00
Atsushi Eno 255664a33f 2007-01-12 Atsushi Enomoto <[email protected]>
* 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
2007-01-12 14:35:05 +00:00
Atsushi Eno 56d4be2982 2007-01-12 Atsushi Enomoto <[email protected]>
* 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
2007-01-12 10:51:17 +00:00
Atsushi Eno 7dba740284 2007-01-12 Atsushi Enomoto <[email protected]>
* SignedXml.cs : ComputeSignature() should check empty key.

	* SignedXmlTest.cs : added ComputeSignatureNoSigningKey().


svn path=/trunk/mcs/; revision=70909
2007-01-12 10:24:09 +00:00
Atsushi Eno 55518449de 2006-11-01 Atsushi Enomoto <[email protected]>
* SignedXmlTest.cs : added Ignore for failing wrong test by design.


svn path=/trunk/mcs/; revision=67193
2006-10-31 21:44:10 +00:00
Atsushi Eno ec958572d6 2006-10-11 Atsushi Enomoto <[email protected]>
* 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
2006-10-10 23:11:22 +00:00
Gert Driesen c2231bcd2c * SignedXmlTest.cs: Added tests for bug #79454 and #79483 (marked NotWorking).
Set eol-style to native.

svn path=/trunk/mcs/; revision=65894
2006-09-25 21:20:53 +00:00
Sebastien Pouliot f748e671c8 2005-05-04 Sebastien Pouliot <[email protected]>
* AssertCrypto.cs: Added method to compare somewhat different but ok 
	XML fragments (when the xmlns for xmldsig is on a different element).
	* KeyInfoTest.cs, KeyInfoRetrievalMethodTest.cs, ReferenceTest.cs,
	SignedInfoTest.cs, SignatureTest.cs, SignedXmlTest.cs, 
	XmlDsigC14NTransformTest.cs, XmlDsigC14NWithCommentsTransformTest.cs,
	XmlDsigXPathTransformTest.cs: Make all tests works under Fx 2.0 beta 2


svn path=/trunk/mcs/; revision=44035
2005-05-04 16:24:37 +00:00
Sebastien Pouliot 916f45692e 2005-05-02 Sebastien Pouliot <[email protected]>
* SignedXmlTest.cs: AddObject and AddReference now throws 
	ArgumentNullException in 2.0.
	* XmlDsigC14NWithCommentsTransformTest.cs: InputType was fixed in 2.0.
	* XmlDsigC14NTransformTest.cs: InputType was fixed in 2.0.
	* XmlDsigXsltTransformTest.cs: Fixed tests for 2.0, InputType, Empty 
	XSLT and invalid XSLT (new exception).


svn path=/trunk/mcs/; revision=43877
2005-05-02 12:51:40 +00:00
Atsushi Eno 4877ba6e10 2004-03-26 Atsushi Enomoto <[email protected]>
* Added XmlDsigEnvelopedSignatureTransformTest.cs.
	* SignedXmlTest.cs : Added some KeyInfo and error handling repro.

svn path=/trunk/mcs/; revision=24639
2004-03-26 16:22:39 +00:00
Sebastien Pouliot ef584c35f0 2004-03-20 Sebastien Pouliot <[email protected]>
* SignedXmlTest.cs: Renamed GetPublicKey to PublicGetPublicKey to
	remove warning.

svn path=/trunk/mcs/; revision=24382
2004-03-21 01:05:21 +00:00
Sebastien Pouliot f8fed6fdc5 2004-03-19 Sebastien Pouliot <[email protected]>
* SignedXmlTest.cs: Completed unit tests as many methods were not
	tested at all previously.

svn path=/trunk/mcs/; revision=24327
2004-03-19 13:36:13 +00:00
Sebastien Pouliot 35680d9c60 2004-03-15 Sebastien Pouliot <[email protected]>
* SignedXml.cs: Added null test for LoadXml.

svn path=/trunk/mcs/; revision=24070
2004-03-15 21:19:18 +00:00
Sebastien Pouliot 4143288d58 2003-12-14 Sebastien Pouliot <[email protected]>
* SignedXmlTest.cs: Added a new unit test to verify both bugs (no
	key assigned on verification and GetElementId) found when fixing
	#52084.

svn path=/trunk/mcs/; revision=21125
2003-12-14 20:16:25 +00:00
Martin Willemoes Hansen e852991b2c * Tests inherits from Assertion and Assertion. prefix is removed
svn path=/trunk/mcs/; revision=14556
2003-05-13 20:23:05 +00:00
Sebastien Pouliot e357665885 2003-02-19 Sebastien Pouliot <[email protected]>
* All: Updated tests for NUnit2. Some big tests where splited in
	smaller ones.
	* XmlDsigC14NTransformTest.cs: New, but almost empty, test suite.
	* XmlDsigC14NWithCommentsTransformTest.cs: New, but almost empty,
	test suite.

svn path=/trunk/mcs/; revision=11751
2003-02-20 00:55:52 +00:00
Sebastien Pouliot 7f1f71f141 2002-11-20 Sebastien Pouliot <[email protected]>
* AllTests.cs: New. Added suites for very listed files.
	* DataObjectTest.cs: New. Test suite for DataObject.
	* DSAKeyValueTest.cs: New. Test suite for DSAKeyValue.
	* KeyInfoNameTest.cs: New. Test suite for KeyInfoName.
	* KeyInfoNodeTest.cs: New. Test suite for KeyInfoNode.
	* KeyInfoRetrievalMethodTest.cs: New. Test suite for DSAKeyValue.
	* KeyInfoTest.cs: New. Test suite for KeyInfo.
	* KeyInfoX509DataTest.cs: New. Test suite for KeyInfoX509Data.
	* ReferenceTest.cs: New. Incomplete test suite for Reference.
	* RSAKeyValueTest.cs: New. Test suite for RSAKeyValue.
	* SignatureTest.cs: New. Partial test suite for Signature.
	* SignedInfoTest.cs: New. Partial test suite for SignedInfo.
	* SignedXmlTest.cs: New. Partial test suite for SignedXml.
	* TransformChainTest.cs: New. Test suite for TransformChain.
	* XmlDsigBase64TransformTest.cs: New. Partial test suite for
	XmlDsigBase64Transform
	* XmlDsigXsltTransformTest.cs: New. Partial test suite for
	XmlDsigXsltTransform.

svn path=/trunk/mcs/; revision=9125
2002-11-21 02:30:39 +00:00