27 Commits
Author SHA1 Message Date
Alexander Köplinger 01f56e7d4e [System.Security] Switch tests to use embedded test resources 2018-09-27 22:47:05 +02:00
Maxim Lipnin 9139cf5359 Pkcs9SigningTime: normalize exceptions on windows file time < 1601 (#9628) 2018-07-20 20:13:42 +02:00
Maxim Lipnin b5071e868d CoreFX import for Pkcs9SigningTime type (#9236)
as part of #7589
2018-07-16 10:44:30 +02:00
Maxim Lipnin 7c3304b529 CoreFX import for AlgorithmIdentifier type (#9500)
* bump CoreFX

* CoreFX import for AlgorithmIdentifier type

* Update CoreFX submodule

* [csproj] Update project files
2018-07-13 22:46:50 +02:00
Filip Navara 6db2c5a1f8 Import System.Security.Cryptography.Pkcs from CoreFX. (#8994)
* Import System.Security.Cryptography.Pkcs from CoreFX.

* Change 'as' operator to a cast.

* Add missing EnvelopedCms overloads.

* Include CMS signing classes in all builds.

* [csproj] Update project files

* Add missing DSACertificateExtensions class.

* Update references.

* Rename EnvelopedCms.Overloads.cs to EnvelopedCms.cs.

* Enable some of the System.Security.Cryptography.Pkcs xunit tests.

* Update references.

* Bump API snapshot submodule

* Disable xunit tests that may depend on Windows PAL.

Contributes to https://github.com/mono/mono/issues/7589
2018-06-18 09:39:19 +02:00
Marek Safar 62c8557a7a [System.Security] Fixes decoding of CMS/PKCS #7 messages with an explicit cryptographic object identifier 2018-03-06 15:45:59 +01:00
Manuel de la Pena b73480af34 [Tests] Ensure that only a subset of the System.Security tests are ran on mobile platforms.
(cherry picked from commit 9f696f0eab)
2017-11-01 03:18:15 +01:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Sebastien Pouliot 29cbc706f4 Fixed decoding of PKCS/CMS message with detached ContentInfo. Pull request from Pablo Ruiz Garcia <[email protected]> 2011-07-25 09:58:14 -04:00
Robert Jordan d05e8a0a33 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136962
2009-06-26 14:00:28 +00:00
Sebastien Pouliot a484ae2897 2008-11-01 Sebastien Pouliot <[email protected]>
* CmsRecipientCollectionTest.cs: Verify NRE behavior of ctor.


svn path=/trunk/mcs/; revision=117619
2008-11-02 00:18:43 +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 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
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
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 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 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 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
Sebastien Pouliot 3545dd5eff 2004-07-09 Sebastien Pouliot <[email protected]>
* Removed old files (from 1.2 preview).

svn path=/trunk/mcs/; revision=30948
2004-07-09 15:01:26 +00:00
Sebastien Pouliot 1eb2fe23c4 2004-07-09 Sebastien Pouliot <[email protected]>
* AlgorithmIdentifierTest.cs: Fixed for Fx 2.0 beta1.
	* CmsRecipientTest.cs: Replace Pkcs7RecipientTest.cs in Fx 2.0 beta1.
	* CmsSignerTest.cs: Replace Pkcs7SignerTest.cs in Fx 2.0 beta1.
	* ContentInfoTest.cs: Fixed for Fx 2.0 beta1.
	* EnvelopedCmsTest.cs: Replace EnvelopedPkcs7Test.cs in Fx 2.0 beta1.
	* KeyTransRecipientInfoTest.cs: Fixed for Fx 2.0 beta1.
	* Pkcs9AttributeTest.cs: Fixed for Fx 2.0 beta1.
	* Pkcs9DocumentDescriptionTest.cs: Fixed for Fx 2.0 beta1.
	* Pkcs9DocumentNameTest.cs: Fixed for Fx 2.0 beta1.
	* Pkcs9SigningTimeTest.cs: Fixed for Fx 2.0 beta1.
	* SignedCmsTest.cs: Replace SignedPkcs7Test.cs in Fx 2.0 beta1.
	* SignerInfoTest.cs: Fixed for Fx 2.0 beta1.
	* SubjectIdentifierTest.cs: Fixed for Fx 2.0 beta1.

svn path=/trunk/mcs/; revision=30945
2004-07-09 14:59:18 +00:00
Sebastien Pouliot 5b902a4465 2004-07-07 Sebastien Pouliot <[email protected]>
* ContentInfoTest.cs: Adjusted for changes in Mono.Security.

svn path=/trunk/mcs/; revision=30858
2004-07-07 19:58:34 +00:00
Martin Baulig dfedf08d98 2004-04-22 Martin Baulig <[email protected]>
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.

svn path=/trunk/mcs/; revision=25877
2004-04-23 02:24:02 +00:00
Sebastien Pouliot dcb008febc 2003-12-07 Sebastien Pouliot <[email protected]>
* ContentInfoTest.cs: Changed test for GetContentType.
	* EnvelopedPkcs7Test.cs: New. Unit tests for EnvelopedPkcs7
	(encryption).
	* KeyTransRecipientInfoTest.cs: New. Unit tests for
	KeyTransRecipientInfo.
	* Pkcs7RecipientTest.cs: New. Unit tests for Pkcs7Recipient.
	* SignedPkcs7Test.cs: New. Unit tests for SignedPkcs7 (signatures).
	* SignedInfoTest.cs: New. Unit tests for SignedInfo.
	* SubjectIdentifierTest.cs: New. Unit tests for SubjectIdentifier.

svn path=/trunk/mcs/; revision=20844
2003-12-08 01:29:16 +00:00
Sebastien Pouliot 77dc62b785 2003-11-08 Sebastien Pouliot <[email protected]>
* ContentInfoTest.cs: New. (Incomplete) Unit tests for ContentInfo.
	* Pkcs7SignerTest.cs: New. New. Unit tests for Pkcs7Signer.
	* RecipientInfoTest.cs: New. Unit tests for abstract class

svn path=/trunk/mcs/; revision=19743
2003-11-08 23:14:05 +00:00
Sebastien Pouliot 4e2af909fa 2003-11-07 Sebastien Pouliot <[email protected]>
* AlgorithmIdentifierTest.cs: New. Unit tests for AlgorithmIdentifier.
	* CryptographicAttributeTest.cs: New. Unit tests for CryptographicAttribute.
	* Pkcs9AttributeTest.cs: New. Unit tests for Pkcs9Attribute (same as for
	CryptographicAttribute).
	* Pkcs9DocumentDescriptionTest.cs: New. Unit tests for Pkcs9DocumentDescription.
	* Pkcs9DocumentNameTest.cs: New. Unit tests for Pkcs9DocumentName.
	* Pkcs9SigningTimeTest.cs: New. Unit tests for Pkcs9SigningTime.

svn path=/trunk/mcs/; revision=19710
2003-11-07 12:51:36 +00:00