Imported Upstream version 5.8.0.22

Former-commit-id: df344e34b07851d296efb3e6604c8db42b6f7aa3
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-10-19 20:04:20 +00:00
parent 5f4a27cc8a
commit 7d05485754
5020 changed files with 114082 additions and 186061 deletions

View File

@@ -34,12 +34,10 @@ LIB_MCS_FLAGS += -d:FULL_AOT_RUNTIME
endif
ifneq (basic, $(PROFILE))
CLR_PROFILE := $(filter 2.0 4.0 4.5, $(FRAMEWORK_VERSION))
endif
ifdef CLR_PROFILE
ifneq (2.1, $(FRAMEWORK_VERSION))
LIB_REFS += Mono.Posix
endif
endif
CC_PROFILE := $(filter monotouch% xammac, $(PROFILE))
ifdef CC_PROFILE

View File

@@ -37,6 +37,12 @@ namespace Microsoft.Win32.SafeHandles
{
}
protected SafeNCryptHandle (IntPtr handle, System.Runtime.InteropServices.SafeHandle parentHandle)
: base (false)
{
throw new NotImplementedException ();
}
public override bool IsInvalid { get { throw new NotImplementedException (); } }
protected override bool ReleaseHandle ()

View File

@@ -26,6 +26,8 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
namespace Microsoft.Win32.SafeHandles
{
public sealed class SafeNCryptKeyHandle : SafeNCryptHandle
@@ -34,6 +36,12 @@ namespace Microsoft.Win32.SafeHandles
{
}
public SafeNCryptKeyHandle (IntPtr handle, System.Runtime.InteropServices.SafeHandle parentHandle)
: base (handle, parentHandle)
{
}
protected override bool ReleaseNativeHandle ()
{
return false;

View File

@@ -61,11 +61,11 @@ System.Linq.Expressions/ExpressionTest_TypeIs.cs
System.Linq.Expressions/ExpressionTest_UnaryPlus.cs
System.Linq.Expressions/ExpressionTest_Utils.cs
System.Threading/ReaderWriterLockSlimTest.cs
../../corlib/Test/System.Security.Cryptography/HashAlgorithmTest.cs
../../corlib/Test/System.Security.Cryptography/SHA1Test.cs
../../corlib/Test/System.Security.Cryptography/SHA256Test.cs
../../corlib/Test/System.Security.Cryptography/SHA384Test.cs
../../corlib/Test/System.Security.Cryptography/SHA512Test.cs
../../corlib/Test/System.Security.Cryptography/HashAlgorithmTestBase.cs
../../corlib/Test/System.Security.Cryptography/SHA1TestBase.cs
../../corlib/Test/System.Security.Cryptography/SHA256TestBase.cs
../../corlib/Test/System.Security.Cryptography/SHA384TestBase.cs
../../corlib/Test/System.Security.Cryptography/SHA512TestBase.cs
System.Security.Cryptography/AesCryptoServiceProviderTest.cs
System.Security.Cryptography/AesManagedTest.cs
System.Security.Cryptography/CngAlgorithmTest.cs

View File

@@ -28,7 +28,12 @@
namespace System.Security.Cryptography.X509Certificates
{
public static class RSACertificateExtensions
#if SYSTEM_SECURITY_DLL
internal
#else
public
#endif
static class RSACertificateExtensions
{
public static RSA GetRSAPrivateKey(this X509Certificate2 certificate)
{

View File

@@ -25,7 +25,7 @@ namespace MonoTests.System.Security.Cryptography {
// same results (hence should run a common set of unit tests).
[TestFixture]
public class SHA1CngTest : SHA1Test {
public class SHA1CngTest : SHA1TestBase {
[SetUp]
public override void SetUp ()

View File

@@ -25,7 +25,7 @@ namespace MonoTests.System.Security.Cryptography {
// same results (hence should run a common set of unit tests).
[TestFixture]
public class SHA256CngTest : SHA256Test {
public class SHA256CngTest : SHA256TestBase {
[SetUp]
public override void SetUp ()

View File

@@ -25,7 +25,7 @@ namespace MonoTests.System.Security.Cryptography {
// same results (hence should run a common set of unit tests).
[TestFixture]
public class SHA256CryptoServiceProviderTest : SHA256Test {
public class SHA256CryptoServiceProviderTest : SHA256TestBase {
[SetUp]
public override void SetUp ()

View File

@@ -25,7 +25,7 @@ namespace MonoTests.System.Security.Cryptography {
// same results (hence should run a common set of unit tests).
[TestFixture]
public class SHA384CngTest : SHA384Test {
public class SHA384CngTest : SHA384TestBase {
[SetUp]
public override void SetUp ()

View File

@@ -25,7 +25,7 @@ namespace MonoTests.System.Security.Cryptography {
// same results (hence should run a common set of unit tests).
[TestFixture]
public class SHA384CryptoServiceProviderTest : SHA384Test {
public class SHA384CryptoServiceProviderTest : SHA384TestBase {
[SetUp]
public override void SetUp ()

View File

@@ -25,7 +25,7 @@ namespace MonoTests.System.Security.Cryptography {
// same results (hence should run a common set of unit tests).
[TestFixture]
public class SHA512CngTest : SHA512Test {
public class SHA512CngTest : SHA512TestBase {
[SetUp]
public override void SetUp ()

View File

@@ -25,7 +25,7 @@ namespace MonoTests.System.Security.Cryptography {
// same results (hence should run a common set of unit tests).
[TestFixture]
public class SHA512CryptoServiceProviderTest : SHA512Test {
public class SHA512CryptoServiceProviderTest : SHA512TestBase {
[SetUp]
public override void SetUp ()

View File

@@ -71,6 +71,7 @@ corefx/SR.missing.cs
../referencesource/System.Core/System/Security/Cryptography/ECDiffieHellmanPublicKey.cs
../referencesource/System.Core/System/Security/Cryptography/ECDsa.cs
../referencesource/System.Core/System/Security/Cryptography/ECDsaCng.cs
../referencesource/System.Core/System/Security/Cryptography/ECKeyXmlFormat.cs
../referencesource/System.Core/System/Security/Cryptography/NCryptNative.cs
../referencesource/System.Core/System/Security/Cryptography/RsaCng.cs

View File

@@ -14,6 +14,5 @@ System.Security.Cryptography/SHA512Cng.cs
../referencesource/System.Core/System/Security/Cryptography/AesManaged.cs
../referencesource/System.Core/System/Security/Cryptography/ECDiffieHellman.cs
../referencesource/System.Core/System/Security/Cryptography/ECKeyXmlFormat.cs
../referencesource/System.Core/System/threading/ReaderWriterLockSlim/LockRecursionException.cs

View File

@@ -0,0 +1,14 @@
#include common_System.Core.dll.sources
#include dynamic_System.Core.dll.sources
System.Security.Cryptography/AesCryptoServiceProvider.cs
System.Security.Cryptography/AesTransform.cs
System.Security.Cryptography/MD5Cng.cs
System.Security.Cryptography/SHA1Cng.cs
System.Security.Cryptography/SHA256Cng.cs
System.Security.Cryptography/SHA384Cng.cs
System.Security.Cryptography/SHA512Cng.cs
../referencesource/System.Core/System/Security/Cryptography/AesManaged.cs
../referencesource/System.Core/System/Security/Cryptography/ECDiffieHellman.cs
../referencesource/System.Core/System/Security/Cryptography/ECKeyXmlFormat.cs