Imported Upstream version 5.20.0.180

Former-commit-id: ff953ca879339fe1e1211f7220f563e1342e66cb
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-02-04 20:11:37 +00:00
parent 0e2d47d1c8
commit 0510252385
3360 changed files with 83827 additions and 39243 deletions

View File

@@ -0,0 +1,35 @@
//
// Copyright (c) 2016 Xamarin Inc. (http://www.xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle ("System.Security.Cryptography.OpenSsl")]
[assembly: AssemblyDescription ("System.Security.Cryptography.OpenSsl")]
[assembly: AssemblyDefaultAlias ("System.Security.Cryptography.OpenSsl")]
[assembly: AssemblyCompany ("Mono development team")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("(c) Various Mono authors")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]

View File

@@ -0,0 +1,73 @@
//
// ECDsaOpenSsl.cs
//
// Authors:
// Marek Safar <marek.safar@gmail.com>
//
// Copyright (C) 2016 Xamarin Inc (http://www.xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Security.Cryptography
{
public sealed class ECDsaOpenSsl : ECDsa
{
public ECDsaOpenSsl ()
{
throw new NotImplementedException ();
}
public ECDsaOpenSsl (int keySize)
{
throw new NotImplementedException ();
}
public ECDsaOpenSsl(IntPtr handle)
{
throw new NotImplementedException ();
}
public ECDsaOpenSsl (ECCurve curve)
{
throw new NotImplementedException ();
}
public ECDsaOpenSsl (SafeEvpPKeyHandle pkeyHandle)
{
throw new NotImplementedException ();
}
public override byte[] SignHash (byte[] hash)
{
throw new NotImplementedException ();
}
public override bool VerifyHash (byte[] hash, byte[] signature)
{
throw new NotImplementedException ();
}
public SafeEvpPKeyHandle DuplicateKeyHandle ()
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,21 @@
MCS_BUILD_DIR = ../../../build
thisdir = class/Facades/System.Security.Cryptography.OpenSsl
SUBDIRS =
include $(MCS_BUILD_DIR)/rules.make
LIBRARY_SUBDIR = Facades
LIBRARY_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)/Facades
LIBRARY = System.Security.Cryptography.OpenSsl.dll
KEYFILE = ../../msfinal.pub
SIGN_FLAGS = /delaysign /nowarn:1616,1699
LIB_REFS = System.Core
LIB_MCS_FLAGS = $(SIGN_FLAGS)
NO_TEST = yes
include $(MCS_BUILD_DIR)/library.make

View File

@@ -0,0 +1,88 @@
//
// RSAOpenSsl.cs
//
// Authors:
// Marek Safar <marek.safar@gmail.com>
//
// Copyright (C) 2016 Xamarin Inc (http://www.xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Security.Cryptography
{
public sealed class RSAOpenSsl : RSA
{
public RSAOpenSsl ()
{
throw new NotImplementedException ();
}
public RSAOpenSsl (int keySize)
{
throw new NotImplementedException ();
}
public RSAOpenSsl(IntPtr handle)
{
throw new NotImplementedException ();
}
public RSAOpenSsl (ECCurve curve)
{
throw new NotImplementedException ();
}
public RSAOpenSsl (RSAParameters parameters)
{
throw new NotImplementedException ();
}
public RSAOpenSsl (SafeEvpPKeyHandle pkeyHandle)
{
throw new NotImplementedException ();
}
public override RSAParameters ExportParameters (bool includePrivateParameters)
{
throw new NotImplementedException ();
}
public override void ImportParameters (RSAParameters parameters)
{
throw new NotImplementedException ();
}
public override byte[] SignHash (byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
throw new NotImplementedException ();
}
public override bool VerifyHash (byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
throw new NotImplementedException ();
}
public SafeEvpPKeyHandle DuplicateKeyHandle ()
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,50 @@
//
// SafeEvpPKeyHandle.cs
//
// Authors:
// Marek Safar <marek.safar@gmail.com>
//
// Copyright (C) 2016 Xamarin Inc (http://www.xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Security.Cryptography
{
public sealed class SafeEvpPKeyHandle : System.Runtime.InteropServices.SafeHandle
{
public SafeEvpPKeyHandle (IntPtr handle, bool ownsHandle)
: base (handle, ownsHandle)
{
}
public override bool IsInvalid { get { throw new NotImplementedException (); } }
public SafeEvpPKeyHandle DuplicateHandle ()
{
throw new NotImplementedException ();
}
protected override bool ReleaseHandle ()
{
return true;
}
}
}

View File

@@ -0,0 +1,4 @@
AssemblyInfo.cs
ECDsaOpenSsl.cs
RSAOpenSsl.cs
SafeEvpPKeyHandle.cs