From 0800a7e36e9a02913f1702f12d5d6f9ca142f877 Mon Sep 17 00:00:00 2001 From: Bartlomiej Grzelewski Date: Wed, 4 Feb 2015 19:35:48 +0100 Subject: [PATCH 1/1] CKM: Adopt tests to new PKCS12 api. New api may take 2 passwords to decrypt data from pkcs12. Change-Id: I6ea8e33005ce0b7b1db5cb69a265a68f2cc72398 --- tests/ckm/async-api.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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( -- 2.7.4