zkey: Fix convert command to use an associated APQN of a key

The zkey convert command must select an CCA adapter out of the
list of associated APQNs (if any) to perform the key conversion.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Ingo Franzki
2019-12-04 09:35:08 +01:00
committed by Jan Höppner
parent 9d1baaa594
commit 1fd78d9f5e

View File

@@ -4050,7 +4050,7 @@ int keystore_convert_key(struct keystore *keystore, const char *name,
if (rc)
goto out;
rc = select_cca_adapter_by_mkvp(cca, mkvp, NULL,
rc = select_cca_adapter_by_mkvp(cca, mkvp, apqns,
FLAG_SEL_CCA_MATCH_CUR_MKVP,
keystore->verbose);
if (rc == -ENOTSUP) {