Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make System.Security.Cryptography.X509Certificates compliant with interop guidelines - part 2 #61010

Merged
merged 3 commits into from
Nov 3, 2021

Conversation

pedrobsaila
Copy link
Contributor

Fixes partially issue #51564
(this issue is still under progress, more PRs are to come)

This PR makes the following calls compliant with Interop gudielines :

  • Crypt32.CertGetCertificateContextPropertyString
  • Crypt32.CertSetCertificateContextProperty
  • Crypt32.CertGetNameString
  • Crypt32.CertDuplicateCertificateChain
  • Crypt32.CertDuplicateStore
  • Crypt32.SafeCertContextHandleWithKeyContainerDeletion
  • Crypt32.CertOpenStore
  • Crypt32.CertAddCertificateContextToStore
  • Crypt32.CertAddCertificateLinkToStore
  • Crypt32.CertEnumCertificatesInStore
  • Crypt32.PFXImportCertStore
  • Crypt32.CryptMsgGetParam
  • Crypt32.CertSerializeCertificateStoreElement
  • Crypt32.PFXExportCertStore
  • Crypt32.CertStrToName
  • Crypt32.CryptDecodeObject
  • Crypt32.CryptEncodeObject

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Oct 29, 2021
@ghost
Copy link

ghost commented Oct 29, 2021

Tagging subscribers to this area: @bartonjs, @vcsjones, @krwq, @GrabYourPitchforks
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes partially issue #51564
(this issue is still under progress, more PRs are to come)

This PR makes the following calls compliant with Interop gudielines :

  • Crypt32.CertGetCertificateContextPropertyString
  • Crypt32.CertSetCertificateContextProperty
  • Crypt32.CertGetNameString
  • Crypt32.CertDuplicateCertificateChain
  • Crypt32.CertDuplicateStore
  • Crypt32.SafeCertContextHandleWithKeyContainerDeletion
  • Crypt32.CertOpenStore
  • Crypt32.CertAddCertificateContextToStore
  • Crypt32.CertAddCertificateLinkToStore
  • Crypt32.CertEnumCertificatesInStore
  • Crypt32.PFXImportCertStore
  • Crypt32.CryptMsgGetParam
  • Crypt32.CertSerializeCertificateStoreElement
  • Crypt32.PFXExportCertStore
  • Crypt32.CertStrToName
  • Crypt32.CryptDecodeObject
  • Crypt32.CryptEncodeObject
Author: pedrobsaila
Assignees: -
Labels:

area-System.Security, community-contribution

Milestone: -

@pedrobsaila pedrobsaila changed the title make System.Security.Cryptography.Pkcs compliant with interop guidelines - part 2 make System.Security.Cryptography.X509Certificates compliant with interop guidelines - part 2 Oct 29, 2021
@@ -10,6 +10,7 @@
using System.Security.Cryptography.X509Certificates;

using Internal.Cryptography.Pal.Native;
using static Interop.Crypt32;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't add any using statics in this PR. It's nice to clearly see when we're moving over toward interop calls.

@bartonjs bartonjs merged commit f7be57f into dotnet:main Nov 3, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2021
@pedrobsaila pedrobsaila deleted the 51564/part3 branch March 5, 2022 10:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Security community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants