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

Refactor evp_pkey_make_provided() to do legacy to provider export #11074

Merged

Commits on Feb 22, 2020

  1. Refactor evp_pkey_make_provided() to do legacy to provider export

    Previously, evp-keymgmt_util_export_to_provider() took care of all
    kinds of exports of EVP_PKEYs to provider side keys, be it from its
    legacy key or from another provider side key.  This works most of the
    times, but there may be cases where the caller wants to be a bit more
    in control of what sort of export happens when.
    
    Also, when it's time to remove all legacy stuff, that job will be much
    easier if we have a better separation between legacy support and
    support of provided stuff, as far as we can take it.
    
    This changes moves the support of legacy key to provider side key
    export from evp-keymgmt_util_export_to_provider() to
    evp_pkey_make_provided(), and makes sure the latter is called from all
    EVP_PKEY functions that handle legacy stuff.
    
    Reviewed-by: Matt Caswell <matt@openssl.org>
    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    Reviewed-by: Paul Dale <paul.dale@oracle.com>
    (Merged from openssl#11074)
    levitte committed Feb 22, 2020
    Configuration menu
    Copy the full SHA
    3f7ce7f View commit details
    Browse the repository at this point in the history