ckmc_policy_s cert_policy;
ckmc_policy_s policy;
- cert_policy.password = NULL;
+ cert_policy.password = (char*)cert_password;
cert_policy.extractable = true;
- policy.password = NULL;
+ policy.password = (char*)key_password;
policy.extractable = true;
if ( false == KeyManagerAppendToAppDataPath(PATHPFX, pszFilePath) )
int nRet = ckmc_pkcs12_load(pszFilePath, PASSPHRASEPFX, &pkcs12); //Target API
PRINT_RESULT_CLEANUP(CKMC_ERROR_NONE, nRet, "ckmc_pkcs12_load", KeyMngrGetError(nRet), RemoveAlias(pszAlias));
- nRet = ckmc_save_pkcs12(pszAlias, pkcs12, cert_policy, policy);
+ nRet = ckmc_save_pkcs12(pszAlias, pkcs12, policy, cert_policy);
PRINT_RESULT_CLEANUP(CKMC_ERROR_NONE, nRet, "ckmc_save_pkcs12", KeyMngrGetError(nRet), RemoveAlias(pszAlias));
nRet = ckmc_get_pkcs12(pszAlias, key_password, cert_password, &pkcs12);