Adapt test/keymgmt_internal_test.c to the redesigned interface
@@ -145,7 +145,7 @@ static int test_pass_rsa(FIXTURE *fixture)
BIGNUM *bn1 = NULL, *bn2 = NULL, *bn3 = NULL;
EVP_PKEY *pk = NULL;
EVP_KEYMGMT *km1 = NULL, *km2 = NULL;
- void *provdata = NULL;
+ void *provkey = NULL;
/*
* 32-bit RSA key, extracted from this command,
* executed with OpenSSL 1.0.2:
@@ -207,12 +207,13 @@ static int test_pass_rsa(FIXTURE *fixture)
|| !TEST_ptr_ne(km1, km2))
goto err;
- if (!TEST_ptr(evp_keymgmt_util_export_to_provider(pk, km1, 0))
- || !TEST_ptr(provdata =
- evp_keymgmt_util_export_to_provider(pk, km2, 0)))
+ if (!TEST_ptr(evp_keymgmt_util_export_to_provider(pk, km1))
+ || !TEST_ptr(provkey = evp_keymgmt_util_export_to_provider(pk, km2)))
goto err;
- if (!TEST_true(evp_keymgmt_exportkey(km2, provdata, &export_cb, keydata)))
+ if (!TEST_true(evp_keymgmt_export(km2, provkey,
+ OSSL_KEYMGMT_SELECT_KEYPAIR,
+ &export_cb, keydata)))
goto err;
/*
