+//
+// Create an ANY style AclEntryInput.
+// This can be used to explicitly request wide-open authorization on a new CSSM object.
+//
+AclFactory::AnyResourceContext::AnyResourceContext(const CSSM_ACCESS_CREDENTIALS *cred)
+ : mAny(CSSM_ACL_SUBJECT_TYPE_ANY), mTag(CSSM_ACL_AUTHORIZATION_ANY)
+{
+ // set up an ANY/EVERYTHING AclEntryInput
+ input().proto().subject() += &mAny;
+ AuthorizationGroup &authGroup = input().proto().authorization();
+ authGroup.NumberOfAuthTags = 1;
+ authGroup.AuthTags = &mTag;
+
+ // install the cred (not copied)
+ credentials(cred);
+}
+