Bug in Security Framework?
Bug in Security Framework?
- Subject: Bug in Security Framework?
- From: email@hidden
- Date: Tue, 10 Jul 2001 21:18:52 +0200
Hello,
while reading the other issues about Security Framework I tried my own
example, freely after
http://www.stepwise.com/Articles/Technical/2001-03-26.01.html:
AuthorizationRef authoRef = NULL;
[...]
- (BOOL)authorizeFor:(NSString *)command {
AuthorizationRights rights;
AuthorizationFlags flags;
AuthorizationItem item[1];
OSStatus err = 0;
[...]
rights.count = 0;
rights.items = NULL;
flags = kAuthorizationFlagDefaults;
err = AuthorizationCreate(&rights, kAuthorizationEmptyEnvironment,
flags, &authoRef);
NSLog(@"autho err is: %d", err);
flags = 0;
err = AuthorizationFree(authoRef, flags);
NSLog(@"autho err is: %d", err);
}
Of course, later I want to insert more meaningful values, but here is,
what I get with this minimized example:
Jul 10 21:02:46 Disko[343] autho err is: -2147417886
Jul 10 21:02:46 Disko[343] autho err is: -2147418108
Neither of the functions would succeed or give meaningful errors. All
Errors I found in Authorization.h are in the -60000 area.
Any idea how to debug this issue?
Thanks,
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/