This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Repository navigation
System.Security.Cryptography.Xml - phase 2 (make it compile) - #14662
Merged
Merged
Conversation
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the initial work for phase 2 of dotnet/corefx#4278 (port System.Security.Cryptography.Xml from netfx to corefx).
There are a couple of areas that need review:
SRGetResourceStringthat doesn't require a default value (uses resource key as the default value). Not sure if this is the correct behaviour but the existing code does not use the second parameter.System.Security.txtintoStrings.resx. There seem to be a lot of unused strings in here, not sure if you want them trimmed.EncryptedXmlEvidencebecause as far as I can tell, there is no CAS in corefx).SignedXmlszOID_KEY_USAGE(2.5.29.15) because I can't find an existing constant to represent it. Let me know where you'd like this to live.X509Certificate2.GetAnyPublicKeytoX509Certificate2.PublicKey.Keybecause I can't find an equivalent method in corefx.ReadAdditionalXXXmethods because there's no Registry to read from.SymmetricKeyWrapCA5350because the directive was to port the code as-is.UtilsRegistry, substituting default values where they were previously read from the registry.[RegistryPermission]because, as far as I can tell, CAS does not exist in corefx.HexEncode/HexDecodemethods from X509Utils in netfx since there appear to be no public equivalents in corefx.KeyInfoX509DataCryptographicExceptionwas constructed withCAPI.CERT_E_CHAININGHRESULT constant. Linkedsrc/Interop/Common/src/Windows/Crypt32/Interop.certificates_types.csand usedInterop.Crypt32.CertChainPolicyErrors.CERT_E_CHAININGsince the associated message does not appear in the string resources.System.Security.Cryptography.Xml.csprojnow builds correctly, butSystem.Security.Cryptography.Xml.Tests.csprojdoes not. This appears to be due to the steps taken to exclude it from the build.