CKM: Adopt tests to new PKCS12 api.
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Wed, 4 Feb 2015 18:35:48 +0000 (19:35 +0100)
committerMaciej J. Karpiuk <m.karpiuk2@samsung.com>
Wed, 18 Feb 2015 09:47:45 +0000 (10:47 +0100)
New api may take 2 passwords to decrypt data from pkcs12.

Change-Id: I6ea8e33005ce0b7b1db5cb69a265a68f2cc72398

tests/ckm/async-api.cpp

index 4547b3e..d4de100 100644 (file)
@@ -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(