- CssmAllocator &alloc = CssmAllocator::standard();
- // @@@ Share this instance
- KeychainAclFactory aclFactory(alloc);
-
- const AccessCredentials *cred = aclFactory.keychainPromptUnlockCredentials();
-
- // @@@ Create a nice wrapper for building the default AclEntryPrototype.
- TypedList subject(alloc, CSSM_ACL_SUBJECT_TYPE_ANY);
- AclEntryPrototype protoType(subject);
- AuthorizationGroup &authGroup = protoType.authorization();
- CSSM_ACL_AUTHORIZATION_TAG tag = CSSM_ACL_AUTHORIZATION_ANY;
- authGroup.NumberOfAuthTags = 1;
- authGroup.AuthTags = &tag;
-
- const ResourceControlContext rcc(protoType, const_cast<AccessCredentials *>(cred));