From: Bartlomiej Grzelewski Date: Wed, 4 Feb 2015 18:35:48 +0000 (+0100) Subject: CKM: Adopt tests to new PKCS12 api. X-Git-Tag: security-manager_5.5_testing~9^2~110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0800a7e36e9a02913f1702f12d5d6f9ca142f877;hp=09a72376bf1e4fd38cb9899b84a7094cc7f74ecd;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git CKM: Adopt tests to new PKCS12 api. New api may take 2 passwords to decrypt data from pkcs12. Change-Id: I6ea8e33005ce0b7b1db5cb69a265a68f2cc72398 --- diff --git a/tests/ckm/async-api.cpp b/tests/ckm/async-api.cpp index 4547b3e..d4de100 100644 --- a/tests/ckm/async-api.cpp +++ b/tests/ckm/async-api.cpp @@ -1356,17 +1356,23 @@ RUNNER_TEST(TA2010_PKCS_get) // fail - no entry test_negative(&ManagerAsync::getPKCS12, CKM_API_ERROR_DB_ALIAS_UNKNOWN, - "i-do-not-exist"); + "i-do-not-exist", + CKM::Password(), + CKM::Password()); // fail - not exportable test_negative(&ManagerAsync::getPKCS12, CKM_API_ERROR_NOT_EXPORTABLE, - dbc.alias(alias_PKCS_not_exportable.c_str())); + dbc.alias(alias_PKCS_not_exportable.c_str()), + CKM::Password(), + CKM::Password()); // success - exportable auto obs = test_positive(&ManagerAsync::getPKCS12, - dbc.alias(alias_PKCS_exportable.c_str())); + dbc.alias(alias_PKCS_exportable.c_str()), + CKM::Password(), + CKM::Password()); auto cert = obs->m_pkcs->getCertificate(); RUNNER_ASSERT_MSG_BT(