5 // Created by James Murphy on 12/11/12.
6 // Copyright (c) 2012 James Murphy. All rights reserved.
9 #import <Foundation/Foundation.h>
10 #import "PSIOSCertToolApp.h"
13 printf("%s usage:\n", [self.app_name UTF8String]);
14 printf(" [-h, --help] \tPrint out this help message\n");
15 printf(" [-r, --roots_dir] \tThe full path to the directory with the certificate roots\n");
16 printf(" [-k, --revoked_dir] \tThe full path to the directory with the revoked certificates\n");
17 printf(" [-d, --distrusted_dir] \tThe full path to the directory with the distrusted certificates\n");
18 printf(" [-c, --certs_dir] \tThe full path to the directory with the cert certificates\n");
19 printf(" [-e, --ev_plist_path] \tThe full path to the EVRoots.plist file\n");
20 printf(" [-t, --top_level_directory] \tThe full path to the top level security_certificates directory\n");
21 printf(" [-o, --output_directory] \tThe full path to the directory to write out the results\n");
25 int main(int argc, const char * argv[])
31 const char* myArgv[] =
34 "--top_level_directory",
35 "~/PR-10636667/security/certificates",
40 int myArgc = (sizeof(myArgv) / sizeof(const char*));
49 PSIOSCertToolApp* app = [[PSIOSCertToolApp alloc] init:argc withArguments:argv];
50 if (![app processCertificates])
52 NSLog(@"Could not process the certificate directories");
56 if (![app outputPlistsToDirectory])
58 NSLog(@"Could not output the plists");
64 NSLog(@"Could not validate the output plists");