Commit Graph
20 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 0647a5d16b Remove duplicated files from system.dll (saves about 100kb) 2013-02-25 19:10:09 +01:00
Rodrigo Kumpera 5007c14d62 Kill the MOONLIGHT define in System. 2013-02-11 13:01:11 -05:00
paszczi 7ce10db9e8 Don't wait for client data when authenticating server ssl stream - fix bug 457120 (novell) 2012-06-22 10:12:35 +02:00
Marek Safar 2fe2101b61 Add async methods to SslStream 2011-10-07 10:11:29 +01:00
Marek Safar b7896a8f79 Fix parameter names 2011-10-07 10:11:29 +01:00
Sebastien Pouliot 9c8cb87fe3 In .:
2010-07-21  Sebastien Pouliot  <[email protected]>

	* Makefile: Ensure SECURITY_DEP gets defined in our moonlight
	raw profile

In System.Net:
2010-07-21  Sebastien Pouliot  <[email protected]>

	* ServicePointManager.cs: Add special validation for Moonlight
	* WebConnection.cs: Change a define to NET_2_1

In System.Net.Security:
2010-07-21  Sebastien Pouliot  <[email protected]>

	* LocalCertificateSelectionCallback.cs:
	* SslStream.cs:
		Don't use alias in moonlight build (not needed and breaks
		compilation otherwise)


svn path=/trunk/mcs/; revision=160675
2010-07-21 13:36:35 +00:00
Sebastien Pouliot a392bb4d27 2010-05-10 Sebastien Pouliot <[email protected]>
* SslStream.cs: Allow Moonlight to build the non-server part
	of SslStream
	* RemoteCertificateValidationCallback.cs: Adjust visibility for
	Moonlight build


svn path=/trunk/mcs/; revision=157065
2010-05-10 20:16:50 +00:00
Gonzalo Paniagua Javier 5c20ab97e6 2010-03-01 Gonzalo Paniagua Javier <[email protected]>
* System.Net/WebConnection.cs: attach a validation callback to the new
	event in Mono.Security.
	* System.Net/ServicePointManager.cs: added a new ValidationHelper
	class that takes care of building the certificate chain and perform
	all the check that were done in Mono.Security before. This way the 2.0
	server certificate validation callback can get all the data it needs.
	* System.Net.Security/SslStream.cs: don't do anything if a chain
	element has no error.

	Fixes bug #584050.

svn path=/trunk/mcs/; revision=152654
2010-03-01 09:01:14 +00:00
Sebastien Pouliot 52a76350d1 2009-08-20 Sebastien Pouliot <[email protected]>
* SslStream.cs : Always use/provide a X509Chain even if this 
	duplicates some of the old/existing logic of Mono.Security.
	This makes it possible to provide a callback using 
	ServicePointManager.ServerCertificateValidationCallback


svn path=/trunk/mcs/; revision=140359
2009-08-20 18:26:28 +00:00
Marek Safar e61dde083e Warnings cleanup
svn path=/trunk/mcs/; revision=89678
2007-11-15 14:14:49 +00:00
Atsushi Eno 96c0ccc683 2007-08-24 Atsushi Enomoto <[email protected]>
* SslStream.cs : uh, fixed the build.


svn path=/trunk/mcs/; revision=84803
2007-08-24 12:31:11 +00:00
Atsushi Eno 4134bf5d73 2007-08-24 Atsushi Enomoto <[email protected]>
System.Net.Security:
	* SslStream.cs : implemented, based on Mono.Security.
	* LocalCertificateSelectionCallback.cs : extern alias is needed.

    System(topdir):
	* Makefile : split PREBUILT_DEP from CONFIGURATION_DEP so that the
	  prebuilt System.dll could be referenced for security stuff too.

    Test/tools/mutual:
	* Makefile, ca.pem, client.p12, client.pem, mutual.cs, server.sh,
	  server_cert.pem, server_key.pem, serveropt.sh:
	  ported from Mono.Security
	* README : forwarding.

    Test/tools/server:
	* Makefile, msslserver.cs, mutual.pem : ported from Mono.Security.
	* README : forwarding.



svn path=/trunk/mcs/; revision=84783
2007-08-24 09:42:40 +00:00
Sebastien Pouliot f849158a86 another required fix related to X509Chain via RemoteCertificateValidationCallback
svn path=/trunk/mcs/; revision=59099
2006-04-05 17:47:49 +00:00
Atsushi Eno cf41c798eb 2006-04-05 Atsushi Enomoto <[email protected]>
* System.dll.sources : added SslPolicyErrors.cs.

	* AuthenticationLevel.cs,
	  NegotiateStream.cs,
	  SslStream.cs,
	  LocalCertificateSelectionCallback.cs,
	  RemoteCertificateValidationCallback.cs :
	  Updated all unimplemented things to 2.0 RTM.


svn path=/trunk/mcs/; revision=59054
2006-04-05 08:20:48 +00:00
Miguel de Icaza beba57fc36 corcompare fixes
svn path=/trunk/mcs/; revision=57759
2006-03-10 00:40:46 +00:00
Carlos Alberto Cortez 3d7bc1eeb7 2006-03-07 Carlos Alberto Cortez <[email protected]>
* SslStream.cs, NegotiateStream.cs: Override CanTimeout,
	ReadTimeout and WriteTimeout properties, to avoid warnings.


svn path=/trunk/mcs/; revision=57685
2006-03-08 07:15:05 +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
Tim Coleman 397b0326d8 2004-09-13 Tim Coleman <[email protected]>
* AuthenticatedStream.cs AuthenticationLevel.cs LocalCertSelectionCallback.cs
        * NegotiateStream.cs ProtectionLevel.cs RemoteCertValidationCallback.cs
        * SslStream.cs: New stubs for Fx 2.0

svn path=/trunk/mcs/; revision=33835
2004-09-13 23:55:48 +00:00