* @APPLE_LICENSE_HEADER_END@
*/
-#include <SecBase.h>
+#include <Security/SecBase.h>
#include <Security/SecAccess.h>
#include <Security/SecAccessPriv.h>
#include <Security/SecTrustedApplication.h>
CFRelease(debugStr);
#endif
- CFIndex rightsSize = numAcls > 0 ? numAcls : 1;
-
- CSSM_ACL_AUTHORIZATION_TAG rights[rightsSize];
- memset(rights, 0, sizeof(rights));
+ std::vector<CSSM_ACL_AUTHORIZATION_TAG> rights(numAcls);
for (CFIndex iCnt = 0; iCnt < numAcls; iCnt++)
{
{ CSSM_LIST_TYPE_UNKNOWN, &subject1, &subject2 },
false, // Delegate
// rights for this entry
- { (uint32)numAcls, rights },
+ { (uint32)numAcls, rights.data() },
// rest is defaulted
}
}