3 // Copyright (c) 2013-2014 Apple Inc. All Rights Reserved.
7 #include <CoreFoundation/CoreFoundation.h>
8 #include <Security/SecItem.h>
9 #include <Security/SecItemPriv.h>
10 #include <Security/SecBase.h>
11 #include <utilities/array_size.h>
12 #include <utilities/SecCFWrappers.h>
14 #include "Security_regressions.h"
16 static void tests(void) {
17 CFMutableDictionaryRef dict
= CFDictionaryCreateMutable(NULL
, 0, NULL
, NULL
);
18 CFDictionaryAddValue(dict
, kSecClass
, kSecClassGenericPassword
);
19 CFDictionaryAddValue(dict
, kSecAttrService
, CFSTR("test"));
20 CFDictionaryAddValue(dict
, kSecAttrAccessGroup
, kSecAttrAccessGroupToken
);
22 ok_status(SecItemAdd(dict
, NULL
));
23 ok_status(SecItemDelete(dict
));
28 int si_82_token_ag(int argc
, char *const *argv
) {