Skip to content

Commit

Permalink
Update main.m
Browse files Browse the repository at this point in the history
  • Loading branch information
bensh authored Aug 11, 2023
1 parent 50d3268 commit 97e94ed
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions main.m
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,6 @@ void printUsage() {
printToStdOut(@"<no flags>: Dump Password Keychain Items (Generic Password, Internet Passwords)\n");
printToStdOut(@"-a: Dump All Keychain Items (Generic Passwords, Internet Passwords, Identities, Certificates, and Keys)\n");
printToStdOut(@"-e: Dump Entitlements\n");
// printToStdOut(@"-g: Dump Generic Passwords\n");
// printToStdOut(@"-n: Dump Internet Passwords\n");
// printToStdOut(@"-i: Dump Identities\n");
// printToStdOut(@"-c: Dump Certificates\n");
// printToStdOut(@"-k: Dump Keys\n");
printToStdOut(@"-s: Dump Selected Entitlement Group\n");
printToStdOut(@"-l: List All Entitlement Groups\n");
printToStdOut(@"-f [group name]: Dump Filtered Group\n");
Expand Down Expand Up @@ -290,7 +285,7 @@ void dumpKeychainEntitlements() {
return [arguments autorelease];
}
}
while ((argument = getopt (argc, argv, "aegnickhslf")) != -1) {
while ((argument = getopt (argc, argv, "aehslf")) != -1) {
switch(argument) {
case 'f':
selectedEntitlementConstant = getGroupName();
Expand Down Expand Up @@ -323,20 +318,6 @@ void dumpKeychainEntitlements() {
case 'e':
[arguments addObject:@"dumpEntitlements"];
return [arguments autorelease];
// case 'g':
// [arguments addObject:(id)kSecClassGenericPassword];
// break;
// case 'n':
// [arguments addObject:(id)kSecClassInternetPassword];
// break;
// case 'i':
// [arguments addObject:(id)kSecClassIdentity];
// break;
// case 'c':
// [arguments addObject:(id)kSecClassCertificate];
// break;
// case 'k':
// [arguments addObject:(id)kSecClassKey];
break;
case 'h':
printUsage();
Expand Down

0 comments on commit 97e94ed

Please sign in to comment.