Each of the CAPI Safe*Handle types had a private constructor which took
an IntPtr. Nothing called them, and deleting them didn't cause any
failures due to reflection dependencies.
Also deleted a bunch of commented out code from the porting to .NET Core.
Commit migrated from https://github.com/dotnet/corefx/commit/056f83529c009cc94b3731aa2b43b6209b51a4eb
Within the VM the maybe-allocated SafeKeyHandle was held by a stack-allocated
class with a freeing-dtor. The C# transliteration moved this local-free to a
delayed-free, which caused a Finalizer race condition in this key handle and
its parent SafeProvHandle.
There are likely more unnecessary finalizations going on, but this is the one
that caused the tests to fail with a tripped assert, so it's being fixed in isolation
and a new issue is tracking the overall cleanup.
Commit migrated from https://github.com/dotnet/corefx/commit/189d56912195a57115e13e4f889fff41cdaa2926
When the UniqueKeyContainerName value was being set within the VM there
was automatic c-string to BStr translation which removed the trailing null
character from the value. Now that it's being handled within managed code
that translation is less automatic.
Commit migrated from https://github.com/dotnet/corefx/commit/6bdfdcb11d09eb2f1f9b44b1f0b3e55784c1a0e4
This behavior was lost in translation from being in the VM. When creating CSP
keys using just the provider type code (e.g. 24) the provider name is populated
on the CspKeyContainerInfo object.
This change restores that behavior.
Commit migrated from https://github.com/dotnet/corefx/commit/392e66f936e4fe7d61ef739f13e3ad2389bf6eb1
* Added tests to validate the PublicOnly property
* Added tests to validate the CspKeyContainerInfo population
* Added tests for the RSACryptoServiceProvider-specific Sign and Verify methods
* Added tests which verify persistant key support
Commit migrated from https://github.com/dotnet/corefx/commit/42d2cad15ee4fa6d78dc878b1cf4e18453c8d287
When I reimplemented Concat yesterday, I initially did so where longer chains of concats would end up using an allocated array to store all of the enumerables. Since short chains of 2 and 3 concats are relatively common, I special cased those to not need the array. I then changed the implementation to use a linked list of the concat iterators instead of the array, at which point while 2 sources still needed to be special cased, 3 didn't, but I neglected to remove the special 3 case. This removes it, as it adds some code without commensurate benefit.
Commit migrated from https://github.com/dotnet/corefx/commit/a6320340d603d391e605f6a409a48f707f6e769b
These changes were made on the closed version of our library. Before
deleting that copy, I'm making sure the source code is in sync with the
open version.
Includes three TFS changes:
Changeset 1491194:
Enable latebound calls to DynamicObjects in VB.
Changeset 1461633:
Adjust implementation of HasSameMetadataDefinitionAs to be resilient to
failures of Expression.Compile.
Changeset 1478798:
Implementing the fix for more robust MetadataToken probing for VB
Commit migrated from https://github.com/dotnet/corefx/commit/ed34667ed0b762aa2ea5402e8c656b4ed095123d
Put capitalization fixes back in place after some merge conflicts removed them. These fixes work around a xplat nuget restore race condition when there are multiple capitalizations of the same package ID in one restore command.
Commit migrated from https://github.com/dotnet/corefx/commit/b0660c5eee295fc011f9b755b06ec3bfb50f1f12
Updated internal xplat nuget fork to allow the <clear/> and to bring in other fixes.
Fixed project.jsons to allow parallel restore. xplat nuget has a race condition when dependencies on the same package have different capitalization, so those were normalized towards uppercase.
[tfs-changeset: 1575564]
Commit migrated from https://github.com/dotnet/corefx/commit/11262b4f15d0d500564fe9f080513ff339c8a1ae