free(certData);
}
+POSITIVE_TEST_CASE(T_vcore_client_get_certificate_list_from_store)
+{
+ CertSvcStoreCertList *achivedList;
+
+ size_t length = 0;
+ int result = vcore_client_get_certificate_list_from_store(VPN_STORE, ENABLED, &achivedList, &length);
+
+ BOOST_CHECK_EQUAL(result, CERTSVC_SUCCESS);
+ BOOST_CHECK_EQUAL(length, 1);
+
+ BOOST_CHECK_EQUAL(std::strcmp(achivedList->gname, ValidGname.c_str()), 0);
+ BOOST_CHECK_EQUAL(std::strcmp(achivedList->title, CommonName.c_str()), 0);
+
+ free(achivedList->gname);
+ free(achivedList->title);
+ free(achivedList);
+}
+
POSITIVE_TEST_CASE(T_vcore_client_delete_certificate_from_store)
{
int result;