Skip to content

Crypto interop needs to be consolidated under src\Common\src\Interop\ #26541

Closed

Description

@stephentoub

There is duplication we really want to avoid. For example, CertNameToStr is used by both System.Security.Cryptography.X509Certificates and by System.Security.Cryptography.Pkcs, and they both contain their own copies of DllImports and higher-level helpers on top of them.

cc: @bartonjs

Activity

  1. adamgauthier commented on Jul 24, 2018

    @adamgauthier
    Contributor

    @stephentoub Hey, I'd like to start progress on this, seems like a good start for contributing 😄 I saw there was quite a lot of work to do, I was thinking I could split it in small PRs with each 1 to a few interop methods consolidated. It would reduce the scope, lead to faster progress and make it easier to review. Would that make sense or do you want 1 PR to do all of it?

  2. bartonjs commented on Jul 24, 2018

    @bartonjs
    Member

    @louisto Piecemeal is perfectly fine 😄.

  3. louisto commented on Jul 24, 2018

    @louisto
  4. bartonjs commented on Jul 24, 2018

    @bartonjs
    Member

    ::hangs his head in shame::

  5. transferred this issue fromdotnet/corefxon Jan 31, 2020
  6. added this to the 5.0 milestone on Jan 31, 2020
  7. added
    untriaged
    on Feb 23, 2020
  8. modified the milestones: 5.0.0, Future on Jul 7, 2020
  9. removed
    untriaged
    on Jul 7, 2020
  10. bartonjs commented on Jul 6, 2022

    @bartonjs
    Member

    A current scan for LibraryImport or DllImport in the cryptography projects shows nothing outside of src\Common\src\Interop (for product code, tests have a couple)

  11. ghost locked as resolved and limited conversation to collaborators on Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Securityenhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions