//
AuthorizationGroup::AuthorizationGroup(const AclAuthorizationSet &auths, Allocator &alloc)
{
- NumberOfAuthTags = auths.size();
+ NumberOfAuthTags = (uint32)auths.size();
AuthTags = alloc.alloc<CSSM_ACL_AUTHORIZATION_TAG>(NumberOfAuthTags);
copy(auths.begin(), auths.end(), AuthTags); // happens to be sorted
}
AclOwnerPrototype *AutoAclOwnerPrototype::make()
{
if (!mAclOwnerPrototype) {
- mAclOwnerPrototype = new AclOwnerPrototype;
+ mAclOwnerPrototype = (AclOwnerPrototype*) mAllocator->malloc(sizeof(AclOwnerPrototype));
+ new (mAclOwnerPrototype) AclOwnerPrototype;
mAclOwnerPrototype->clearPod();
}
return mAclOwnerPrototype;