Detect read-only Oid at runtime.
authorKevin Jones <kevin@vcsjones.com>
Thu, 20 Aug 2020 17:39:10 +0000 (13:39 -0400)
committerGitHub <noreply@github.com>
Thu, 20 Aug 2020 17:39:10 +0000 (10:39 -0700)
commitc039f3c0682b3c6f82fcab2573c6d81e6eec61ad
treecf60b763a195dccac6bbd9e10d1fdbfac92537d1
parente79f856f8f14ba80cc327ad2a738901357cca806
Detect read-only Oid at runtime.

The compile-time approach doesn't work because Pkcs is shipped as a standalone package, so if the new asset runs on .NET Core 3.1 or 2.1 it would assume immutable Oids when they were still mutable.
src/libraries/System.Security.Cryptography.Pkcs/src/Internal/Cryptography/PkcsHelpers.cs