We use evp_skey_alloc from several source files

It shouldn't be static

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28369)
This commit is contained in:
Dmitry Belyavskiy 2025-08-28 18:29:46 +02:00 committed by Neil Horman
parent 0de951ba9a
commit 3425da502d
2 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,7 @@ int EVP_SKEY_export(const EVP_SKEY *skey, int selection,
return evp_skeymgmt_export(skey->skeymgmt, skey->keydata, selection, export_cb, export_cbarg);
}
static EVP_SKEY *evp_skey_alloc(EVP_SKEYMGMT *skeymgmt)
EVP_SKEY *evp_skey_alloc(EVP_SKEYMGMT *skeymgmt)
{
EVP_SKEY *skey;

View File

@ -870,6 +870,7 @@ EVP_KEYMGMT *evp_keymgmt_fetch_from_prov(OSSL_PROVIDER *prov,
/*
* SKEYMGMT provider interface functions
*/
EVP_SKEY *evp_skey_alloc(EVP_SKEYMGMT *skeymgmt);
void evp_skeymgmt_freedata(const EVP_SKEYMGMT *keymgmt, void *keyddata);
void *evp_skeymgmt_import(const EVP_SKEYMGMT *skeymgmt, int selection, const OSSL_PARAM params[]);
int evp_skeymgmt_export(const EVP_SKEYMGMT *skeymgmt, void *keydata,