char *password = NULL;
ckmc_key_s *test_key = NULL;
-#ifndef PASSWORD_PROTECTION_DISABLE
RUNNER_ASSERT_MSG(
CKMC_ERROR_DB_LOCKED == (temp = ckmc_get_key(alias.c_str(), password, &test_key)),
CKMCReadableError(temp));
RUNNER_ASSERT_MSG(NULL == test_key, "Key value should not be changed");
-#else
- RUNNER_ASSERT_MSG(
- CKMC_ERROR_DB_ALIAS_UNKNOWN == (temp = ckmc_get_key(alias.c_str(), password, &test_key)),
- CKMCReadableError(temp));
-#endif
}
RUNNER_TEST(T3204_deinit)