#include <security_keychain/KCCursor.h>
#include <security_keychain/SecCFTypes.h>
#include <security_cdsa_utilities/Schema.h>
-#include <security_keychain/SecTrustSettingsPriv.h>
+#include <Security/SecTrustSettingsPriv.h>
namespace Security {
namespace KeychainCore {
try {
cert->copyTo(location); // add cert to the trust item's keychain
} catch (...) {
- secdebug("trusteval", "failed to add certificate %p to keychain \"%s\"",
+ secinfo("trusteval", "failed to add certificate %p to keychain \"%s\"",
cert, location->name());
try {
if (&*location != &*defaultKeychain)
cert->copyTo(defaultKeychain); // try the default (if it's not the same)
} catch (...) {
// unable to add the certificate
- secdebug("trusteval", "failed to add certificate %p to keychain \"%s\"",
+ secinfo("trusteval", "failed to add certificate %p to keychain \"%s\"",
cert, defaultKeychain->name());
}
}
try {
cert->copyTo(trustLocation); // add cert to the trust item's keychain
} catch (...) {
- secdebug("trusteval", "failed to add certificate %p to keychain \"%s\"",
+ secinfo("trusteval", "failed to add certificate %p to keychain \"%s\"",
cert, trustLocation->name());
try {
if (&*trustLocation != &*defaultKeychain)
cert->copyTo(defaultKeychain); // try the default (if it's not the same)
} catch (...) {
// unable to add the certificate
- secdebug("trusteval", "failed to add certificate %p to keychain \"%s\"",
+ secinfo("trusteval", "failed to add certificate %p to keychain \"%s\"",
cert, defaultKeychain->name());
}
}
// we no longer need or want to look for them anymore.
return ((ItemImpl*)NULL);
+#if 0
StLock<Mutex> _(mMutex);
try {
catch (const CommonError &error) {}
return ((ItemImpl*)NULL); // no trust schema, no records, no error
+#endif
}
void TrustStore::getCssmRootCertificates(CertGroup &rootCerts)
base += certData.Length;
}
- secdebug("anchors", "%ld anchors loaded", (long)numCerts);
+ secinfo("anchors", "%ld anchors loaded", (long)numCerts);
mRootsValid = true; // ready to roll
}