diff options
author | Richard Levitte <levitte@openssl.org> | 2020-02-03 15:36:15 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-02-07 09:37:56 +0100 |
commit | 72ec9648fee5612a9cf83ed2df1c6c0e240fa7de (patch) | |
tree | 9d779909e27e3a341a4b4f44a0e3fb55c0d24a5b /test/keymgmt_internal_test.c | |
parent | Adapt existing KEYMGMT implementations to the redesigned interface (diff) | |
download | openssl-72ec9648fee5612a9cf83ed2df1c6c0e240fa7de.tar.xz openssl-72ec9648fee5612a9cf83ed2df1c6c0e240fa7de.zip |
Adapt test/keymgmt_internal_test.c to the redesigned interface
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 https://github.com/openssl/openssl/pull/11006)
Diffstat (limited to 'test/keymgmt_internal_test.c')
-rw-r--r-- | test/keymgmt_internal_test.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/keymgmt_internal_test.c b/test/keymgmt_internal_test.c index ccb5f7f9b5..ad2e1deb5c 100644 --- a/test/keymgmt_internal_test.c +++ b/test/keymgmt_internal_test.c @@ -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; /* |