SecKeychainItemRef item;
mem_cred_t *set;
OSStatus status;
+ int loaded = 0;
set = mem_cred_create();
- DBG1(DBG_CFG, "loading certificates from %s:", path);
+ DBG2(DBG_CFG, "loading certificates from %s:", path);
status = SecKeychainOpen(path, &keychain);
if (status == errSecSuccess)
{
BUILD_END);
if (cert)
{
- DBG1(DBG_CFG, " loaded '%Y'", cert->get_subject(cert));
+ DBG2(DBG_CFG, " loaded '%Y'", cert->get_subject(cert));
set->add_cert(set, TRUE, cert);
+ loaded++;
}
SecKeychainItemFreeAttributesAndData(NULL, data);
}
}
CFRelease(keychain);
}
+ DBG1(DBG_CFG, "loaded %d certificates from %s", loaded, path);
return set;
}