+void
+DefaultCredentials::keybagReferral(const UnlockReferralRecord &ref)
+{
+ secinfo("kcreferral", "processing type %ld referral", (long)ref.type());
+
+ try {
+ // assemble and add CSSM_SAMPLE_TYPE_KEYCHAIN_LOCK item
+ append(TypedList(allocator, CSSM_SAMPLE_TYPE_KEYCHAIN_LOCK,
+ new(allocator) ListElement(CSSM_WORDID_KEYBAG_KEY),
+ new(allocator) ListElement(allocator, CssmData::wrap(ref.dbGuid())),
+ new(allocator) ListElement(allocator, ref.get())
+ ));
+ } catch (...) {
+ }
+}