X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/80e2389990082500d76eb566d4946be3e786c3ef..d8f41ccd20de16f8ebe2ccc84d47bf1cb2b26bbb:/SecurityTests/clxutils/p12Parse/main.cpp diff --git a/SecurityTests/clxutils/p12Parse/main.cpp b/SecurityTests/clxutils/p12Parse/main.cpp new file mode 100644 index 00000000..c37ccd04 --- /dev/null +++ b/SecurityTests/clxutils/p12Parse/main.cpp @@ -0,0 +1,50 @@ +/* + * standalone pkcs12 parser. + */ +#include +#include +#include +#include +#include "p12Parse.h" +#include + +static void usage(char **argv) +{ + printf("Usage: %s infile password [v(erbose)\n", argv[0]); + exit(1); +} + +int main(int argc, char **argv) +{ + char *inFile; + CFStringRef pwd = NULL; + bool verbose = false; + + if(argc < 3) { + usage(argv); + } + for(int arg=3; arg