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

src: eliminate ManagedEVPPkey #54751

Closed
wants to merge 1 commit into from

Commits on Sep 9, 2024

  1. src: eliminate ManagedEVPPkey

    Prior to this change, the ManagedEVPPkey class added an
    additional layer of abstraction to the EVP_PKEY class
    that wasn't strictly necessary.
    
    Previously we had:
    
      KeyObjectHandle ->
          std::shared_ptr<KeyObjectData> ->
              ManagedEVPPkey ->
                  EVPKeyPointer
    
    After this change we have:
    
      KeyObjectHandle ->
          KeyObjectData ->
              EVPKeyPointer
    
    The `KeyObjectData` class no longer needs to be wrapped in
    std::shared_ptr but it will hold the underlying EVPKeyPointer
    in a std::shared_ptr.
    
    This greatly simplifies the abstraction and provides an overall
    reduction in code and complexity, although the changeset in this
    PR is fairly extensive to get there.
    
    This refactor is being done to simplify the codebase as part
    of the process of extracting crypto functionality to the
    separate ncrypto dep.
    jasnell committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    99dcd77 View commit details
    Browse the repository at this point in the history