Commit Graph
112 Commits
Author SHA1 Message Date
Atsushi Eno bacad2cd34 2007-03-22 Atsushi Enomoto <[email protected]>
* 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
2007-03-22 15:29:11 +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 a0c14ae0ea 2007-01-17 Atsushi Enomoto <[email protected]>
* 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
2007-01-17 17:30:12 +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 c74b0f26b9 2007-01-12 Atsushi Enomoto <[email protected]>
* 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
2007-01-12 12:22:39 +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
Sebastien Pouliot d028b96e90 2006-12-15 Sebastien Pouliot <[email protected]>
* PkitsTest.cs: New. Common test code to use the PKITS test data.
	* Pkits_4_01_SignatureVerification.cs: New. Test signature on S/MIME
	using the PKITS test data (if available).


svn path=/trunk/mcs/; revision=69541
2006-12-15 19:27:50 +00:00
Sebastien Pouliot b38770bbb7 2006-11-08 Sebastien Pouliot <[email protected]>
* X509Certificate2UICas.cs: New (2.0) CAS tests for X509Certificate2UI
	* X509Certificate2UITest.cs: New (2.0) unit tests for 
	X509Certificate2UI


svn path=/trunk/mcs/; revision=67534
2006-11-08 14:51:41 +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
Atsushi Eno 24da8a2f2a 2006-09-22 Atsushi Enomoto <[email protected]>
* 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
2006-09-22 04:32:02 +00:00
Atsushi Eno 614d7f4d2f 2006-09-21 Atsushi Enomoto <[email protected]>
* EncryptedXml.cs : implement orthodox padding on encryption.

	* EncryptedXmlTest.cs : added roundtrip sample i.e. encryption test.


svn path=/trunk/mcs/; revision=65800
2006-09-22 01:16:12 +00:00
Atsushi Eno 8d2ce38aae 2006-09-21 Atsushi Enomoto <[email protected]>
* 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
2006-09-21 14:10:41 +00:00
Atsushi Eno 323f2b939c 2006-09-21 Atsushi Enomoto <[email protected]>
* EncryptedXmlTest.cs :
	  removed problematic culture change (was for debugging).


svn path=/trunk/mcs/; revision=65760
2006-09-21 12:50:51 +00:00
Atsushi Eno eb9e570294 2006-09-21 Atsushi Enomoto <[email protected]>
* 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
2006-09-21 07:25:48 +00:00
Atsushi Eno 690296b936 2006-09-06 Atsushi Enomoto <[email protected]>
* 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
2006-09-06 10:30:58 +00:00
Kornél Pál 546a1134d2 Converted source files to UTF-8 (without byte order mark). Use UTF-8 as the default encoding for compilers.
svn path=/trunk/mcs/; revision=64941
2006-09-05 13:54:12 +00:00
Sebastien Pouliot e6e724d234 2005-10-20 Sebastien Pouliot <[email protected]>
* CryptographicAttributeObjectCas.cs: New. CAS unit tests.
	* CryptographicAttributeObjectEnumeratorCas.cs: New. CAS unit tests.
	* CryptographicAttributeObjectEnumeratorTest.cs: New. Unit tests.
	* CryptographicAttributeObjectCollectionCas.cs: New. CAS unit tests.
	* CryptographicAttributeObjectCollectionTest.cs: New. Unit tests.
	* ProtectedDataCas.cs: New. CAS unit tests.
	* ProtectedDataTest.cs: Reworked/complete unit tests.
	* ProtectedMemoryCas.cs: New. CAS unit tests.
	* ProtectedMemoryTest.cs: Reworked/complete unit tests.


svn path=/trunk/mcs/; revision=51996
2005-10-20 18:40:44 +00:00
Sebastien Pouliot 4a5e773af8 2005-09-27 Sebastien Pouliot <[email protected]>
* KeyInfoX509DataTest.cs: Fixed tests case for 2.0 RC.
	* XmlDsigXPathTransformTest.cs: Fixed tests case for 2.0 RC.


svn path=/trunk/mcs/; revision=50853
2005-09-27 13:17:17 +00:00
Sebastien Pouliot 4acdcc9d57 2005-09-27 Sebastien Pouliot <[email protected]>
* Pkcs9AttributeTest.cs: Added new tests case for new overriden 
	CopyFrom (added in 2.0 RC).
	* Pkcs9ContentTypeTest.cs: Fixed tests case for 2.0 RC.
	* Pkcs9MessageDigestTest.cs: Fixed tests case for 2.0 RC.


svn path=/trunk/mcs/; revision=50852
2005-09-27 13:15:58 +00:00
Sebastien Pouliot 6a080fe2bd In Test/System.Security.Cryptography:
2005-09-26  Sebastien Pouliot  <[email protected]>

	* Asn*.cs, Oid*.cs: Moved to System.dll

In Test/System.Security.Permissions:
2005-09-26  Sebastien Pouliot  <[email protected]>

	* StorePermissionAttributeTest.cs: Moved in System.dll

In Test/System.Security.Cryptography.X509Certificates:
2005-09-26  Sebastien Pouliot  <[email protected]>
	* All tests moved to System.dll assembly.
In System.Security.Cryptography:
2005-09-26  Sebastien Pouliot  <[email protected]>
	* Asn*.cs, Oid*.cs: Moved to System.dll
In System.Security.Permissions:
2005-09-26  Sebastien Pouliot  <[email protected]>

	* Store*.cs: Moved in System.dll

In .:
2005-09-26  Sebastien Pouliot  <[email protected]>

	* System.Security.dll.sources: Remove all X509 related classes.
	* System.Security_test.dll.sources: Remove all X509 related tests.
	* System.Security.Cryptography.X509Certificates/*.cs: moved to 
	System.dll assembly.
	* Test/System.Security.Cryptography.X509Certificates/*.cs: moved to
	System.dll assembly.

In System.Security.Cryptography.X509Certificates:
2005-09-26  Sebastien Pouliot  <[email protected]>
	* All classes moved in System.dll

svn path=/trunk/mcs/; revision=50770
2005-09-26 14:08:58 +00:00
Sebastien Pouliot b4f2db4e27 2005-09-22 Sebastien Pouliot <[email protected]>
* DataProtectionPermissionAttributeTest.cs: Removed *Choice security 
	actions.
	* StorePermissionAttributeTest.cs: Removed *Choice security actions.


svn path=/trunk/mcs/; revision=50477
2005-09-22 13:31:21 +00:00
Ben Maurer 4847293c9c more executable bits
svn path=/trunk/mcs/; revision=46569
2005-06-27 16:09:53 +00:00
Ben Maurer b27c8e1534 remove .cvsignore from everywhere, as it is useless on svn
svn path=/trunk/mcs/; revision=46564
2005-06-27 15:55:58 +00:00
Ben Maurer a68aa2eda4 remove executable bit from changelogs
svn path=/trunk/mcs/; revision=46563
2005-06-27 15:53:16 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Atsushi Eno d7abc587fa 2005-05-31 Atsushi Enomoto <[email protected]>
* XmlDsigC14NWithCommentsTransformTest.cs : added File.Delete()
	  sanity check on CleanUp().


svn path=/trunk/mcs/; revision=45261
2005-05-31 13:08:00 +00:00
Sebastien Pouliot 11d064b456 2005-05-18 Sebastien Pouliot <[email protected]>
* DataProtectionPermissionAttributeTest.cs: Added tests to check for
	individual removal of flags.
	* StorePermissionAttributeTest.cs: New. Unit tests for 
	StorePermissionAttribute.


svn path=/trunk/mcs/; revision=44672
2005-05-18 11:56:05 +00:00
Sebastien Pouliot 0340e068cd 2005-05-05 Sebastien Pouliot <[email protected]>
* ReferenceTest.cs: Changed AddAllTransforms from Ignored to category
	NotDotNet as the test seems to fail only under NUnit.


svn path=/trunk/mcs/; revision=44077
2005-05-05 11:47:01 +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 f5de5679b1 2005-05-03 Sebastien Pouliot <[email protected]>
* ContentInfoTest.cs: Addd test cases for data, envelopedData and 
	other "bad" cases.
	* EnvelopedCmsTest.cs: Added [Category ("NotWorking")] to tests for 
	which Mono isn't complete enough to execute.
	* KeyTransRecipientInfoTest.cs: Added test for EncryptedKey (reference 
	not copy).
	* Pkcs9ContentTypeTest.cs: Removed FIXME (fixed in beta2). Added 
	CopyFrom tests.
	* Pkcs9DocumentDescriptionTest.cs: Removed FIXME (fixed in beta2).
	* Pkcs9MessageDigestTest.cs: Added CopyFrom tests.
	* SignerInfoCollectionTest.cs: New. Tests for SignerInfoCollection.
	* SignerInfoTest.cs: Mark some method/data internal so they can be 
	reused for other tests.


svn path=/trunk/mcs/; revision=43962
2005-05-03 17:49:30 +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
Sebastien Pouliot 7f18e0d4e1 2005-04-28 Sebastien Pouliot <[email protected]>
* XmlDsigXPathTransformTest.cs: Marked FunctionHereObsolete (ignored)
	and LoadInputAsXmlNodeList (failure) as [Category("NotWorking")] as 
	they both pass under MS 1.x runtime (for bad and/or good reasons).


svn path=/trunk/mcs/; revision=43740
2005-04-28 19:32:28 +00:00
Sebastien Pouliot 30598dc4b5 2005-04-27 Sebastien Pouliot <[email protected]>
* ProtectedDataTest.cs: Updated to NUnit 2.2 API to use Ignore it the 
	platform doesn't support ProtectedData.
	* ProtectedMemoryTest.cs: Updated to NUnit 2.2 API to use Ignore it 
	the platform doesn't support ProtectedData.


svn path=/trunk/mcs/; revision=43653
2005-04-27 14:15:06 +00:00
Sebastien Pouliot d4d3a94fa4 2005-04-26 Sebastien Pouliot <[email protected]>
* AlgorithmIdentifierTest.cs: Complete some test cases. Updated to 
	NUnit 2.2 API.
	* SignedCmsTest.cs: Added [Ignore] to 3 tests that now also fails
	on beta2.


svn path=/trunk/mcs/; revision=43616
2005-04-26 18:54:47 +00:00
Sebastien Pouliot 191190f19f 2005-04-26 Sebastien Pouliot <[email protected]>
* KeyInfoX509DataTest.cs: Added new unit tests for NET_1_1 and updated
	tests to work on NET_2_0.


svn path=/trunk/mcs/; revision=43597
2005-04-26 14:32:54 +00:00
Raja R Harinath 5319634c9b * Makefile (centum_tests): Add Mono.Security and
System.Runtime.Remoting.
* */Makefile: Replace $(RUNTIME) with $(RUNTIME) $(RUNTIME_FLAGS).
* build/config-default.make (RUNTIME): Set to 'false'.
Reported by Ben Maurer.
* build/profiles/basic.make (MCS): Revert changes below.
* build/platforms/linux.make (ILDISASM): Define.
* build/platforms/win32.make (ILDIsASM): Likewise.
* class/Microsoft.VisualBasic/fixup/Makefile (ILDISASM): Remove.
($(the_il)): Create temporary files in profile directory.

svn path=/trunk/mcs/; revision=43545
2005-04-25 13:42:51 +00:00
Sebastien Pouliot 44c8858ab2 2005-04-23 Sebastien Pouliot <[email protected]>
* CmsRecipientTest.cs, CmsSignerTest.cs, EnvelopedCmsTest.cs,
	Pkcs9AttributeTest.cs, Pkcs9DocumentDescriptionTest.cs, 
	Pkcs9DocumentNameTest.cs, Pkcs9SigningTimeTest.cs, SignedCmsTest.cs:
	Adapted for class name changes in beta2 and re-activated some tests on
	Windows that were fixed in beta2.


svn path=/trunk/mcs/; revision=43483
2005-04-23 14:22:03 +00:00
Sebastien Pouliot f2f370829e 2005-04-23 Sebastien Pouliot <[email protected]>
* X509BasicConstraintsExtensionTest.cs, X509ChainPolicyTest.cs,
	X509EnhancedKeyUsageExtensionTest.cs, X509ExtensionTest.cs,
	X509KeyUsageExtensionTest.cs, X509StoreTest.cs, 
	X509SubjectKeyIdentifierExtensionTest.cs: Changed X509CertificateEx to
	X509Certificate2 and re-activated some tests on Windows that were 
	fixed in beta2.


svn path=/trunk/mcs/; revision=43481
2005-04-23 14:15:49 +00:00
Sebastien Pouliot d71fc598bf 2005-04-23 Sebastien Pouliot <[email protected]>
* CryptographicAttributeTest.cs: Changed class names to match beta2.


svn path=/trunk/mcs/; revision=43479
2005-04-23 14:06:56 +00:00
Atsushi Eno b321edc78e 2005-04-04 Atsushi Enomoto <[email protected]>
* System.Security.dll.sources: added XmlSignatureStreamReader.cs.

	* XmlSignatureStreamReader.cs : new file. Handles Stream to rip CR off.
	* XmlDsigXPathTransform.cs,
	  XmlDecryptionTransform.cs,
	  XmlDsigC14NTransform.cs,
	  XmlDsigEnvelopedSignatureTransform.cs,
	  XmlDsigXsltTransform.cs : use XmlSignatureStreamReader for Streams.

	* XmlCanonicalizer.cs : don't rip &#xD; off here.

	* XmlDsigC14NTransformTest.cs :
	  Reverted last change in LoadInputAsXmlNodeList2(). It is MS bug.
	  It now handles Load() behavioral difference between Stream and
	  XmlDocument as expected.

	* Makefile : Fixed reference to Mono.Security.dll. Added decent-reader
	  option that indicates to use CR ('\r') stripping TextReader.
	* xmldsig.cs : use CR-stripping TextReader (optionally).


svn path=/trunk/mcs/; revision=42525
2005-04-04 14:39:38 +00:00
Nick Drochak e6886b1b44 2005-02-27 Nick Drochak <[email protected]>
* XmlDsigXsltTransformTest.cs:
	* XmlDsigC14NTransformTest.cs: Make tests pass on MS.NET 1.1.

svn path=/trunk/mcs/; revision=41255
2005-02-27 11:49:55 +00:00
Sebastien Pouliot f599a3bbf1 2005-01-20 Sebastien Pouliot <[email protected]>
* AsnEncodedDataTest.cs: Added test case for SubjectAltName extension.


svn path=/trunk/mcs/; revision=39295
2005-01-21 00:37:54 +00:00
Sebastien Pouliot 9093835115 2005-01-17 Sebastien Pouliot <[email protected]>
* X509BasicConstraintsExtensionTest.cs: New. Unit tests.
	* X509EnhancedKeyUsageExtensionTest.cs: New. Unit tests.
	* X509ExtensionTest.cs: New. Unit tests.
	* X509KeyUsageExtensionTest.cs: New. Unit tests.
	* X509SubjectKeyIdentifierExtensionTest.cs: New. Unit tests.


svn path=/trunk/mcs/; revision=39050
2005-01-17 21:07:02 +00:00
Sebastien Pouliot ab79cc5307 2005-01-17 Sebastien Pouliot <[email protected]>
* Pkcs9ContentTypeTest.cs: New. Unit tests for ContentType attribute.
	* Pkcs9DocumentDescriptionTest.cs: Added tests for Format(bool).
	* Pkcs9DocumentNameTest.cs: Added tests for Format(bool).
	* Pkcs9MessageDigestTest.cs: New. Unit tests for MessageDigest attr.
	* Pkcs9SigningTimeTest.cs: Added tests for Format(bool) and tests to
	check valid dates - limited to [1950,2049].


svn path=/trunk/mcs/; revision=39049
2005-01-17 21:00:12 +00:00