summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-02-20 22:55:41 +0100
committerRichard Levitte <levitte@openssl.org>2020-02-29 05:39:43 +0100
commitbadf51c869d687f934e817f3bb4653acec0088ca (patch)
tree4b60c89e0aebf5341961874a25cde72c8d8fdaf9 /include
parentRethink the EVP_PKEY cache of provider side keys (diff)
downloadopenssl-badf51c869d687f934e817f3bb4653acec0088ca.tar.xz
openssl-badf51c869d687f934e817f3bb4653acec0088ca.zip
EVP: Add evp_pkey_upgrade_to_provider(), for EVP_PKEY upgrades
This function "upgrades" a key from a legacy key container to a provider side key container. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/11148)
Diffstat (limited to 'include')
-rw-r--r--include/crypto/evp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/crypto/evp.h b/include/crypto/evp.h
index aed2ccf31d..ddba4083e9 100644
--- a/include/crypto/evp.h
+++ b/include/crypto/evp.h
@@ -603,6 +603,9 @@ void evp_app_cleanup_int(void);
void *evp_pkey_export_to_provider(EVP_PKEY *pk, OPENSSL_CTX *libctx,
EVP_KEYMGMT **keymgmt,
const char *propquery);
+void *evp_pkey_upgrade_to_provider(EVP_PKEY *pk, OPENSSL_CTX *libctx,
+ EVP_KEYMGMT **keymgmt,
+ const char *propquery);
/*
* KEYMGMT utility functions