Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-06-29Disables more turkish tests on mono for nowMarek Safar
2018-06-28Move 'Internal.Cryptography.Pal.CertificateData' into its own file. (#30707)Martin Baulig
This moves all the managed pieces of Internal/Cryptography/Pal.OSX/CertificatePal.cs which are not platform-specific into a separate file to allow them to be used in Mono.
2018-06-28System.Diagnostics.PrivateMartin Baulig
2018-06-27Removes duplicate attributes (dotnet/coreclr#18668)Marek Safar
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
2018-06-25Reenable TaskCancelWait1() testAlexander Köplinger
Fixed by 2d4301a0
2018-06-25Fix race in TaskCancelWaitTestCases.TaskCancelWait1() (#30615)Alexander Köplinger
When `CancelChildren` is enabled (currently only in the `TaskCancelWait1` test) we're hitting a race in `TaskCancelWaitTest.CreateTask()`: 1. Let's assume Task A is processing `node` 2. Task A spawns a new Task B for processing `node_1` 3. Task B starts and signals the `_countdownEvent` 4. `RealRun()` on the main thread exits the wait on `_countdownEvent` 5. `RealRun()` calls `Verify()` which loops through all the nodes and calls `VerifyCancel()` 6. We get an assertion because `CancellationToken.IsCancellationRequested` is false 7. Task A continues and sets the CancellationToken, but it is already too late by this point To fix this race we wait on the task in `RealRun()` before proceeding to the verification step. This uncovered another issue: Since `_countdownEvent` is accessed by multiple threads we have another race between checking `_countdownEvent.IsSet` and `_countdownEvent.Signal()`. This caused a `System.InvalidOperationException: Invalid attempt made to decrement the event's count below zero.` Fixed it by locking access to the `_countdownEvent`. Fixes https://github.com/dotnet/corefx/issues/20457 Fixes https://github.com/mono/mono/issues/6920 (cherry picked from commit 69cf791e365c2be6f919929c5ae521b2e070aa5d)
2018-06-25Enable testing against NetFX for S.S.C.X509Certificates.TestsJeremy Barton
* Make S.S.C.X509Certificates.Tests compile against netstandard * Fix or disable tests for netfx behavior * Make the casing of the default X509Store Name value match netfx * Suppress brainpool GetECDsaPublicKey tests on netfx
2018-06-25Skip certificates we can't read when populating machine store. (#29973)Tom Deseyn
* Skip certificates we can't read when populating machine store. This is a regression in 2.1.0 (https://github.com/dotnet/corefx/pull/29351). Fixes https://github.com/dotnet/corefx/issues/29942. * Add test * Assert chmod returns 0 * Skip test on OSX * Add valid content to the unreadable cert file
2018-06-25NetFX compatibility fixes for X500DistinguishedName.Filip Navara
* Don't write a separator after the empty DN * Make T61String behave like it does on Windows (UTF-8 with a Latin-1 fallback) * Use the managed decoder on Linux, instead of a lot of P/Invokes back into OpenSSL.
2018-06-25Align X509EnhancedKeyUsageExtension.EnhancedKeyUsages behaviour with NetFXFilip Navara
2018-06-25SignedCms: Improve NetFx compat for SignedCms wrapping EnvelopedCmsJeremy Barton
* SignedCms with a content-type other than id-data should have attributes * Read classic PKCS7 SignedData(EnvelopedData) documents (NetFx compat) In NetFX if a SignedCms is created using only CmsSigners with IssuerAndSerial as the signer identifier type, the document gets encoded using the older PKCS7 structural definition instead of the newer CMS one. RFC 5652 has a long section (5.2.1) on how to read these documents compatibly. Since the defaults in SignedCms / CmsSigner are the PKCS7 behavior, not reading it means that Signed(Enveloped) documents from NetFX cannot be read.
2018-06-21Revert "Disable flaky FileSystemWatcher tests"Alexis Christoforides
https://github.com/mono/mono/issues/7684 This reverts commit 399c9c5a8e101bcc5c126408af95f65661105731.
2018-06-21Add System.Diagnostics.Private.Martin Baulig
2018-06-21Substitute BCryptGenRandom.cs with coreclr mirror version (#30115)Marco Rossignoli
* cleanup BCrypt * fix call sites * Revert "fix call sites" This reverts commit 9a2cf64935bb4237d62724033765af59dfd952e0. * fix non win call sites * add unsafe keyword * add unsafe keyword on pinvoke (cherry picked from commit 756e289686080ab8e18476aacb4a419a2ee1f483)
2018-06-21Merge BCryptGenRandom.cs (dotnet/coreclr#18233)Marco Rossignoli
Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com> (cherry picked from commit 5e1dabf5cb8fb63d3ab58c9bbfab195af9a17f50)
2018-06-20FastSpan build fixesMarek Safar
2018-06-20Use icall for blocking read call in MonoAlexis Christoforides
2018-06-19Backport getline fix for AIX to Mono CoreFXCalvin Buckley
2018-06-19 Convert S.S.Cryptography.Native.Apple to C (#30448)kasper3
* Rename extension .cpp to .c * Convert S.S.Cryptography.Native.Apple to C * Use memset instead of consts for zero-init
2018-06-19Convert System.Security.Cryptography.Native to C (#30376)kasper3
* Rename extension .cpp to .c * Convert System.Security.Cryptography.Native to C * Address feedback comments
2018-06-19disable anonymnous cipher suites to match Windows and OSX behavior (#29893)Tomas Weinfurt
* disable anonymnous cipher suites to match Windows and OSX behavior
2018-06-19Change couple of System.Diagnostics usings to System.Diagnostics.Private to ↵Filip Navara
make the files compilable as part of System.dll.
2018-06-18Make Nullable<T> partial and ifdef out the type forwarder for mono.Zoltan Varga
2018-06-15cherry-pick Fix number formatting exception with empty NumberGroupSizes ↵Egor Bogatov
array (#81) Cherry-pick https://github.com/dotnet/coreclr/pull/18221 For https://github.com/mono/mono/pull/8626#discussion_r194984329
2018-06-14Remove CmsSigner property setters not present in .NET Framework.Filip Navara
2018-06-14More of diagnostics.privateMarek Safar
2018-06-14Fixes compilation without fast-spanMarek Safar
2018-06-13More of System.Diagnostics.PrivateMarek Safar
2018-06-12Guard Windows code under PLATFORM_WINDOWS (dotnet/coreclr#18344)Marek Safar
Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
2018-06-10Convert local function to an instance one to allow compilation with mcs. (#78)Filip Navara
* Convert local function to an instance one to allow compilation with mcs. * Workaround missing mcs C# 7 features.
2018-06-10Attempt at AIX support for CoreFX PAL (#79)Calvin
This is a manual cherry pick of the commit due to differences in cmake files preventing a clean merge of the normal patch. The commit applied can be found at: dotnet/corefx@eedd1c2784fd1c597428187985df00567bc00f86 More work will likely need to be done as more is backported and PAL changes. In addition, the submodule will need to be updated as well. Hopefully AIX CI should light up after that though!
2018-06-07hide more forwarders from corlibEgor Bogatov
2018-06-06System.Security.Cryptography.Pkcs behaviour fixes (#76)Filip Navara
Downstream https://github.com/dotnet/corefx/pull/30046 * Return same error code for invalid encoded messages in ContentInfo.GetContentType on Linux/Mac as on Windows. * Fix compilation of CmsSignature.DSA in non-netcoreapp scenario in the same way as RSA and ECDsa. * Handle invalid value when CmsSigner.SignerIdentifierType is being assigned in the same was as on .NET Framework. * Throw correct exception (as documented) for incorrect index values.
2018-06-04make IsSynchronized/SyncRoot non-explicitly implement interface and update ↵Krzysztof Wicher
baseline (#29880)
2018-06-03Switch CmsSigner default algorithm to SHA-1 to match documented .NET ↵Filip Navara
Framework behaviour. Make EnvelopedCms class partial to allow adding methods to it.
2018-06-03Try to fix issues with Unicode on big endian OSes (dotnet/coreclr#18254)Calvin
Mono had some patches in their fork of referencesource to resolve issues on big endian. Essentially, compile-time endianness handling is no good for big endian platforms, because they have to consume a Monolite intended for all platforms in order to bootstrap. So then, all big endian platforms are now consuming a bootstrap tarball made on little endian systems, and bad things happen as a result. This makes it so that endianness is checked at runtime by using System.BitConverter.IsLittleEndian, not by a compiler definition. This integrates mono/mono@1f9b218 and mono/mono@92cec46, which won't apply cleanly to current CoreFX. mono/mono#8679 may get fixed by this, but as the comments say, there could be more patches missing. This just integrates the patches known to me on UnicodeEncoding and UTF8Encoding. Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
2018-06-01Add `using System.Diagnostics.Private;` to TimeSpan*.csEgorBo
2018-06-01Convert System.Security.Cryptography.Native.Apple/pal_random.cpp to C (#29992)Martin Baulig
* Convert System.Security.Cryptography.Native.Apple/pal_random.cpp to C for inclusion in Mono. * Wrap with `BEGIN_EXTERN_C` / `END_EXTERN_C` and add `DLLEXPORT`.
2018-06-01Another System.Diagnostics.Private.Martin Baulig
2018-05-31Fix Guid TryFormat for monoEgorBo
2018-05-31fix typoEgorBo
2018-05-31Hide TypeForwardedFrom from monoEgorBo
2018-05-31Add more 'using System.Diagnostics.Private'.Martin Baulig
2018-05-30Merge pull request #66 from ↵Alexis Christoforides
mono/enable-test-FileSystemWatcher_StopCalledOnBackgroundThreadDoesNotDeadlock Enable test fixed by https://github.com/mono/mono/pull/8719
2018-05-30Merge pull request #67 from mono/fix-pal_random-symbol-exportMartin Baulig
Fix exporting of SystemNative_GetNonCryptographicallySecureRandomBytes
2018-05-30Fix exporting of SystemNative_GetNonCryptographicallySecureRandomBytesAlexis Christoforides
pal_random.c was not including pal_random.h, which declared the export. This is fine upstream, and seems to have been magically nuked between commits 9eed0fbca1ff7d95f2345259791df5e2a2945c9a and 3fb2e82f2549de0872d22e35f35de85537cb5f7f
2018-05-29Enable test fixed by https://github.com/mono/mono/pull/8719Alexis Christoforides
2018-05-29Add 'System.Diagnostics.Private' to Interop.BCryptGenRandom.cs (#64)Martin Baulig
2018-05-27Revert "Enable test fixed by https://github.com/mono/mono/pull/8719 (#63)"Alexis Christoforides
This reverts commit 8831553c919bf74772c0b382eb2c76e1c0af873a.
2018-05-26Update to head of 2.1 release branchMarek Safar