Imported Upstream version 4.6.0.125

Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-08-03 10:59:49 +00:00
parent a569aebcfd
commit e79aa3c0ed
17047 changed files with 3137615 additions and 392334 deletions

View File

@@ -0,0 +1,7 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo ("monotouch, PublicKey=0024000004800000940000000602000000240000525341310004000011000000438ac2a5acfbf16cbd2b2b47a62762f273df9cb2795ceccdf77d10bf508e69e7a362ea7a45455bbf3ac955e1f2e2814f144e5d817efc4c6502cc012df310783348304e3ae38573c6d658c234025821fda87a0be8a0d504df564e2c93b2b878925f42503e9d54dfef9f9586d9e6f38a305769587b1de01f6c0410328b2c9733db")]
[assembly: InternalsVisibleTo ("Xamarin.iOS, PublicKey=0024000004800000940000000602000000240000525341310004000011000000438ac2a5acfbf16cbd2b2b47a62762f273df9cb2795ceccdf77d10bf508e69e7a362ea7a45455bbf3ac955e1f2e2814f144e5d817efc4c6502cc012df310783348304e3ae38573c6d658c234025821fda87a0be8a0d504df564e2c93b2b878925f42503e9d54dfef9f9586d9e6f38a305769587b1de01f6c0410328b2c9733db")]
[assembly: InternalsVisibleTo ("Xamarin.Mac, PublicKey=0024000004800000940000000602000000240000525341310004000011000000438ac2a5acfbf16cbd2b2b47a62762f273df9cb2795ceccdf77d10bf508e69e7a362ea7a45455bbf3ac955e1f2e2814f144e5d817efc4c6502cc012df310783348304e3ae38573c6d658c234025821fda87a0be8a0d504df564e2c93b2b878925f42503e9d54dfef9f9586d9e6f38a305769587b1de01f6c0410328b2c9733db")]
[assembly: InternalsVisibleTo ("Xamarin.WatchOS, PublicKey=0024000004800000940000000602000000240000525341310004000011000000438ac2a5acfbf16cbd2b2b47a62762f273df9cb2795ceccdf77d10bf508e69e7a362ea7a45455bbf3ac955e1f2e2814f144e5d817efc4c6502cc012df310783348304e3ae38573c6d658c234025821fda87a0be8a0d504df564e2c93b2b878925f42503e9d54dfef9f9586d9e6f38a305769587b1de01f6c0410328b2c9733db")]
[assembly: InternalsVisibleTo ("Xamarin.TVOS, PublicKey=0024000004800000940000000602000000240000525341310004000011000000438ac2a5acfbf16cbd2b2b47a62762f273df9cb2795ceccdf77d10bf508e69e7a362ea7a45455bbf3ac955e1f2e2814f144e5d817efc4c6502cc012df310783348304e3ae38573c6d658c234025821fda87a0be8a0d504df564e2c93b2b878925f42503e9d54dfef9f9586d9e6f38a305769587b1de01f6c0410328b2c9733db")]

View File

@@ -1,102 +0,0 @@
2010-07-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
* AssemblyInfo.cs: Re-remove [StringFreezing], [DefaultDependency] and
[InternalsVisibleTo] from NET_2_1 builds.
2009-11-30 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyInfo.cs: Remove [StringFreezing] and [DefaultDependency]
from NET_2_1 builds
2009-11-03 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyInfo.cs: Open up the internals to System.Net.dll (which
needs Uri.IsDefaultPort) for NET_2_1 and remove it for
System.ComponentModel.DataAnnotations (again for NET_2_1)
2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyInfo.cs: Remove ComCompatibleVersion and
AllowPartiallyTrustedCallers for NET_2_1
2009-06-23 Marek Habersack <mhabersack@novell.com>
* AssemblyInfo.cs: added InternalsVisibleTo for
System.ComponentModel.DataAnnotations (needs
ReflectionPropertyDescriptor)
2009-04-23 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyInfo.cs: Remove InternalsVisibleTo on Mono.Moonlight
since it does not exists anymore
2008-05-07 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyInfo.cs: Change InternalsVisibleTo on Mono.Moonlight to
a key we control.
2008-04-15 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* AssemblyInfo.cs: Added missing Attributes
2008-04-13 Jb Evain <jbevain@novell.com>
* AssemblyInfo.cs: rename agmono to Mono.Moonlight
as a friend assembly for the 2.1 profile.
Merged from the Moonlight 2 branch.
2007-08-11 Jb Evain <jbevain@novell.com>
* AssemblyInfo.cs: add agmono as a friend assembly
2005-10-17 Sebastien Pouliot <sebastien@ximian.com>
* Assembly.cs: Add a RequestMinimum security permission for
SkipVerification.
2005-04-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Consts.cs: added constants for Mono.Http.dll
2004-09-21 Raja R Harinath <rharinath@novell.com>
* AssemblyInfo.cs (AssemblyVersion): Define to 2.0.x when
BOOTSTRAP_NET_2_0 is defined.
2004-05-07 Raja R Harinath <rharinath@novell.com>
* AssemblyInfo.cs (AssemblyDelaySign, AssemblyKeyFile): Disable
for BOOTSTRAP_WITH_OLDLIB. Mono 0.31 runtime crashes with them.
2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
* Consts.cs: Added consts for NET_2_0.
2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
* Consts.cs: Added consts for Mono.Posix and Mono.Security.
2003-11-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* AssemblyInfo.cs: Added missing attribute
2003-07-18 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* Locale.cs: Added
2003-07-17 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* Consts.cs: Added
2003-07-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* AssemblyInfo.cs: Added additional .Net 1.1 attributes
2003-07-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* AssemblyInfo.cs: Added support for .Net 1.0 build
2003-07-10 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* AssemblyInfo.cs: Added
* ChangeLog: Added

File diff suppressed because it is too large Load Diff

View File

@@ -19,7 +19,9 @@ TEST_RESOURCES = \
Test/System/test-uri-props-manual.txt \
Test/System/test-uri-relative-props.txt
TEST_MCS_FLAGS = -r:System.Drawing.dll -r:Mono.Security.dll -r:System.Data -r:System.Xml.dll -r:System.Core.dll -nowarn:618,672,219,67,169,612 \
TEST_LIB_REFS = System.Drawing Mono.Security System.Data System.Xml System.Core System.Configuration
TEST_MCS_FLAGS = -nowarn:618,672,219,67,169,612 \
$(foreach f, $(TEST_RESOURCES), -resource:$(f),$(notdir $(f)))
REFERENCE_SOURCES_FLAGS = -d:FEATURE_PAL,SYSTEM_NAMESPACE,MONO,PLATFORM_UNIX
@@ -29,7 +31,6 @@ TEST_MCS_FLAGS += -d:MONO_FEATURE_PROCESS_START
endif
LIB_MCS_FLAGS = -nowarn:618 -d:CONFIGURATION_2_0 $(REFERENCE_SOURCES_FLAGS) -unsafe $(RESOURCE_FILES:%=-resource:%)
TEST_MCS_FLAGS += -r:System.Configuration
ifndef NO_THREAD_ABORT
REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_ABORT
@@ -41,7 +42,7 @@ REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_SUSPEND_RESUME
TEST_MCS_FLAGS += -d:MONO_FEATURE_THREAD_SUSPEND_RESUME
endif
RESOURCE_STRINGS = ../../../external/referencesource/System/System.txt
TXT_RESOURCE_STRINGS = ../referencesource/System/System.txt
#
# MOBILE_PROFILE needs SECURITY_DEP
@@ -49,17 +50,16 @@ RESOURCE_STRINGS = ../../../external/referencesource/System/System.txt
ifdef MOBILE_PROFILE
LIB_MCS_FLAGS += -d:INSIDE_SYSTEM -d:SECURITY_DEP
else
EXTERN_ALIAS_FLAGS = -d:MONO_SECURITY_ALIAS -d:MONO_X509_ALIAS
FINAL_MCS_FLAGS = -r:System.Configuration.dll -d:CONFIGURATION_DEP
EXTERN_ALIAS_FLAGS = -d:MONO_SECURITY_ALIAS
endif
#
# Flags used to build the secxml version of System.
#
ifeq (secxml/, $(intermediate))
LOCAL_MCS_FLAGS = -lib:$(bare_libdir)
LIB_REFS += System.Xml MonoSecurity=Mono.Security
LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP -r:PrebuiltSystem=$(bare_libdir)/System.dll $(EXTERN_ALIAS_FLAGS)
LOCAL_MCS_FLAGS =
LIB_REFS += bare/System.Xml MonoSecurity=Mono.Security
LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP $(EXTERN_ALIAS_FLAGS)
endif
#
@@ -67,13 +67,18 @@ endif
#
ifndef intermediate
LIB_REFS += System.Xml MonoSecurity=Mono.Security
LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP -r:PrebuiltSystem=$(secxml_libdir)/System.dll $(EXTERN_ALIAS_FLAGS) $(FINAL_MCS_FLAGS)
LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP $(EXTERN_ALIAS_FLAGS)
ifndef MOBILE_PROFILE
LIB_REFS += System.Configuration
LIB_MCS_FLAGS += -d:CONFIGURATION_DEP
endif
endif
EXTRA_DISTFILES = \
Test/test-config-file \
Test/test-config-file-net-2.0 \
Test/System.Security.Cryptography.X509Certificates/pkits/ChangeLog \
Test/System.Security.Cryptography.X509Certificates/pkits/Makefile \
Test/System.Security.Cryptography.X509Certificates/pkits/README \
Test/System.Security.Cryptography.X509Certificates/pkits/x509build.cs \

View File

@@ -370,6 +370,8 @@ namespace Mono.CSharp
}
}
args.Append ("/noconfig ");
args.Append (" -- ");
foreach (string source in fileNames)
args.AppendFormat("\"{0}\" ",source);

File diff suppressed because it is too large Load Diff

View File

@@ -1,359 +0,0 @@
2009-04-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
* VBCodeCompiler.cs: better error when there's a problem running the
specified exec.
2008-04-30 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Fixed generated code for abstract properties.
2008-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
* VBCodeGenerator.cs: Add quotes around the filename in ExternalSource
directives.
2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: In GenerateDelegateInvokeExpression, only emit
RaiseEvent statement on 2.0 profile if TargetObject is a
CodeEventReferenceExpression. Spaces to tabs and code formatting.
2008-01-16 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Implement support for type parameters.
2007-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
* VBCodeGenerator.cs: Split array of keywords in two, one for 1.1 and one
for 2.0. Add some 2.0 specific keywords. When writing a type, escape the
name of the type if necessary. Output "Partial" if a type is partial.
2007-12-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
* VBCodeProvider.cs: Implement constructor added in 2.0SP1.
2007-10-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
* VBCodeGenerator.cs: Fix array indexer expressions by don't adding a
".Item" to the array.
2007-06-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
* VBCodeCompiler.cs: Throw a descriptive exception if we're trying to
compile anything on the 1.0 profile. Correctly parse vbnc error
messages (and don't return any messages if there weren't any
errors/warnings). Fixes #81872.
2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
* VBCodeCompiler.cs: Make sure there are spaces between all options in the command line arguments..
2007-05-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
* VBCodeGenerator.cs: Add support for delegates with parameters, and misc fixes for event handling to match MS.
2007-05-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
* VBCodeGenerator.cs: Always create escaped identifiers if the
identifier matches a keyword.
2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
* VBCodeGenerator.cs: Don't add newlines when creating array creations expressions, fix the initial size expression and make sure a there's always {} somewhere.
2007-04-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
* VBCodeCompiler.cs: In CompileFromFileBatch don't create error messages if compilation succeeded.
2007-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
* VBCodeGenerator.cs: Small fix in GenerateBinaryOperatorExpression to always emit the IdentityInequality comparisons with Nothing in the same order (first object, then Nothing).
2007-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
* VBCodeCompiler.cs: In CreateErrorFromString don't return null if the message couldn't be parsed. Temporary fix for ASP.Net to show more helpful fail messages. In CompileFromFileBatch don't try to load the assembly if the compilation returned a non-zero exit code.
2007-04-13 Frederik Carlier <frederik.carlier@carlier-online.be>
* VBCodeGenerator.cs: Added support for the IdentityInequality operator when comparing against Nothing.
2007-03-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
* VBCodeCompiler.cs: Reference Microsoft.VisualBasic.dll and not Microsoft.VisualBasic (patch by Frederik Carlier).
Don't set /wlevel, vbnc doesn't support it.
2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeCompiler.cs: Also generate temp filename if OutputAssembly is
zero-length string. Fixed bug #80920 for VB.
* VBCodeGenerator.cs: To match MS, do not emit empty parentheses when
calling base ctor without arguments.
2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* VBCodeCompiler.cs: Replace mbas with vbnc. Don't send '--' to the
compiler, since vbnc doesn't support it.
2006-04-20 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Empty line and comments should be output after
namespace imports.
2006-02-14 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* VBCodeCompiler.cs:
use mbas.exe from 1.0 or 2.0, depending on NET_2_0
BuildArgs()
copy options.CompilerOptions to the resulting command line (as pointed by Arnhoffer Károly)
use Append instead of AppendFormat when possible
2005-12-07 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeCompiler.cs: Set eol-style to native.
* VBCodeGenerator.cs: Set eol-style to native.
* VBCodeProvider.cs: Set eol-style to native.
2005-12-07 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Modified GeneratePrimitiveExpression to match
.NET 1.x and 2.0 for char, float, ushort, uint, ulong and sbyte.
2005-11-30 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Fixed NRE in GenerateEventReferenceExpression,
and escape event name. Indent statements for iteration. Avoid
ArgumentNullException if expression is not set for CodeReturnStatement.
Temporary reduce indentation for label, and fixed ArgumentNullException
if no statement is set. Cosmetic changes to code generated for
condition to match MS.NET. In OutputTypeNamePair, escape name.
2005-11-26 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Fixed NullReferenceException if no ToThrow
expression is set for CodeThrowExceptionStatement. Fixed
GenerateComment to output comment chars for carriage-returns and
linefeed characters. Modified code generated for
CodeTryCatchFinallyStatement to match MS.NET. Fixed code generated
for CodeGotoStatement to match MS.NET. On 2.0 profile, output
"__exception" if name is zero-length string in OutputTypeNamePair.
2005-10-29 Sebastien Pouliot <sebastien@ximian.com>
* VBCodeProvider.cs: GenerateCodeFromMember method is an override in
2.0 final.
2005-10-28 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Use fixed signature for entrypoint method.
Only output attributes on 2.0 profile. Replace + with dot in type
name (for nested types). Fixes bug #76580.
2005-10-25 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Do not output name of CodeAttributeArgument if
its a zero-length string.
2005-10-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* VBCodeGenerator.cs: Generate MyBase.New() with parenthesis as mbas currently chokes without them
2005-10-17 Sebastien Pouliot <sebastien@ximian.com>
* VBCodeProvider.cs: Added a LinkDemand and an InheritanceDemand
for FullTrust (i.e. Unrestricted permission set) at the class level.
Added [Obsolete] on CreateCompiler and CreateGenerator methods (2.0).
Stubbed new method GenerateCodeFromMember (2.0).
2006-07-30 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Fixed code generated for NewSlot members.
2005-07-24 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Fixed generated code for enums, interfaces and
delegates to match MS.NET.
2005-07-02 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Added support for ReturnTypeCustomAttributes.
2005-07-02 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Scope modifiers should not be output for
events.
2005-07-02 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Added PrivateImplementationType support for
properties, methods and event (2.0 only). Added Overloads support
for properties and methods.
2005-07-01 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Added ImplementationTypes support for
properties and events, and fixed support for methods.
2005-06-30 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Mark indexer as default property.
2005-06-27 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Added short type names for which support was
added in .NET 2.0. Added support for Date.
2005-06-26 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Minor fixes for compatibility with MS.NET 2.0.
2005-06-26 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Fixed generated code for attributes on ctors.
Implemented Base/Chained ctor args.
2005-06-26 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Fixed generated code for method, property
and parameter level attributes. Fixed code generated for
FieldDirection.
2005-06-25 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Removed type shortcuts that are not valid for
VB.NET. Fixed generated code for event and field level attributes.
Don't output Overridable for events.
2005-06-25 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: Modified generated code for type-level
attributes to match MS.NET.
2005-06-25 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeGenerator.cs: No longer implictly add import for
Microsoft.VisualBasic namespace to match MS.NET. Several fixes
in order to have generated code match that generated by MS
(backed by unit tests).
2005-06-13 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeCompiler.cs: Temp source files should have extension ".vb".
2005-06-09 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeCompiler.cs: ArgumentException was thrown when more than
one file/source or CodeCompileUnit is built, temporary files were
not cleaned up. Fixes bug #75191.
2005-05-29 Gert Driesen <drieseng@users.sourceforge.net>
* VBCodeCompiler.cs: Load compiled assembly from byte array if
GenerateInMemory compiler parameter is set, set PathToAssembly
if compilation succeeded and GenerateInMemory is false.
Fixes bug #74959.
2005-04-20 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* VBCodeGenerator.cs: Better logic for OptionStrict/Explicit generation
2004-12-27 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* VBCodeCompiler.cs: Added /quiet argument to avoid the "Alpha message"
2004-08-21 Jochen Wezel <jwezel@compumaster.de>
* VBCodeGenerator.cs: Removed some indentation commenting in generated
source code
2004-08-09 Jambunathan K <kjambunathan@novell.com>
* VBCodeCompiler.cs: Regex pattern in CreateErrorFromString() now
reads (?<level>error|warning) instead of (?<level>\w*). This is
so that mbas's ALPHA message doesn't get captured as a error
string.
2004-06-28 Atsushi Enomoto <atsushi@ximian.com>
* VBCodeCompiler.cs : (only for windows) First check mono.bat, then
check mono.exe. It enables xsp working with mono windows installer.
2004-06-24 Atsushi Enomoto <atsushi@ximian.com>
* VBCodeCompiler.cs : On windows we use fixed mono.exe and mbas.exe
located by mscorlib.dll. (The same fix as that of CSharpCodeCompiler)
2004-06-03 Jochen Wezel <jwezel@compumaster.de>
* VBCodeGenerator.cs: MemberAttributes made more compatible to MS
style (e. g. NotOverridable), Properties ReadOnly/WriteOnly fixed,
Property Set fixed, successless analysis of wrong indentation of last
line which contains "End Namespace" (should be on the very left)
2004-04-26 Jochen Wezel <jwezel@compumaster.de>
* VBCodeGenerator.cs: GenerateAttributeDeclarationsEnd: Fix of line break
2004-02-10 Jackson Harper <jackson@ximian.com>
* VBCodeCompiler.cs: Use the temp files collection for
creating temp files.
2004-02-05 Jackson Harper <jackson@ximian.com>
* VBCodeCompiler.cs: Set file extensions properly.
2003-11-27 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* Microsoft.VisualBasic/VBCodeGenerator.cs: Support for Option Strict/Option Explicit
2003-11-27 Jackson Harper <jackson@ximian.com>
* VBCodeCompiler.cs: Put a space between Property and the
properties name. Only add a closing quote to strings if we are
still in a quote. Use BaseType == "System.Void" to determine if a
method is void. This prevents getting As Nothing functions. Many
thanks to Anirban for helping me with VB Syntax.
2003-11-27 Jackson Harper <jackson@ximian.com>
* VBCodeCompiler.cs: use /wlevel for warning level. This is what
mbas uses.
2003-11-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* VBCodeGenerator.cs: some corrections regarding missing spaces in
generated code (e. g. "Property "). QuoteSnippetString implemented.
Patch by Jochen Wezel (jwezel@compumaster.de).
2003-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* Microsoft.VisualBasic/VBCodeGenerator.cs: Sub or Function generation
is switched by method.ReturnType being "System.Void"
2003-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* Microsoft.VisualBasic/VBCodeCompiler.cs: Inserts "--" before file
names block
* Microsoft.VisualBasic/VBCodeGenerator.cs: Indexer should be
".Item(xx)"
2003-10-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Microsoft.VisualBasic/VBCodeCompiler.cs: New.
* Microsoft.VisualBasic/VBCodeGenerator.cs:
* Microsoft.VisualBasic/VBCodeProvider.cs: modified others to use the
new CodeCompiler.
New VBCodeCompiler by Jochen Wezel <jwezel@compumaster.de>.
2003-07-07 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* VBCodeProvider.cs: Removed unneccesary attributes according to
corecompare
2003-06-25 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* VBCodeGenerator.cs: Added and nearly completely implemented
(it compiles, but the functionallity is completely untested)
(also without a working mbas the compilaton options will fail)
(once all command line arguments for mbas are final and the
warning output is final change the apropriate code to generate
these options)
* VBCodeProvider.cs: Added and implemented

View File

@@ -1,83 +0,0 @@
2005-10-28 Sebastien Pouliot <sebastien@ximian.com>
* IntranetZoneCredentialPolicy.cs: ShouldSendCredential was changed to
virtual in 2.0 final.
2005-10-18 Sebastien Pouliot <sebastien@ximian.com>
* TimerElapsedEventArgs.cs: Re-added [ComVisible (false)] attribute
before NET_2_0.
2005-10-17 Sebastien Pouliot <sebastien@ximian.com>
* IntranetZoneCredentialPolicy.cs: New. Implemented (2.0). This class
decide if the credentials should be sent if the sepcified uri is in
the intranet zone.
2005-10-17 Sebastien Pouliot <sebastien@ximian.com>
* SessionSwitchReason.cs: Fixed start value of enum (no 0 item).
* TimerElapsedEventArgs.cs: Removed [ComVisible (false)] attribute.
2005-10-17 Sebastien Pouliot <sebastien@ximian.com>
* PowerModeChangedEventArgs.cs: Added a LinkDemand and an
InheritanceDemand for FullTrust (i.e. Unrestricted permission set) at
the class level.
* SessionEndingEventArgs.cs: Added a LinkDemand and an
InheritanceDemand for FullTrust (i.e. Unrestricted permission set) at
the class level.
* SessionEndedEventArgs.cs: Added a LinkDemand and an
InheritanceDemand for FullTrust (i.e. Unrestricted permission set) at
the class level.
* SessionSwitchReason.cs: New. Enum for 2.0.
* SessionSwitchEventArgs.cs: New. Class for 2.0.
* SessionSwitchEventHandler.cs: New. Delegate for 2.0.
* SystemEvents.cs: Added a LinkDemand for FullTrust (i.e. Unrestricted
permission set) at the class level. Added new events
DisplaySettingsChanging and SessionSwitch (2.0). Added [Obsolete],
[Browsable] and [EditorBrowsable] on LowMemory event (2.0).
* TimerElapsedEventArgs.cs: Added a LinkDemand and an
InheritanceDemand for FullTrust (i.e. Unrestricted permission set) at
the class level.
* UserPreferenceCategory.cs: Added new VisualStyle value for 2.0.
* UserPreferenceChangedEventArgs.cs: Added a LinkDemand and an
InheritanceDemand for FullTrust (i.e. Unrestricted permission set) at
the class level.
* UserPreferenceChangingEventArgs.cs: Added a LinkDemand and an
InheritanceDemand for FullTrust (i.e. Unrestricted permission set) at
the class level.
2003-11-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* TimerElapsedEventArgs.cs: Added missing Attribute, restyled
2003-07-10 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* SystemEvents.cs: Implemented preliminary timer support, added private constructor, fixed events
2003-06-12 Duncan Mak <duncan@ximian.com>
* UserPreferenceChangedEventArgs.cs
* UserPreferenceChangingEventArgs.cs
(Category): Fixed typo. Patch from Andreas. Nahr.
(ClassDevelopment@A-SoftTech.com>.
2003-04-17 Nick Drochak <ndrochak@gol.com>
* UserPreferenceCategory.cs: Fix typo.
* SystemEvents.cs: Fix inheritance.2002-9-15 Johannes Roith <johannes@jroith.de>
* ChangeLog: Add the change log to this directory
* PowerModeChangedEventArgs.cs
* PowerModeChangedEventHandler.cs
* PowerModes.cs * SessionEndedEventArgs.cs
* SessionEndedEventHandler.cs
* SessionEndingEventArgs.cs
* SessionEndingEventHandler.cs
* SessionEndReasons.cs
* SystemEvents.cs
* TimerElapsedEventArgs.cs
* TimerElapsedEventHandler.cs
* UserPreferenceCategory.cs
* UserPreferenceChangedEventArgs.cs
* UserPreferenceChangedEventHandler.cs
* UserPreferenceChangingEventArgs.cs
* UserPreferenceChangingEventHandler.cs:
Initial import.

View File

@@ -1,4 +0,0 @@
2009-08-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
* NtlmClient.cs: copied from Mono.Http.

View File

@@ -26,9 +26,6 @@
#if SECURITY_DEP
#if MONO_X509_ALIAS
extern alias PrebuiltSystem;
#endif
#if MONO_SECURITY_ALIAS
extern alias MonoSecurity;
#endif
@@ -38,13 +35,6 @@ using MSI = MonoSecurity::Mono.Security.Interface;
#else
using MSI = Mono.Security.Interface;
#endif
#if MONO_X509_ALIAS
using XX509CertificateCollection = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509CertificateCollection;
using XX509Chain = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509Chain;
#else
using XX509CertificateCollection = System.Security.Cryptography.X509Certificates.X509CertificateCollection;
using XX509Chain = System.Security.Cryptography.X509Certificates.X509Chain;
#endif
using System;
using System.IO;
@@ -64,7 +54,7 @@ namespace Mono.Net.Security.Private
if (callback == null)
return null;
return (h, c, ch, e) => callback (h, c, (X509Chain)(object)ch, (SslPolicyErrors)e);
return (h, c, ch, e) => callback (h, c, ch, (SslPolicyErrors)e);
}
internal static MSI.MonoLocalCertificateSelectionCallback PublicToMono (LocalCertificateSelectionCallback callback)
@@ -72,7 +62,7 @@ namespace Mono.Net.Security.Private
if (callback == null)
return null;
return (t, lc, rc, ai) => callback (null, t, (XX509CertificateCollection)(object)lc, rc, ai);
return (t, lc, rc, ai) => callback (null, t, lc, rc, ai);
}
internal static MSI.MonoRemoteCertificateValidationCallback InternalToMono (RemoteCertValidationCallback callback)
@@ -80,7 +70,7 @@ namespace Mono.Net.Security.Private
if (callback == null)
return null;
return (h, c, ch, e) => callback (h, c, (X509Chain)(object)ch, (SslPolicyErrors)e);
return (h, c, ch, e) => callback (h, c, ch, (SslPolicyErrors)e);
}
internal static RemoteCertificateValidationCallback InternalToPublic (string hostname, RemoteCertValidationCallback callback)
@@ -96,7 +86,7 @@ namespace Mono.Net.Security.Private
if (callback == null)
return null;
return (t, lc, rc, ai) => callback (t, (XX509CertificateCollection)(object)lc, rc, ai);
return (t, lc, rc, ai) => callback (t, lc, rc, ai);
}
internal static RemoteCertificateValidationCallback MonoToPublic (MSI.MonoRemoteCertificateValidationCallback callback)
@@ -104,7 +94,7 @@ namespace Mono.Net.Security.Private
if (callback == null)
return null;
return (t, c, ch, e) => callback (null, c, (XX509Chain)(object)ch, (MSI.MonoSslPolicyErrors)e);
return (t, c, ch, e) => callback (null, c, ch, (MSI.MonoSslPolicyErrors)e);
}
internal static LocalCertificateSelectionCallback MonoToPublic (MSI.MonoLocalCertificateSelectionCallback callback)
@@ -112,7 +102,7 @@ namespace Mono.Net.Security.Private
if (callback == null)
return null;
return (s, t, lc, rc, ai) => callback (t, (XX509CertificateCollection)(object)lc, rc, ai);
return (s, t, lc, rc, ai) => callback (t, lc, rc, ai);
}
internal static RemoteCertValidationCallback MonoToInternal (MSI.MonoRemoteCertificateValidationCallback callback)
@@ -120,7 +110,7 @@ namespace Mono.Net.Security.Private
if (callback == null)
return null;
return (h, c, ch, e) => callback (h, c, (XX509Chain)(object)ch, (MSI.MonoSslPolicyErrors)e);
return (h, c, ch, e) => callback (h, c, ch, (MSI.MonoSslPolicyErrors)e);
}
internal static LocalCertSelectionCallback MonoToInternal (MSI.MonoLocalCertificateSelectionCallback callback)
@@ -128,7 +118,7 @@ namespace Mono.Net.Security.Private
if (callback == null)
return null;
return (t, lc, rc, ai) => callback (t, (XX509CertificateCollection)(object)lc, rc, ai);
return (t, lc, rc, ai) => callback (t, lc, rc, ai);
}
}

View File

@@ -34,9 +34,6 @@
#if MONO_SECURITY_ALIAS
extern alias MonoSecurity;
#endif
#if MONO_X509_ALIAS
extern alias PrebuiltSystem;
#endif
#if MONO_SECURITY_ALIAS
using MonoSecurity::Mono.Security.Interface;
@@ -47,13 +44,8 @@ using Mono.Security.Interface;
using MSX = Mono.Security.X509;
using Mono.Security.X509.Extensions;
#endif
#if MONO_X509_ALIAS
using XX509CertificateCollection = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509CertificateCollection;
using XX509Chain = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509Chain;
#else
using XX509CertificateCollection = System.Security.Cryptography.X509Certificates.X509CertificateCollection;
using XX509Chain = System.Security.Cryptography.X509Certificates.X509Chain;
#endif
using System;
using System.Net;
@@ -257,7 +249,7 @@ namespace Mono.Net.Security
public ValidationResult ValidateCertificate (string host, bool serverMode, X509Certificate leaf, XX509Chain xchain)
{
try {
var chain = (X509Chain)(object)xchain;
var chain = xchain;
var result = ValidateChain (host, serverMode, leaf, chain, null, 0);
if (tlsStream != null)
tlsStream.CertificateValidationFailed = result == null || !result.Trusted || result.UserDenied;
@@ -326,9 +318,9 @@ namespace Mono.Net.Security
bool providerValidated = false;
if (provider != null && provider.HasCustomSystemCertificateValidator) {
var xerrors = (MonoSslPolicyErrors)errors;
var xchain = (XX509Chain)(object)chain;
var xchain = chain;
providerValidated = provider.InvokeSystemCertificateValidator (this, host, server, certs, wantsChain, ref xchain, out result, ref xerrors, ref status11);
chain = (X509Chain)(object)xchain;
chain = xchain;
errors = (SslPolicyErrors)xerrors;
} else if (wantsChain) {
chain = SystemCertificateValidator.CreateX509Chain (certs);
@@ -363,7 +355,7 @@ namespace Mono.Net.Security
public bool InvokeSystemValidator (string targetHost, bool serverMode, XX509CertificateCollection certificates, XX509Chain xchain, ref MonoSslPolicyErrors xerrors, ref int status11)
{
X509Chain chain = (X509Chain)(object)xchain;
X509Chain chain = xchain;
var errors = (SslPolicyErrors)xerrors;
var result = SystemCertificateValidator.Evaluate (settings, targetHost, certificates, chain, ref errors, ref status11);
xerrors = (MonoSslPolicyErrors)errors;

View File

@@ -25,16 +25,10 @@
// THE SOFTWARE.
#if SECURITY_DEP
#if MONO_X509_ALIAS
extern alias PrebuiltSystem;
#endif
#if MONO_SECURITY_ALIAS
extern alias MonoSecurity;
#endif
#if MONO_X509_ALIAS
using X509CertificateCollection = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509CertificateCollection;
#endif
#if MONO_SECURITY_ALIAS
using MSI = MonoSecurity::Mono.Security.Interface;
#else

View File

@@ -28,21 +28,14 @@
#if MONO_SECURITY_ALIAS
extern alias MonoSecurity;
#endif
#if MONO_X509_ALIAS
extern alias PrebuiltSystem;
#endif
#if MONO_SECURITY_ALIAS
using MonoSecurity::Mono.Security.Interface;
#else
using Mono.Security.Interface;
#endif
#if MONO_X509_ALIAS
using XX509CertificateCollection = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509CertificateCollection;
#else
using XX509CertificateCollection = System.Security.Cryptography.X509Certificates.X509CertificateCollection;
#endif
#endif
using System;
using System.IO;

View File

@@ -34,9 +34,6 @@
#if SECURITY_DEP
#if MONO_X509_ALIAS
extern alias PrebuiltSystem;
#endif
#if MONO_SECURITY_ALIAS
extern alias MonoSecurity;
#endif
@@ -56,9 +53,6 @@ using MonoSecurityProtocolType = Mono.Security.Protocol.Tls.SecurityProtocolType
using Mono.Security.Protocol.Tls;
using Mono.Security.Interface;
#endif
#if MONO_X509_ALIAS
using X509CertificateCollection = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509CertificateCollection;
#endif
using CipherAlgorithmType = System.Security.Authentication.CipherAlgorithmType;
using HashAlgorithmType = System.Security.Authentication.HashAlgorithmType;

View File

@@ -24,22 +24,13 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#if SECURITY_DEP
#if MONO_X509_ALIAS
extern alias PrebuiltSystem;
#endif
#if MONO_SECURITY_ALIAS
extern alias MonoSecurity;
#endif
#if MONO_X509_ALIAS
using XHttpWebRequest = PrebuiltSystem::System.Net.HttpWebRequest;
using XSslProtocols = PrebuiltSystem::System.Security.Authentication.SslProtocols;
using XX509CertificateCollection = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509CertificateCollection;
#else
using XHttpWebRequest = System.Net.HttpWebRequest;
using XSslProtocols = System.Security.Authentication.SslProtocols;
using XX509CertificateCollection = System.Security.Cryptography.X509Certificates.X509CertificateCollection;
#endif
#if MONO_SECURITY_ALIAS
using MonoSecurity::Mono.Security.Interface;

View File

@@ -26,9 +26,6 @@
#if SECURITY_DEP
#if MONO_X509_ALIAS
extern alias PrebuiltSystem;
#endif
#if MONO_SECURITY_ALIAS
extern alias MonoSecurity;
#endif
@@ -38,27 +35,6 @@ using MSI = MonoSecurity::Mono.Security.Interface;
#else
using MSI = Mono.Security.Interface;
#endif
#if MONO_X509_ALIAS
using XX509CertificateCollection = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509CertificateCollection;
using XTransportContext = PrebuiltSystem::System.Net.TransportContext;
using XAuthenticatedStream = PrebuiltSystem::System.Net.Security.AuthenticatedStream;
using XCipherAlgorithmType = PrebuiltSystem::System.Security.Authentication.CipherAlgorithmType;
using XHashAlgorithmType = PrebuiltSystem::System.Security.Authentication.HashAlgorithmType;
using XExchangeAlgorithmType = PrebuiltSystem::System.Security.Authentication.ExchangeAlgorithmType;
using XSslProtocols = PrebuiltSystem::System.Security.Authentication.SslProtocols;
#else
using XX509CertificateCollection = System.Security.Cryptography.X509Certificates.X509CertificateCollection;
using XTransportContext = System.Net.TransportContext;
using XAuthenticatedStream = System.Net.Security.AuthenticatedStream;
using XCipherAlgorithmType = System.Security.Authentication.CipherAlgorithmType;
using XHashAlgorithmType = System.Security.Authentication.HashAlgorithmType;
using XExchangeAlgorithmType = System.Security.Authentication.ExchangeAlgorithmType;
using XSslProtocols = System.Security.Authentication.SslProtocols;
#endif
using System;
using System.IO;
@@ -96,9 +72,9 @@ namespace Mono.Net.Security.Private
Impl.AuthenticateAsClient (targetHost);
}
public void AuthenticateAsClient (string targetHost, XX509CertificateCollection clientCertificates, XSslProtocols enabledSslProtocols, bool checkCertificateRevocation)
public void AuthenticateAsClient (string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
{
Impl.AuthenticateAsClient (targetHost, clientCertificates, (SslProtocols)enabledSslProtocols, checkCertificateRevocation);
Impl.AuthenticateAsClient (targetHost, clientCertificates, enabledSslProtocols, checkCertificateRevocation);
}
public IAsyncResult BeginAuthenticateAsClient (string targetHost, AsyncCallback asyncCallback, object asyncState)
@@ -106,9 +82,9 @@ namespace Mono.Net.Security.Private
return Impl.BeginAuthenticateAsClient (targetHost, asyncCallback, asyncState);
}
public IAsyncResult BeginAuthenticateAsClient (string targetHost, XX509CertificateCollection clientCertificates, XSslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState)
public IAsyncResult BeginAuthenticateAsClient (string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState)
{
return Impl.BeginAuthenticateAsClient (targetHost, clientCertificates, (SslProtocols)enabledSslProtocols, checkCertificateRevocation, asyncCallback, asyncState);
return Impl.BeginAuthenticateAsClient (targetHost, clientCertificates, enabledSslProtocols, checkCertificateRevocation, asyncCallback, asyncState);
}
public void EndAuthenticateAsClient (IAsyncResult asyncResult)
@@ -121,9 +97,9 @@ namespace Mono.Net.Security.Private
Impl.AuthenticateAsServer (serverCertificate);
}
public void AuthenticateAsServer (X509Certificate serverCertificate, bool clientCertificateRequired, XSslProtocols enabledSslProtocols, bool checkCertificateRevocation)
public void AuthenticateAsServer (X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
{
Impl.AuthenticateAsServer (serverCertificate, clientCertificateRequired, (SslProtocols)enabledSslProtocols, checkCertificateRevocation);
Impl.AuthenticateAsServer (serverCertificate, clientCertificateRequired, enabledSslProtocols, checkCertificateRevocation);
}
public IAsyncResult BeginAuthenticateAsServer (X509Certificate serverCertificate, AsyncCallback asyncCallback, object asyncState)
@@ -131,9 +107,9 @@ namespace Mono.Net.Security.Private
return Impl.BeginAuthenticateAsServer (serverCertificate, asyncCallback, asyncState);
}
public IAsyncResult BeginAuthenticateAsServer (X509Certificate serverCertificate, bool clientCertificateRequired, XSslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState)
public IAsyncResult BeginAuthenticateAsServer (X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState)
{
return Impl.BeginAuthenticateAsServer (serverCertificate, clientCertificateRequired, (SslProtocols)enabledSslProtocols, checkCertificateRevocation, asyncCallback, asyncState);
return Impl.BeginAuthenticateAsServer (serverCertificate, clientCertificateRequired, enabledSslProtocols, checkCertificateRevocation, asyncCallback, asyncState);
}
public void EndAuthenticateAsServer (IAsyncResult asyncResult)
@@ -146,9 +122,9 @@ namespace Mono.Net.Security.Private
return Impl.AuthenticateAsClientAsync (targetHost);
}
public Task AuthenticateAsClientAsync (string targetHost, XX509CertificateCollection clientCertificates, XSslProtocols enabledSslProtocols, bool checkCertificateRevocation)
public Task AuthenticateAsClientAsync (string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
{
return Impl.AuthenticateAsClientAsync (targetHost, clientCertificates, (SslProtocols)enabledSslProtocols, checkCertificateRevocation);
return Impl.AuthenticateAsClientAsync (targetHost, clientCertificates, enabledSslProtocols, checkCertificateRevocation);
}
public Task AuthenticateAsServerAsync (X509Certificate serverCertificate)
@@ -156,9 +132,9 @@ namespace Mono.Net.Security.Private
return Impl.AuthenticateAsServerAsync (serverCertificate);
}
public Task AuthenticateAsServerAsync (X509Certificate serverCertificate, bool clientCertificateRequired, XSslProtocols enabledSslProtocols, bool checkCertificateRevocation)
public Task AuthenticateAsServerAsync (X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
{
return Impl.AuthenticateAsServerAsync (serverCertificate, clientCertificateRequired, (SslProtocols)enabledSslProtocols, checkCertificateRevocation);
return Impl.AuthenticateAsServerAsync (serverCertificate, clientCertificateRequired, enabledSslProtocols, checkCertificateRevocation);
}
public void Flush ()
@@ -201,8 +177,8 @@ namespace Mono.Net.Security.Private
Impl.EndWrite (asyncResult);
}
public XTransportContext TransportContext {
get { return (XTransportContext)(object)Impl.TransportContext; }
public TransportContext TransportContext {
get { return Impl.TransportContext; }
}
public bool IsAuthenticated {
@@ -225,24 +201,24 @@ namespace Mono.Net.Security.Private
get { return Impl.IsServer; }
}
public XCipherAlgorithmType CipherAlgorithm {
get { return (XCipherAlgorithmType)Impl.CipherAlgorithm; }
public CipherAlgorithmType CipherAlgorithm {
get { return Impl.CipherAlgorithm; }
}
public int CipherStrength {
get { return Impl.CipherStrength; }
}
public XHashAlgorithmType HashAlgorithm {
get { return (XHashAlgorithmType)Impl.HashAlgorithm; }
public HashAlgorithmType HashAlgorithm {
get { return Impl.HashAlgorithm; }
}
public int HashStrength {
get { return Impl.HashStrength; }
}
public XExchangeAlgorithmType KeyExchangeAlgorithm {
get { return (XExchangeAlgorithmType)Impl.KeyExchangeAlgorithm; }
public ExchangeAlgorithmType KeyExchangeAlgorithm {
get { return Impl.KeyExchangeAlgorithm; }
}
public int KeyExchangeStrength {
@@ -274,8 +250,8 @@ namespace Mono.Net.Security.Private
Impl.SetLength (value);
}
public XAuthenticatedStream AuthenticatedStream {
get { return (XAuthenticatedStream)(Stream)Impl.AuthenticatedStream; }
public AuthenticatedStream AuthenticatedStream {
get { return Impl.AuthenticatedStream; }
}
public int ReadTimeout {
@@ -304,8 +280,8 @@ namespace Mono.Net.Security.Private
get { return Impl.RemoteCertificate; }
}
public XSslProtocols SslProtocol {
get { return (XSslProtocols)Impl.SslProtocol; }
public SslProtocols SslProtocol {
get { return Impl.SslProtocol; }
}
public MSI.MonoTlsProvider Provider {

View File

@@ -26,9 +26,6 @@
#if SECURITY_DEP
#if MONO_X509_ALIAS
extern alias PrebuiltSystem;
#endif
#if MONO_SECURITY_ALIAS
extern alias MonoSecurity;
#endif
@@ -38,17 +35,6 @@ using MSI = MonoSecurity::Mono.Security.Interface;
#else
using MSI = Mono.Security.Interface;
#endif
#if MONO_X509_ALIAS
using XSslProtocols = PrebuiltSystem::System.Security.Authentication.SslProtocols;
using XX509CertificateCollection = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509CertificateCollection;
#else
using XSslProtocols = System.Security.Authentication.SslProtocols;
using XX509CertificateCollection = System.Security.Cryptography.X509Certificates.X509CertificateCollection;
#endif
using CipherAlgorithmType = System.Security.Authentication.CipherAlgorithmType;
using HashAlgorithmType = System.Security.Authentication.HashAlgorithmType;
using ExchangeAlgorithmType = System.Security.Authentication.ExchangeAlgorithmType;
using System;
using System.IO;
@@ -84,9 +70,9 @@ namespace Mono.Net.Security.Private
Impl.AuthenticateAsClient (targetHost);
}
public void AuthenticateAsClient (string targetHost, XX509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
public void AuthenticateAsClient (string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
{
Impl.AuthenticateAsClient (targetHost, (XX509CertificateCollection)(object)clientCertificates, (XSslProtocols)enabledSslProtocols, checkCertificateRevocation);
Impl.AuthenticateAsClient (targetHost, clientCertificates, enabledSslProtocols, checkCertificateRevocation);
}
public IAsyncResult BeginAuthenticateAsClient (string targetHost, AsyncCallback asyncCallback, object asyncState)
@@ -94,9 +80,9 @@ namespace Mono.Net.Security.Private
return Impl.BeginAuthenticateAsClient (targetHost, asyncCallback, asyncState);
}
public IAsyncResult BeginAuthenticateAsClient (string targetHost, XX509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState)
public IAsyncResult BeginAuthenticateAsClient (string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState)
{
return Impl.BeginAuthenticateAsClient (targetHost, (XX509CertificateCollection)(object)clientCertificates, (XSslProtocols)enabledSslProtocols, checkCertificateRevocation, asyncCallback, asyncState);
return Impl.BeginAuthenticateAsClient (targetHost, clientCertificates, enabledSslProtocols, checkCertificateRevocation, asyncCallback, asyncState);
}
public void EndAuthenticateAsClient (IAsyncResult asyncResult)
@@ -111,7 +97,7 @@ namespace Mono.Net.Security.Private
public void AuthenticateAsServer (X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
{
Impl.AuthenticateAsServer (serverCertificate, clientCertificateRequired, (XSslProtocols)enabledSslProtocols, checkCertificateRevocation);
Impl.AuthenticateAsServer (serverCertificate, clientCertificateRequired, enabledSslProtocols, checkCertificateRevocation);
}
public IAsyncResult BeginAuthenticateAsServer (X509Certificate serverCertificate, AsyncCallback asyncCallback, object asyncState)
@@ -121,7 +107,7 @@ namespace Mono.Net.Security.Private
public IAsyncResult BeginAuthenticateAsServer (X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState)
{
return Impl.BeginAuthenticateAsServer (serverCertificate, clientCertificateRequired, (XSslProtocols)enabledSslProtocols, checkCertificateRevocation, asyncCallback, asyncState);
return Impl.BeginAuthenticateAsServer (serverCertificate, clientCertificateRequired, enabledSslProtocols, checkCertificateRevocation, asyncCallback, asyncState);
}
public void EndAuthenticateAsServer (IAsyncResult asyncResult)
@@ -134,9 +120,9 @@ namespace Mono.Net.Security.Private
return Impl.AuthenticateAsClientAsync (targetHost);
}
public Task AuthenticateAsClientAsync (string targetHost, XX509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
public Task AuthenticateAsClientAsync (string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
{
return Impl.AuthenticateAsClientAsync (targetHost, clientCertificates, (XSslProtocols)enabledSslProtocols, checkCertificateRevocation);
return Impl.AuthenticateAsClientAsync (targetHost, clientCertificates, enabledSslProtocols, checkCertificateRevocation);
}
public Task AuthenticateAsServerAsync (X509Certificate serverCertificate)
@@ -146,7 +132,7 @@ namespace Mono.Net.Security.Private
public Task AuthenticateAsServerAsync (X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
{
return Impl.AuthenticateAsServerAsync (serverCertificate, clientCertificateRequired, (XSslProtocols)enabledSslProtocols, checkCertificateRevocation);
return Impl.AuthenticateAsServerAsync (serverCertificate, clientCertificateRequired, enabledSslProtocols, checkCertificateRevocation);
}
public void Flush ()
@@ -190,7 +176,7 @@ namespace Mono.Net.Security.Private
}
public TransportContext TransportContext {
get { return (TransportContext)(object)Impl.TransportContext; }
get { return Impl.TransportContext; }
}
public bool IsAuthenticated {
@@ -263,7 +249,7 @@ namespace Mono.Net.Security.Private
}
public AuthenticatedStream AuthenticatedStream {
get { return (AuthenticatedStream)(object)Impl.AuthenticatedStream; }
get { return Impl.AuthenticatedStream; }
}
public int ReadTimeout {

View File

@@ -0,0 +1,22 @@
// Copyright 2015 Xamarin Inc. All rights reserved.
using System;
using MSI = Mono.Security.Interface;
namespace Mono.Net.Security
{
static partial class MonoTlsProviderFactory
{
static IMonoTlsProvider CreateDefaultProvider ()
{
#if SECURITY_DEP
MSI.MonoTlsProvider provider = null;
if (MSI.MonoTlsProviderFactory._PrivateFactoryDelegate != null)
provider = MSI.MonoTlsProviderFactory._PrivateFactoryDelegate ();
if (provider != null)
return new Private.MonoTlsProviderWrapper (provider);
#endif
return null;
}
}
}

View File

@@ -26,9 +26,6 @@
#if SECURITY_DEP
#if MONO_X509_ALIAS
extern alias PrebuiltSystem;
#endif
#if MONO_SECURITY_ALIAS
extern alias MonoSecurity;
#endif
@@ -38,13 +35,6 @@ using MSI = MonoSecurity::Mono.Security.Interface;
#else
using MSI = Mono.Security.Interface;
#endif
#if MONO_X509_ALIAS
using XHttpWebRequest = PrebuiltSystem::System.Net.HttpWebRequest;
using XX509CertificateCollection = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509CertificateCollection;
#else
using XHttpWebRequest = System.Net.HttpWebRequest;
using XX509CertificateCollection = System.Security.Cryptography.X509Certificates.X509CertificateCollection;
#endif
using System;
using System.IO;
@@ -84,13 +74,13 @@ namespace Mono.Net.Security.Private
MSI.IMonoTlsContext IMonoTlsProvider.CreateTlsContext (
string hostname, bool serverMode, MSI.TlsProtocols protocolFlags,
X509Certificate serverCertificate, XX509CertificateCollection clientCertificates,
X509Certificate serverCertificate, X509CertificateCollection clientCertificates,
bool remoteCertRequired, bool checkCertName, bool checkCertRevocationStatus,
MSI.MonoEncryptionPolicy encryptionPolicy, MSI.MonoTlsSettings settings)
{
return CreateTlsContextImpl (
hostname, serverMode, protocolFlags,
serverCertificate, (X509CertificateCollection)(object)clientCertificates,
serverCertificate, clientCertificates,
remoteCertRequired, encryptionPolicy, settings);
}
@@ -102,13 +92,13 @@ namespace Mono.Net.Security.Private
internal override MSI.IMonoTlsContext CreateTlsContext (
string hostname, bool serverMode, MSI.TlsProtocols protocolFlags,
X509Certificate serverCertificate, XX509CertificateCollection clientCertificates,
X509Certificate serverCertificate, X509CertificateCollection clientCertificates,
bool remoteCertRequired, MSI.MonoEncryptionPolicy encryptionPolicy,
MSI.MonoTlsSettings settings)
{
return CreateTlsContextImpl (
hostname, serverMode, (MSI.TlsProtocols)protocolFlags,
serverCertificate, (X509CertificateCollection)(object)clientCertificates,
serverCertificate, clientCertificates,
remoteCertRequired, (MSI.MonoEncryptionPolicy)encryptionPolicy,
settings);
}

View File

@@ -26,9 +26,6 @@
#if SECURITY_DEP
#if MONO_X509_ALIAS
extern alias PrebuiltSystem;
#endif
#if MONO_SECURITY_ALIAS
extern alias MonoSecurity;
#endif
@@ -38,13 +35,6 @@ using MSI = MonoSecurity::Mono.Security.Interface;
#else
using MSI = Mono.Security.Interface;
#endif
#if MONO_X509_ALIAS
using XHttpWebRequest = PrebuiltSystem::System.Net.HttpWebRequest;
using XX509CertificateCollection = PrebuiltSystem::System.Security.Cryptography.X509Certificates.X509CertificateCollection;
#else
using XHttpWebRequest = System.Net.HttpWebRequest;
using XX509CertificateCollection = System.Security.Cryptography.X509Certificates.X509CertificateCollection;
#endif
using System;
using System.IO;
@@ -86,13 +76,13 @@ namespace Mono.Net.Security.Private
public MSI.IMonoTlsContext CreateTlsContext (
string hostname, bool serverMode, MSI.TlsProtocols protocolFlags,
X509Certificate serverCertificate, XX509CertificateCollection clientCertificates,
X509Certificate serverCertificate, X509CertificateCollection clientCertificates,
bool remoteCertRequired, bool checkCertName, bool checkCertRevocationStatus,
MSI.MonoEncryptionPolicy encryptionPolicy, MSI.MonoTlsSettings settings)
{
return provider.CreateTlsContext (
hostname, serverMode, protocolFlags,
serverCertificate, (XX509CertificateCollection)(object)clientCertificates,
serverCertificate, clientCertificates,
remoteCertRequired, (MSI.MonoEncryptionPolicy)encryptionPolicy,
settings);
}

Some files were not shown because too many files have changed in this diff Show More