iPhone/MYCrypto_iPhone_main.m
author Jens Alfke <jens@mooseyard.com>
Tue Jul 21 10:13:08 2009 -0700 (2009-07-21)
changeset 27 d0aadddb9c64
parent 0 0a6527af039b
permissions -rw-r--r--
MYCertificate now checks validity of self-signed certs loaded from the keychain (because the Security framework doesn't validate self-signed certs.)
snej@0
     1
//
snej@0
     2
//  main.m
snej@0
     3
//  MYCrypto-iPhone
snej@0
     4
//
snej@0
     5
//  Created by Jens Alfke on 3/30/09.
snej@0
     6
//  Copyright Jens Alfke 2009. All rights reserved.
snej@0
     7
//
snej@0
     8
snej@0
     9
#import <UIKit/UIKit.h>
snej@0
    10
snej@0
    11
int main(int argc, char *argv[]) {
snej@0
    12
    if (argc<2) {
snej@0
    13
        static char *testArgs[] = {"MYCrypto", "Test_All"};
snej@0
    14
        argc = 2;
snej@0
    15
        argv = testArgs;
snej@0
    16
    }
snej@0
    17
    RunTestCases(argc,(const char**)argv);
snej@0
    18
    
snej@0
    19
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
snej@0
    20
    int retVal = UIApplicationMain(argc, argv, nil, nil);
snej@0
    21
    [pool release];
snej@0
    22
    return retVal;
snej@0
    23
}