Commit Graph
8 Commits
Author SHA1 Message Date
Marek Habersack 34fb07d05f Include support for SSL/TLS right in System when building for the MONODROID profile
This patch builds upon commit 96a8500795 which placed parts of Mono.Security
responsible for dealing with SSL/TLS certificates for the purpose of certificate verification. The code enables
validation of the certifcates even if the user does not provide their own validation callback. The changes as related to
the original commit are few, basically consisting of enabling the same code used by MonoTouch in the MonoDroid context with
the only actual code change being the certificate validation bit mentioned above.

Since the change involves adding a subset of Mono.Security files to the monodroid version of System.dll, it is
also necessary to remove Mono.Android's dependence on Mono.Security.dll. The reason is that the code in AndroidPlatform
which looks up TLS support methods in Mono.Android.dll would use a type (X509CertificateCollection) that is now part of
System.dll but is *also* in Mono.Security.dll referenced by Mono.Android.dll and therefore the lookup would fail since
we'd have two distinct types from the reflection point of view.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=18962
2014-04-25 21:39:53 +02:00
Sebastien Pouliot 96a8500795 Allow the MONOTOUCH targetr to build its SSL/TLS support right inside System.dll and remove code duplication and non-required code paths. 2013-07-01 16:21:04 -04:00
Marek Safar 3b058f0680 Redirect more duplicate security types to Mono.Security 2013-04-05 11:15:25 +02:00
Rodrigo Kumpera 5007c14d62 Kill the MOONLIGHT define in System. 2013-02-11 13:01:11 -05:00
Sebastien Pouliot 4bf912a74b 2010-05-10 Sebastien Pouliot <[email protected]>
* AsnEncodedData.cs:
	* OidCollection.cs:
	* Oid.cs:
	* OidEnumerator.cs:
		Allow parts required to enable SSL to be builtt with
		the moonlight profile.


svn path=/trunk/mcs/; revision=157063
2010-05-10 20:10:33 +00:00
Sebastien Pouliot 02f1b2cc94 2005-11-22 Sebastien Pouliot <[email protected]>
* AsnEncodedData.cs: Create a new Oid instance _only_ if the supplied
	Oid isn't null.


svn path=/trunk/mcs/; revision=53353
2005-11-22 18:43:09 +00:00
Sebastien Pouliot cb0aff392f Don't include those classes on the initial compilation as Mono.Security.dll isn't yet available.
svn path=/trunk/mcs/; revision=50775
2005-09-26 15:05:49 +00:00
Sebastien Pouliot 14f12a8261 2005-09-26 Sebastien Pouliot <[email protected]>
* Asn*.cs, Oid*.cs: Moved from System.Security.dll

2005-05-03  Sebastien Pouliot  <[email protected]>

	* AsnEncodedData.cs: Allow CopyFrom to work even without an OID.

2005-04-25  Sebastien Pouliot  <[email protected]>

	* AsnEncodedData.cs: Fix compiler warning (unused variable).

2005-01-20  Sebastien Pouliot  <[email protected]>

	* AsnEncodedData.cs: Added "internal" support for SubjectAltName 
	extension as it is required for SSL support.
	* Oid.cs: Added Oid / FriendlyName definitions for SubjectAltName.

2005-01-17  Sebastien Pouliot  <[email protected]>

	* AsnEncodedData.cs: Added more decoding/formatting code as this class
	is far more intelligent (or bloated) than anticipated.
	* Oid.cs: Added more Oid / FriendlyName definitions required for the
	X.509 extensions and some more for some failing unit tests.
	* OidCollection.cs: Added support to make the collection read-only.

2005-01-13  Sebastien Pouliot  <[email protected]>

	* AsnEncodedData.cs: Completed/fixed implementation.
	* Oid.cs: Fixed implementation with updated unit tests.

2004-07-08  Sebastien Pouliot  <[email protected]>

	* AsnEncodedData.cs: Fixes for Fx 2.0 beta 1 compatibility. Added
	MonoTODO to missing functionalities.
	* AsnEncodedDataCollection.cs: New. 
	* AsnEncodedDataEnumerator.cs: New.

2003-11-06  Sebastien Pouliot  <[email protected]>

	* AsnEncodedData.cs: New. Class to encapsulate ASN.1 data (.NET 1.2).
	* Oid.cs: New. Class to encapsulate OIDs (.NET 1.2).
	* OidCollection.cs: New. ICollection based class for OIDs (.NET 1.2).
	* OidEnumerator.cs: New. IEnumerator based class for OIDs (.NET 1.2).

svn path=/trunk/mcs/; revision=50766
2005-09-26 14:05:09 +00:00