├── ThirdPartyCode ├── JSON v2.3.2 (iOS) │ ├── Tests │ │ ├── Data │ │ │ ├── bool.json │ │ │ ├── null.json │ │ │ ├── jsonchecker │ │ │ │ ├── fail29.json │ │ │ │ ├── fail30.json │ │ │ │ ├── fail16.json │ │ │ │ ├── fail31.json │ │ │ │ ├── fail2.json │ │ │ │ ├── fail24.json │ │ │ │ ├── fail33.json │ │ │ │ ├── fail4.json │ │ │ │ ├── fail8.json │ │ │ │ ├── fail23.json │ │ │ │ ├── fail27.json │ │ │ │ ├── fail28.json │ │ │ │ ├── fail9.json │ │ │ │ ├── fail19.json │ │ │ │ ├── fail20.json │ │ │ │ ├── fail5.json │ │ │ │ ├── fail6.json │ │ │ │ ├── fail7.json │ │ │ │ ├── fail11.json │ │ │ │ ├── fail12.json │ │ │ │ ├── fail14.json │ │ │ │ ├── fail25.json │ │ │ │ ├── README │ │ │ │ ├── fail15.json │ │ │ │ ├── fail17.json │ │ │ │ ├── fail21.json │ │ │ │ ├── fail22.json │ │ │ │ ├── fail3.json │ │ │ │ ├── fail26.json │ │ │ │ ├── fail32.json │ │ │ │ ├── fail13.json │ │ │ │ ├── fail18.json │ │ │ │ ├── pass2.json │ │ │ │ ├── fail1.json │ │ │ │ ├── fail10.json │ │ │ │ ├── pass2.json.terse │ │ │ │ ├── pass3.json.terse │ │ │ │ ├── pass3.json │ │ │ │ ├── pass3.json.pretty │ │ │ │ ├── pass2.json.pretty │ │ │ │ ├── pass1.json.terse │ │ │ │ ├── pass1.json │ │ │ │ └── pass1.json.pretty │ │ │ ├── bool.json.terse │ │ │ ├── null.json.terse │ │ │ ├── bool.json.pretty │ │ │ ├── json.org │ │ │ │ ├── README │ │ │ │ ├── 2.json.terse │ │ │ │ ├── 2.json │ │ │ │ ├── 1.json.terse │ │ │ │ ├── 3.json.terse │ │ │ │ ├── 2.json.pretty │ │ │ │ ├── 5.json.terse │ │ │ │ ├── 3.json │ │ │ │ ├── 1.json.pretty │ │ │ │ ├── 3.json.pretty │ │ │ │ ├── 1.json │ │ │ │ ├── 5.json │ │ │ │ ├── 5.json.pretty │ │ │ │ └── 4.json.terse │ │ │ ├── null.json.pretty │ │ │ ├── rfc4627 │ │ │ │ ├── README │ │ │ │ ├── a.json.terse │ │ │ │ ├── b.json.terse │ │ │ │ ├── a.json.pretty │ │ │ │ ├── a.json │ │ │ │ ├── b.json.pretty │ │ │ │ └── b.json │ │ │ ├── array.json.terse │ │ │ ├── format.json │ │ │ ├── format.json.terse │ │ │ ├── array.json │ │ │ ├── object.json.terse │ │ │ ├── object.json │ │ │ ├── number.json.terse │ │ │ ├── string-unicode.json.terse │ │ │ ├── format.json.pretty │ │ │ ├── string.json.terse │ │ │ ├── number.json │ │ │ ├── string-unicode.json.pretty │ │ │ ├── number.json.pretty │ │ │ ├── string-unicode.json │ │ │ ├── object.json.pretty │ │ │ ├── array.json.pretty │ │ │ ├── string.json │ │ │ ├── string-ctrl.json.terse │ │ │ ├── string.json.pretty │ │ │ ├── string-ctrl.json │ │ │ └── string-ctrl.json.pretty │ │ ├── ErrorTest.h │ │ ├── ProxyTest.h │ │ ├── MaxDepthTest.h │ │ ├── WriterTest.h │ │ ├── DataDrivenTest.h │ │ ├── AbstractTest.h │ │ └── AbstractTest.m │ ├── .gitignore │ ├── ReleaseChecklist.markdown │ ├── Tests-Info.plist │ ├── libjsontests-Info.plist │ ├── JSON-Info.plist │ ├── Readme.markdown │ ├── Scripts │ │ ├── RefreshOnlineDocs.sh │ │ └── InstallDocumentation.sh │ ├── Installation.markdown │ ├── LICENSE │ ├── Credits.markdown │ ├── Notes │ │ └── parser-benchmark.txt │ └── Classes │ │ ├── NSString+SBJSON.m │ │ ├── NSObject+SBJSON.m │ │ ├── NSString+SBJSON.h │ │ └── NSObject+SBJSON.h ├── asi-http-request-1.8 │ ├── .gitattributes │ ├── iPhone Sample │ │ ├── iphone-icon.png │ │ ├── Resources │ │ │ ├── info.png │ │ │ └── client.p12 │ │ ├── iphone-tests-icon.png │ │ ├── iPhone_Prefix.pch │ │ ├── DetailCell.h │ │ ├── RequestProgressCell.h │ │ ├── ToggleCell.h │ │ ├── InfoCell.h │ │ ├── main.m │ │ ├── iPhoneSampleAppDelegate.h │ │ ├── iPadSampleAppDelegate.h │ │ ├── SynchronousViewController.h │ │ ├── iPhoneSampleAppDelegate.m │ │ ├── AuthenticationViewController.h │ │ ├── ToggleCell.m │ │ ├── SampleViewController.h │ │ ├── UploadViewController.h │ │ ├── iPadSampleAppDelegate.m │ │ ├── WebPageViewController.h │ │ ├── RootViewController.h │ │ ├── Tests-Info.plist │ │ ├── iPhoneInfo.plist │ │ ├── QueueViewController.h │ │ ├── DetailCell.m │ │ ├── RequestProgressCell.m │ │ ├── iPadInfo.plist │ │ └── InfoCell.m │ ├── Mac.xcodeproj │ │ └── TemplateIcon.icns │ ├── Mac Sample │ │ ├── English.lproj │ │ │ └── InfoPlist.strings │ │ ├── Mac_Prefix.pch │ │ ├── main.m │ │ ├── Info.plist │ │ ├── Tests-Info.plist │ │ └── AppDelegate.h │ ├── .gitignore │ ├── Classes │ │ ├── Tests │ │ │ ├── BlocksTests.h │ │ │ ├── ASIDataCompressorTests.h │ │ │ ├── ASIWebPageRequestTests.h │ │ │ ├── ASICloudFilesRequestTests.h │ │ │ ├── ASIDownloadCacheTests.h │ │ │ ├── ASITestCase.h │ │ │ ├── ASIFormDataRequestTests.h │ │ │ ├── ClientCertificateTests.h │ │ │ ├── ASIS3RequestTests.h │ │ │ ├── ASITestCase.m │ │ │ ├── PerformanceTests.h │ │ │ ├── ProxyTests.h │ │ │ ├── StressTests.h │ │ │ ├── ASIWebPageRequestTests.m │ │ │ ├── ASIHTTPRequestTests.h │ │ │ └── ASINetworkQueueTests.h │ │ ├── CloudFiles │ │ │ ├── ASICloudFilesObject.m │ │ │ ├── ASICloudFilesContainer.m │ │ │ ├── ASICloudFilesObject.h │ │ │ ├── ASICloudFilesContainerXMLParserDelegate.h │ │ │ ├── ASICloudFilesContainer.h │ │ │ ├── ASICloudFilesRequest.h │ │ │ ├── ASICloudFilesContainerRequest.h │ │ │ ├── ASICloudFilesCDNRequest.h │ │ │ └── ASICloudFilesContainerXMLParserDelegate.m │ │ ├── S3 │ │ │ ├── ASIS3Bucket.m │ │ │ ├── ASIS3ServiceRequest.h │ │ │ ├── ASINSXMLParserCompat.h │ │ │ ├── ASIS3Bucket.h │ │ │ ├── ASIS3BucketObject.h │ │ │ ├── ASIS3BucketObject.m │ │ │ └── ASIS3BucketRequest.h │ │ ├── ASIInputStream.h │ │ ├── ASIHTTPRequestConfig.h │ │ ├── ASIAuthenticationDialog.h │ │ ├── ASIHTTPRequestDelegate.h │ │ ├── ASIProgressDelegate.h │ │ ├── ASIDataDecompressor.h │ │ ├── ASIDataCompressor.h │ │ └── ASIDownloadCache.h │ ├── Build Scripts │ │ ├── set_version_number.rb │ │ ├── fetch_mac_ghunit.rb │ │ └── fetch_ios_ghunit.rb │ ├── strict.xcconfig │ ├── DONORS │ ├── LICENSE │ └── README.textile └── ios-openssl │ ├── lib │ ├── libssl.a │ └── libcrypto.a │ ├── openssl-1.0.0a.tar.gz │ ├── Example │ ├── Example_Prefix.pch │ ├── Classes │ │ ├── ExampleViewController.h │ │ ├── ExampleAppDelegate.h │ │ └── ExampleViewController.m │ ├── main.m │ └── Example-Info.plist │ ├── include │ └── openssl │ │ ├── ebcdic.h │ │ ├── whrlpool.h │ │ ├── comp.h │ │ └── modes.h │ └── README ├── sclogo.png ├── Classes ├── Constants.h ├── NSString+SHA.h ├── StatementsViewController.h ├── Constants.m ├── NSString+Random.h ├── AccountsViewController.h ├── SessionManager.h ├── Utilities.h ├── Crypto.h ├── TransferFundsViewController.h ├── StatementDetailViewController.h ├── Networking.h ├── MenuViewController.h ├── Account.h ├── NSString+SHA.m ├── BankAppDelegate.h ├── NSString+Random.m ├── Account.m ├── SelectAccountViewController.h ├── CheckPasswordViewController.h ├── SessionManager.m ├── SetupPasswordViewController.h ├── StatementDetailViewController.m ├── LoginViewController.h ├── Utilities.m ├── Crypto.m ├── SelectAccountViewController.m └── CheckPasswordViewController.m ├── Settings.bundle ├── en.lproj │ └── Root.strings └── Root.plist ├── Bank_Prefix.pch ├── main.m ├── Errors.plist ├── README.markdown ├── Bank-Info.plist └── LICENSE /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/bool.json: -------------------------------------------------------------------------------- 1 | [true,false] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/null.json: -------------------------------------------------------------------------------- 1 | [null,null] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail29.json: -------------------------------------------------------------------------------- 1 | [0e] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail30.json: -------------------------------------------------------------------------------- 1 | [0e+] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/bool.json.terse: -------------------------------------------------------------------------------- 1 | [true,false] 2 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail16.json: -------------------------------------------------------------------------------- 1 | [\naked] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail31.json: -------------------------------------------------------------------------------- 1 | [0e+-1] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/null.json.terse: -------------------------------------------------------------------------------- 1 | [null,null] 2 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.pbxuser 3 | build 4 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail2.json: -------------------------------------------------------------------------------- 1 | ["Unclosed array" -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail24.json: -------------------------------------------------------------------------------- 1 | ['single quote'] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail33.json: -------------------------------------------------------------------------------- 1 | ["mismatch"} -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail4.json: -------------------------------------------------------------------------------- 1 | ["extra comma",] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail8.json: -------------------------------------------------------------------------------- 1 | ["Extra close"]] -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -crlf -diff -merge 2 | -------------------------------------------------------------------------------- /sclogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecurityCompass/iPhoneLabs/HEAD/sclogo.png -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail23.json: -------------------------------------------------------------------------------- 1 | ["Bad value", truth] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail27.json: -------------------------------------------------------------------------------- 1 | ["line 2 | break"] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail28.json: -------------------------------------------------------------------------------- 1 | ["line\ 2 | break"] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail9.json: -------------------------------------------------------------------------------- 1 | {"Extra comma": true,} -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail19.json: -------------------------------------------------------------------------------- 1 | {"Missing colon" null} -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail20.json: -------------------------------------------------------------------------------- 1 | {"Double colon":: null} -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail5.json: -------------------------------------------------------------------------------- 1 | ["double extra comma",,] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail6.json: -------------------------------------------------------------------------------- 1 | [ , "<-- missing value"] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail7.json: -------------------------------------------------------------------------------- 1 | ["Comma after the close"], -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/bool.json.pretty: -------------------------------------------------------------------------------- 1 | [ 2 | true, 3 | false 4 | ] 5 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/json.org/README: -------------------------------------------------------------------------------- 1 | Source: http://json.org/example.html -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail11.json: -------------------------------------------------------------------------------- 1 | {"Illegal expression": 1 + 2} -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail12.json: -------------------------------------------------------------------------------- 1 | {"Illegal invocation": alert()} -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail14.json: -------------------------------------------------------------------------------- 1 | {"Numbers cannot be hex": 0x14} -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail25.json: -------------------------------------------------------------------------------- 1 | [" tab character in string "] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/null.json.pretty: -------------------------------------------------------------------------------- 1 | [ 2 | null, 3 | null 4 | ] 5 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/README: -------------------------------------------------------------------------------- 1 | Source: http://json.org/JSON_checker/ -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail15.json: -------------------------------------------------------------------------------- 1 | ["Illegal backslash escape: \x15"] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail17.json: -------------------------------------------------------------------------------- 1 | ["Illegal backslash escape: \017"] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail21.json: -------------------------------------------------------------------------------- 1 | {"Comma instead of colon", null} -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail22.json: -------------------------------------------------------------------------------- 1 | ["Colon instead of comma": false] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail3.json: -------------------------------------------------------------------------------- 1 | {unquoted_key: "keys must be quoted"} -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail26.json: -------------------------------------------------------------------------------- 1 | ["tab\ character\ in\ string\ "] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail32.json: -------------------------------------------------------------------------------- 1 | {"Comma instead if closing brace": true, -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail13.json: -------------------------------------------------------------------------------- 1 | {"Numbers cannot have leading zeroes": 013} -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/rfc4627/README: -------------------------------------------------------------------------------- 1 | Source: http://www.ietf.org/rfc/rfc4627.txt?number=4627 -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/array.json.terse: -------------------------------------------------------------------------------- 1 | [[],["foo"],["foo",["bar"]],["foo",["bar",["quux"]]]] 2 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/format.json: -------------------------------------------------------------------------------- 1 | ["one",2,{"foo":null,"quux":true,"bar":[1, 2, []]},{}] 2 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/format.json.terse: -------------------------------------------------------------------------------- 1 | ["one",2,{"bar":[1,2,[]],"foo":null,"quux":true},{}] 2 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail18.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/pass2.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /Classes/Constants.h: -------------------------------------------------------------------------------- 1 | // Constants.h 2 | 3 | #import 4 | 5 | extern NSString* kDefaultBankServiceURL; -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail1.json: -------------------------------------------------------------------------------- 1 | "A JSON payload should be an object or array, not a string." -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/fail10.json: -------------------------------------------------------------------------------- 1 | {"Extra value after close": true} "misplaced quoted value" -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/array.json: -------------------------------------------------------------------------------- 1 | [ 2 | [], 3 | ["foo"], 4 | ["foo",["bar"]], 5 | ["foo",["bar",["quux"]]] 6 | ] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/pass2.json.terse: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]] 2 | -------------------------------------------------------------------------------- /Settings.bundle/en.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecurityCompass/iPhoneLabs/HEAD/Settings.bundle/en.lproj/Root.strings -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/object.json.terse: -------------------------------------------------------------------------------- 1 | [{},{"foo":"bar"},{"foo":{"bar":"quux"}},{"foo":{"bar":{"quux":{}}}}] 2 | -------------------------------------------------------------------------------- /ThirdPartyCode/ios-openssl/lib/libssl.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecurityCompass/iPhoneLabs/HEAD/ThirdPartyCode/ios-openssl/lib/libssl.a -------------------------------------------------------------------------------- /ThirdPartyCode/ios-openssl/lib/libcrypto.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecurityCompass/iPhoneLabs/HEAD/ThirdPartyCode/ios-openssl/lib/libcrypto.a -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/object.json: -------------------------------------------------------------------------------- 1 | [ 2 | {}, 3 | {"foo":"bar"}, 4 | {"foo":{"bar":"quux"}}, 5 | {"foo":{"bar":{"quux":{}}}} 6 | ] -------------------------------------------------------------------------------- /ThirdPartyCode/ios-openssl/openssl-1.0.0a.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecurityCompass/iPhoneLabs/HEAD/ThirdPartyCode/ios-openssl/openssl-1.0.0a.tar.gz -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/number.json.terse: -------------------------------------------------------------------------------- 1 | [-333,-333000,-4,-5,-9999,0.0001,0,10000,1,2.5,4,50,66.6,98877665544332211009988776655443322110,99.99,5] 2 | -------------------------------------------------------------------------------- /Classes/NSString+SHA.h: -------------------------------------------------------------------------------- 1 | // NSString+SHA.h 2 | 3 | #import 4 | 5 | @interface NSString (SHA) 6 | 7 | - (NSData*) SHA256Hash; 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/pass3.json.terse: -------------------------------------------------------------------------------- 1 | {"JSON Test Pattern pass3":{"In this test":"It is an object.","The outermost value":"must be an object or array."}} 2 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/iphone-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecurityCompass/iPhoneLabs/HEAD/ThirdPartyCode/asi-http-request-1.8/iPhone Sample/iphone-icon.png -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Mac.xcodeproj/TemplateIcon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecurityCompass/iPhoneLabs/HEAD/ThirdPartyCode/asi-http-request-1.8/Mac.xcodeproj/TemplateIcon.icns -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/Resources/info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecurityCompass/iPhoneLabs/HEAD/ThirdPartyCode/asi-http-request-1.8/iPhone Sample/Resources/info.png -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/Resources/client.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecurityCompass/iPhoneLabs/HEAD/ThirdPartyCode/asi-http-request-1.8/iPhone Sample/Resources/client.p12 -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/iphone-tests-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecurityCompass/iPhoneLabs/HEAD/ThirdPartyCode/asi-http-request-1.8/iPhone Sample/iphone-tests-icon.png -------------------------------------------------------------------------------- /Classes/StatementsViewController.h: -------------------------------------------------------------------------------- 1 | // StatementsViewController.h 2 | 3 | #import 4 | 5 | @interface StatementsViewController : UITableViewController { 6 | NSArray* _statements; 7 | } 8 | 9 | @end -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Mac Sample/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecurityCompass/iPhoneLabs/HEAD/ThirdPartyCode/asi-http-request-1.8/Mac Sample/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /Classes/Constants.m: -------------------------------------------------------------------------------- 1 | // Constants.m 2 | 3 | /** 4 | * The URL base of the bank API. This is used to construct all URLs in the application. 5 | */ 6 | 7 | NSString* kDefaultBankServiceURL = @"http://localhost:8080"; 8 | -------------------------------------------------------------------------------- /Bank_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Bank' target in the 'Bank' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | -------------------------------------------------------------------------------- /Classes/NSString+Random.h: -------------------------------------------------------------------------------- 1 | // NSString+Random.h 2 | 3 | #import 4 | 5 | @interface NSString (NSString_Random) 6 | 7 | + (id) randomStringWithLength: (NSUInteger) length; 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/ReleaseChecklist.markdown: -------------------------------------------------------------------------------- 1 | * Update Changes.markdown 2 | * agvtool new-marketing-version XXX 3 | * agvtool bump 4 | * update website 5 | * Refresh API documentation 6 | * close fixed tickets 7 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/pass3.json: -------------------------------------------------------------------------------- 1 | { 2 | "JSON Test Pattern pass3": { 3 | "The outermost value": "must be an object or array.", 4 | "In this test": "It is an object." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/pass3.json.pretty: -------------------------------------------------------------------------------- 1 | { 2 | "JSON Test Pattern pass3" : { 3 | "In this test" : "It is an object.", 4 | "The outermost value" : "must be an object or array." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/string-unicode.json.terse: -------------------------------------------------------------------------------- 1 | {"42é42≥42":"e-acute and greater-than-or-equal-to, and 42","é":"e-acute with upper-case hex","é≥":"e-acute and greater-than-or-equal-to","턞":"G-clef (UTF16 surrogate pair)"} 2 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/format.json.pretty: -------------------------------------------------------------------------------- 1 | [ 2 | "one", 3 | 2, 4 | { 5 | "bar" : [ 6 | 1, 7 | 2, 8 | [] 9 | ], 10 | "foo" : null, 11 | "quux" : true 12 | }, 13 | {} 14 | ] 15 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/json.org/2.json.terse: -------------------------------------------------------------------------------- 1 | {"menu":{"id":"file","popup":{"menuitem":[{"onclick":"CreateNewDoc()","value":"New"},{"onclick":"OpenDoc()","value":"Open"},{"onclick":"CloseDoc()","value":"Close"}]},"value":"File"}} 2 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/rfc4627/a.json.terse: -------------------------------------------------------------------------------- 1 | {"Image":{"Height":600,"IDs":[116,943,234,38793],"Thumbnail":{"Height":125,"Url":"http://www.example.com/image/481989943","Width":"100"},"Title":"View from 15th Floor","Width":800}} 2 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Mac Sample/Mac_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Mac OS Sample Application' target in the 'asi-http-request' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/string.json.terse: -------------------------------------------------------------------------------- 1 | [""," spaces ","/","\\ \" \\ \"","foo\"","foo\"\"","foo\"\"bar","foo\"bar","foo\\","foo\\\\bar","foo\\bar","foobar","with internal spaces","/unescaped/slashes","/escaped/slashes","\\/test\\/path"] 2 | -------------------------------------------------------------------------------- /ThirdPartyCode/ios-openssl/Example/Example_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Example' target in the 'Example' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/number.json: -------------------------------------------------------------------------------- 1 | [ 2 | -333e+0, 3 | -333e+3, 4 | -4, 5 | -5, 6 | -9999, 7 | 0.0001, 8 | 0, 9 | 10000, 10 | 1, 11 | 2.5, 12 | 4, 13 | 5e1, 14 | 666e-1, 15 | 98877665544332211009988776655443322110, 16 | 99.99, 17 | 5 18 | ] 19 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | *xcodeproj/*mode* 3 | *xcodeproj/*pbxuser 4 | *xcodeproj/*per* 5 | *xcodeproj/project.xcworkspace 6 | *xcodeproj/xcuserdata 7 | *tmproj 8 | .DS_Store 9 | profile 10 | *.pbxuser 11 | *.mode1v3 12 | External/GHUnit/* 13 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/string-unicode.json.pretty: -------------------------------------------------------------------------------- 1 | { 2 | "42é42≥42" : "e-acute and greater-than-or-equal-to, and 42", 3 | "é" : "e-acute with upper-case hex", 4 | "é≥" : "e-acute and greater-than-or-equal-to", 5 | "턞" : "G-clef (UTF16 surrogate pair)" 6 | } 7 | -------------------------------------------------------------------------------- /Classes/AccountsViewController.h: -------------------------------------------------------------------------------- 1 | // AccountsViewController.h 2 | 3 | #import 4 | #import "ASIHTTPRequest.h" 5 | 6 | @interface AccountsViewController : UITableViewController { 7 | @private 8 | NSMutableArray* _accounts; 9 | } 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/number.json.pretty: -------------------------------------------------------------------------------- 1 | [ 2 | -333, 3 | -333000, 4 | -4, 5 | -5, 6 | -9999, 7 | 0.0001, 8 | 0, 9 | 10000, 10 | 1, 11 | 2.5, 12 | 4, 13 | 50, 14 | 66.6, 15 | 98877665544332211009988776655443322110, 16 | 99.99, 17 | 5 18 | ] 19 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/string-unicode.json: -------------------------------------------------------------------------------- 1 | { 2 | "\u00e9\u2265": "e-acute and greater-than-or-equal-to", 3 | "42\u00e942\u226542": "e-acute and greater-than-or-equal-to, and 42", 4 | "\u00E9": "e-acute with upper-case hex", 5 | "\uD834\uDD1E": "G-clef (UTF16 surrogate pair)" 6 | } 7 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/object.json.pretty: -------------------------------------------------------------------------------- 1 | [ 2 | {}, 3 | { 4 | "foo" : "bar" 5 | }, 6 | { 7 | "foo" : { 8 | "bar" : "quux" 9 | } 10 | }, 11 | { 12 | "foo" : { 13 | "bar" : { 14 | "quux" : {} 15 | } 16 | } 17 | } 18 | ] 19 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/array.json.pretty: -------------------------------------------------------------------------------- 1 | [ 2 | [], 3 | [ 4 | "foo" 5 | ], 6 | [ 7 | "foo", 8 | [ 9 | "bar" 10 | ] 11 | ], 12 | [ 13 | "foo", 14 | [ 15 | "bar", 16 | [ 17 | "quux" 18 | ] 19 | ] 20 | ] 21 | ] 22 | -------------------------------------------------------------------------------- /Classes/SessionManager.h: -------------------------------------------------------------------------------- 1 | // SessionManager.h 2 | 3 | #import 4 | 5 | @interface SessionManager : NSObject { 6 | @private 7 | NSString* _sessionKey; 8 | } 9 | 10 | + (id) sharedSessionManager; 11 | 12 | - (void) invalidate; 13 | 14 | @property (nonatomic,retain) NSString* sessionKey; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/rfc4627/b.json.terse: -------------------------------------------------------------------------------- 1 | [{"Address":"","City":"SAN FRANCISCO","Country":"US","Latitude":37.7668,"Longitude":-122.3959,"State":"CA","Zip":"94107","precision":"zip"},{"Address":"","City":"SUNNYVALE","Country":"US","Latitude":37.371991,"Longitude":-122.02602,"State":"CA","Zip":"94085","precision":"zip"}] 2 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/json.org/2.json: -------------------------------------------------------------------------------- 1 | {"menu": { 2 | "id": "file", 3 | "value": "File", 4 | "popup": { 5 | "menuitem": [ 6 | {"value": "New", "onclick": "CreateNewDoc()"}, 7 | {"value": "Open", "onclick": "OpenDoc()"}, 8 | {"value": "Close", "onclick": "CloseDoc()"} 9 | ] 10 | } 11 | }} 12 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/string.json: -------------------------------------------------------------------------------- 1 | [ 2 | "", 3 | " spaces ", 4 | "/", 5 | "\\ \" \\ \"", 6 | "foo\"", 7 | "foo\"\"", 8 | "foo\"\"bar", 9 | "foo\"bar", 10 | "foo\\", 11 | "foo\\\\bar", 12 | "foo\\bar", 13 | "foobar", 14 | "with internal spaces", 15 | "/unescaped/slashes", 16 | "\/escaped\/slashes", 17 | "\\/test\\/path" 18 | ] 19 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/string-ctrl.json.terse: -------------------------------------------------------------------------------- 1 | ["\b","\t","\n","\f","\r","\u0000","\u0001","\u0002","\u0003","\u0004","\u0005","\u0006","\u0007","\b","\t","\n","\u000b","\f","\r","\u000e","\u000f","\u0010","\u0011","\u0012","\u0013","\u0014","\u0015","\u0016","\u0017","\u0018","\u0019","\u001a","\u001b","\u001c","\u001d","\u001e","\u001f"," "] 2 | -------------------------------------------------------------------------------- /Classes/Utilities.h: -------------------------------------------------------------------------------- 1 | // Utilities.h 2 | 3 | #import 4 | 5 | void BankDisplayAlertView(NSString* message, id delegate); 6 | void BankDisplayErrorAlertView(NSError* error, id delegate); 7 | void BankDisplayApplicationErrorAlertView(NSString* applicationError, id delegate); 8 | 9 | NSString* BankEscapeQueryParameter(NSString* string); 10 | -------------------------------------------------------------------------------- /ThirdPartyCode/ios-openssl/Example/Classes/ExampleViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ExampleViewController.h 3 | // Example 4 | // 5 | // Created by Stefan Arentz on 10-10-05. 6 | // Copyright 2010 Arentz Consulting. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ExampleViewController : UIViewController { 12 | 13 | } 14 | 15 | @end 16 | 17 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/Tests/BlocksTests.h: -------------------------------------------------------------------------------- 1 | // 2 | // BlocksTests.h 3 | // Mac 4 | // 5 | // Created by Ben Copsey on 18/10/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ASITestCase.h" 11 | 12 | @interface BlocksTests : ASITestCase { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/string.json.pretty: -------------------------------------------------------------------------------- 1 | [ 2 | "", 3 | " spaces ", 4 | "/", 5 | "\\ \" \\ \"", 6 | "foo\"", 7 | "foo\"\"", 8 | "foo\"\"bar", 9 | "foo\"bar", 10 | "foo\\", 11 | "foo\\\\bar", 12 | "foo\\bar", 13 | "foobar", 14 | "with internal spaces", 15 | "/unescaped/slashes", 16 | "/escaped/slashes", 17 | "\\/test\\/path" 18 | ] 19 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/iPhone_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'iPhone' target in the 'iPhone' project 3 | // 4 | 5 | // See: https://devforums.apple.com/thread/66169?start=25&tstart=0 6 | #import 7 | 8 | #ifdef __OBJC__ 9 | #import 10 | #import 11 | #endif 12 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Mac Sample/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // Mac-Os-Sample-main.m 3 | // asi-http-request 4 | // 5 | // Created by Ben Copsey on 09/07/2008. 6 | // Copyright 2008 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | return NSApplicationMain(argc, (const char **) argv); 14 | } 15 | -------------------------------------------------------------------------------- /Classes/Crypto.h: -------------------------------------------------------------------------------- 1 | // Crypto.h 2 | 3 | #import 4 | 5 | NSData* BankGenerateRandomSalt(NSUInteger length); 6 | NSData* BankGenerateRandomIV(); 7 | 8 | NSData* BankHashLocalPassword(NSString* password, NSData* salt); 9 | 10 | NSData* BankEncryptString(NSString* string, NSData* key, NSData* iv); 11 | NSData* BankDecryptString(NSString* string, NSData* key, NSData* iv); 12 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/Tests/ASIDataCompressorTests.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIDataCompressorTests.h 3 | // Mac 4 | // 5 | // Created by Ben Copsey on 17/08/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ASITestCase.h" 11 | 12 | @interface ASIDataCompressorTests : ASITestCase { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/Tests/ASIWebPageRequestTests.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIWebPageRequestTests.h 3 | // Mac 4 | // 5 | // Created by Ben Copsey on 06/01/2011. 6 | // Copyright 2011 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ASITestCase.h" 11 | 12 | @interface ASIWebPageRequestTests : ASITestCase { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Classes/TransferFundsViewController.h: -------------------------------------------------------------------------------- 1 | // TransferFundsViewController.h 2 | 3 | #import 4 | #import "SelectAccountViewController.h" 5 | 6 | @interface TransferFundsViewController : UITableViewController { 7 | @private 8 | NSUInteger _selectedRow; 9 | NSArray* _accounts; 10 | NSUInteger _fromAccountIndex; 11 | NSUInteger _toAccountIndex; 12 | } 13 | 14 | @end -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/json.org/1.json.terse: -------------------------------------------------------------------------------- 1 | {"glossary":{"GlossDiv":{"GlossList":{"GlossEntry":{"Abbrev":"ISO 8879:1986","Acronym":"SGML","GlossDef":{"GlossSeeAlso":["GML","XML"],"para":"A meta-markup language, used to create markup languages such as DocBook."},"GlossSee":"markup","GlossTerm":"Standard Generalized Markup Language","ID":"SGML","SortAs":"SGML"}},"title":"S"},"title":"example glossary"}} 2 | -------------------------------------------------------------------------------- /Classes/StatementDetailViewController.h: -------------------------------------------------------------------------------- 1 | // StatementDetailViewController.h 2 | 3 | #import 4 | 5 | @interface StatementDetailViewController : UIViewController { 6 | @private 7 | NSString* _statementName; 8 | @private 9 | UIWebView* _webView; 10 | } 11 | 12 | @property (nonatomic,assign) IBOutlet UIWebView* webView; 13 | 14 | - (id) initWithStatementName: (NSString*) statementName; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/rfc4627/a.json.pretty: -------------------------------------------------------------------------------- 1 | { 2 | "Image" : { 3 | "Height" : 600, 4 | "IDs" : [ 5 | 116, 6 | 943, 7 | 234, 8 | 38793 9 | ], 10 | "Thumbnail" : { 11 | "Height" : 125, 12 | "Url" : "http://www.example.com/image/481989943", 13 | "Width" : "100" 14 | }, 15 | "Title" : "View from 15th Floor", 16 | "Width" : 800 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/rfc4627/a.json: -------------------------------------------------------------------------------- 1 | { 2 | "Image": { 3 | "Width": 800, 4 | "Height": 600, 5 | "Title": "View from 15th Floor", 6 | "Thumbnail": { 7 | "Url": "http://www.example.com/image/481989943", 8 | "Height": 125, 9 | "Width": "100" 10 | }, 11 | "IDs": [116, 943, 234, 38793] 12 | } 13 | } -------------------------------------------------------------------------------- /main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Bank 4 | // 5 | // Created by Stefan Arentz on 11-03-08. 6 | // Copyright 2011 Arentz Consulting. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) { 12 | 13 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 14 | int retVal = UIApplicationMain(argc, argv, nil, nil); 15 | [pool release]; 16 | return retVal; 17 | } 18 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/json.org/3.json.terse: -------------------------------------------------------------------------------- 1 | {"widget":{"debug":"on","image":{"alignment":"center","hOffset":250,"name":"sun1","src":"Images/Sun.png","vOffset":250},"text":{"alignment":"center","data":"Click Here","hOffset":250,"name":"text1","onMouseUp":"sun1.opacity = (sun1.opacity / 100) * 90;","size":36,"style":"bold","vOffset":100},"window":{"height":500,"name":"main_window","title":"Sample Konfabulator Widget","width":500}}} 2 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/Tests/ASICloudFilesRequestTests.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASICloudFilesRequestTests.h 3 | // 4 | // Created by Michael Mayo on 1/6/10. 5 | // 6 | 7 | #import "ASITestCase.h" 8 | 9 | @class ASINetworkQueue; 10 | 11 | @interface ASICloudFilesRequestTests : ASITestCase { 12 | ASINetworkQueue *networkQueue; 13 | float progress; 14 | } 15 | 16 | @property (retain,nonatomic) ASINetworkQueue *networkQueue; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/Tests/ASIDownloadCacheTests.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIDownloadCacheTests.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 03/05/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import "ASITestCase.h" 10 | 11 | 12 | @interface ASIDownloadCacheTests : ASITestCase { 13 | NSUInteger requestsFinishedCount; 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/DetailCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // DetailCell.h 3 | // Part of the ASIHTTPRequest sample project - see http://allseeing-i.com/ASIHTTPRequest for details 4 | // 5 | // Created by Ben Copsey on 16/06/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface DetailCell : UITableViewCell { 13 | 14 | } 15 | + (id)cell; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /ThirdPartyCode/ios-openssl/Example/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Example 4 | // 5 | // Created by Stefan Arentz on 10-10-05. 6 | // Copyright 2010 Arentz Consulting. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) { 12 | 13 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 14 | int retVal = UIApplicationMain(argc, argv, nil, nil); 15 | [pool release]; 16 | return retVal; 17 | } 18 | -------------------------------------------------------------------------------- /Classes/Networking.h: -------------------------------------------------------------------------------- 1 | // Networking.h 2 | 3 | #import 4 | 5 | NSString* BankLogin(NSString* username, NSString* password, NSError** error, NSString** applicationError); 6 | NSArray* BankGetAccounts(NSError** error, NSString** applicationError); 7 | BOOL BankTransferFunds(NSString* fromAccount, NSString* toAccount, NSString* amount, NSError** error, NSString** applicationError); 8 | NSString* BankDownloadStatement(NSError** error, NSString** applicationError); 9 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/RequestProgressCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // RequestProgressCell.h 3 | // iPhone 4 | // 5 | // Created by Ben Copsey on 03/10/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface RequestProgressCell : UITableViewCell { 13 | UIProgressView *progressView; 14 | } 15 | + (id)cell; 16 | 17 | @property (retain, nonatomic) UIProgressView *progressView; 18 | @end 19 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/json.org/2.json.pretty: -------------------------------------------------------------------------------- 1 | { 2 | "menu" : { 3 | "id" : "file", 4 | "popup" : { 5 | "menuitem" : [ 6 | { 7 | "onclick" : "CreateNewDoc()", 8 | "value" : "New" 9 | }, 10 | { 11 | "onclick" : "OpenDoc()", 12 | "value" : "Open" 13 | }, 14 | { 15 | "onclick" : "CloseDoc()", 16 | "value" : "Close" 17 | } 18 | ] 19 | }, 20 | "value" : "File" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/ToggleCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // ToggleCell.h 3 | // Part of the ASIHTTPRequest sample project - see http://allseeing-i.com/ASIHTTPRequest for details 4 | // 5 | // Created by Ben Copsey on 17/06/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface ToggleCell : UITableViewCell { 13 | UISwitch *toggle; 14 | } 15 | + (id)cell; 16 | 17 | @property (assign, nonatomic) UISwitch *toggle; 18 | @end 19 | -------------------------------------------------------------------------------- /Classes/MenuViewController.h: -------------------------------------------------------------------------------- 1 | // MenuViewController.h 2 | 3 | #import 4 | 5 | @class MenuViewController; 6 | 7 | @protocol MenuViewControllerDelegate 8 | - (void) menuViewControllerDidAskToResetApplication: (MenuViewController*) menuViewController; 9 | @end 10 | 11 | @interface MenuViewController : UITableViewController { 12 | @private 13 | id _delegate; 14 | } 15 | 16 | @property (nonatomic,assign) id delegate; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Classes/Account.h: -------------------------------------------------------------------------------- 1 | // Account.h 2 | 3 | #import 4 | 5 | @interface Account : NSObject { 6 | @private 7 | NSString* _number; 8 | NSString* _type; 9 | NSString* _balance; 10 | } 11 | 12 | - (id) initWithNumber: (NSString*) number type: (NSString*) type balance: (NSString*) balance; 13 | 14 | @property (nonatomic,readonly) NSString* number; 15 | @property (nonatomic,readonly) NSString* type; 16 | @property (nonatomic,readonly) NSString* balance; 17 | 18 | @property (nonatomic,readonly) NSString* name; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/InfoCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // InfoCell.h 3 | // Part of the ASIHTTPRequest sample project - see http://allseeing-i.com/ASIHTTPRequest for details 4 | // 5 | // Created by Ben Copsey on 17/06/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface InfoCell : UITableViewCell { 13 | 14 | } 15 | + (id)cell; 16 | + (NSUInteger)neededHeightForDescription:(NSString *)description withTableWidth:(NSUInteger)tableWidth; 17 | @end 18 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/rfc4627/b.json.pretty: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "Address" : "", 4 | "City" : "SAN FRANCISCO", 5 | "Country" : "US", 6 | "Latitude" : 37.7668, 7 | "Longitude" : -122.3959, 8 | "State" : "CA", 9 | "Zip" : "94107", 10 | "precision" : "zip" 11 | }, 12 | { 13 | "Address" : "", 14 | "City" : "SUNNYVALE", 15 | "Country" : "US", 16 | "Latitude" : 37.371991, 17 | "Longitude" : -122.02602, 18 | "State" : "CA", 19 | "Zip" : "94085", 20 | "precision" : "zip" 21 | } 22 | ] 23 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/Tests/ASITestCase.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASITestCase.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 26/07/2009. 6 | // Copyright 2009 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #if TARGET_OS_IPHONE 12 | #import 13 | #else 14 | #import 15 | #endif 16 | 17 | @interface ASITestCase : GHTestCase { 18 | } 19 | - (NSString *)filePathForTemporaryTestFiles; 20 | @end 21 | -------------------------------------------------------------------------------- /Classes/NSString+SHA.m: -------------------------------------------------------------------------------- 1 | // NString+SHA.m 2 | 3 | #import "NSString+SHA.h" 4 | 5 | #include "CommonCrypto/CommonDigest.h" 6 | 7 | @implementation NSString (SHA) 8 | 9 | - (NSData*) SHA256Hash 10 | { 11 | NSData* result = nil; 12 | 13 | NSData* data = [self dataUsingEncoding: NSUTF8StringEncoding]; 14 | if (data != nil) 15 | { 16 | unsigned char md[CC_SHA256_DIGEST_LENGTH]; 17 | CC_SHA256([data bytes], [data length], md); 18 | result = [NSData dataWithBytes: md length: CC_SHA256_DIGEST_LENGTH]; 19 | } 20 | 21 | return result; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Part of the ASIHTTPRequest sample project - see http://allseeing-i.com/ASIHTTPRequest for details 4 | // 5 | // Created by Ben Copsey on 22/03/2009. 6 | // Copyright All-Seeing Interactive 2009. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) { 12 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 13 | int retVal = UIApplicationMain(argc, argv, nil, nil); 14 | [pool release]; 15 | return retVal; 16 | } 17 | 18 | -------------------------------------------------------------------------------- /Errors.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | E1 6 | Incorrect username or password 7 | E2 8 | Invalid session key 9 | E3 10 | Account does not exist 11 | E4 12 | Balance too low 13 | E5 14 | Forbidden 15 | E6 16 | Permission Denied 17 | 18 | 19 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/string-ctrl.json: -------------------------------------------------------------------------------- 1 | [ 2 | "\b", 3 | "\t", 4 | "\n", 5 | "\f", 6 | "\r", 7 | "\u0000", 8 | "\u0001", 9 | "\u0002", 10 | "\u0003", 11 | "\u0004", 12 | "\u0005", 13 | "\u0006", 14 | "\u0007", 15 | "\u0008", 16 | "\u0009", 17 | "\u000a", 18 | "\u000b", 19 | "\u000c", 20 | "\u000d", 21 | "\u000e", 22 | "\u000f", 23 | "\u0010", 24 | "\u0011", 25 | "\u0012", 26 | "\u0013", 27 | "\u0014", 28 | "\u0015", 29 | "\u0016", 30 | "\u0017", 31 | "\u0018", 32 | "\u0019", 33 | "\u001a", 34 | "\u001b", 35 | "\u001c", 36 | "\u001d", 37 | "\u001e", 38 | "\u001f", 39 | " " 40 | ] -------------------------------------------------------------------------------- /ThirdPartyCode/ios-openssl/Example/Classes/ExampleAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // ExampleAppDelegate.h 3 | // Example 4 | // 5 | // Created by Stefan Arentz on 10-10-05. 6 | // Copyright 2010 Arentz Consulting. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class ExampleViewController; 12 | 13 | @interface ExampleAppDelegate : NSObject { 14 | UIWindow *window; 15 | ExampleViewController *viewController; 16 | } 17 | 18 | @property (nonatomic, retain) IBOutlet UIWindow *window; 19 | @property (nonatomic, retain) IBOutlet ExampleViewController *viewController; 20 | 21 | @end 22 | 23 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/Tests/ASIFormDataRequestTests.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIFormDataRequestTests.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 08/11/2008. 6 | // Copyright 2008 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import "ASITestCase.h" 10 | 11 | @interface ASIFormDataRequestTests : ASITestCase { 12 | float progress; 13 | } 14 | 15 | - (void)testPostWithFileUpload; 16 | - (void)testEmptyData; 17 | - (void)testSubclass; 18 | - (void)testURLEncodedPost; 19 | - (void)testCharset; 20 | - (void)testPUT; 21 | - (void)testCopy; 22 | @end 23 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/iPhoneSampleAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // iPhoneSampleAppDelegate.h 3 | // Part of the ASIHTTPRequest sample project - see http://allseeing-i.com/ASIHTTPRequest for details 4 | // 5 | // Created by Ben Copsey on 07/11/2008. 6 | // Copyright All-Seeing Interactive 2008. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface iPhoneSampleAppDelegate : NSObject { 12 | IBOutlet UIWindow *window; 13 | IBOutlet UITabBarController *tabBarController; 14 | } 15 | 16 | @property (nonatomic, retain) UIWindow *window; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/json.org/5.json.terse: -------------------------------------------------------------------------------- 1 | {"menu":{"header":"SVG Viewer","items":[{"id":"Open"},{"id":"OpenNew","label":"Open New"},null,{"id":"ZoomIn","label":"Zoom In"},{"id":"ZoomOut","label":"Zoom Out"},{"id":"OriginalView","label":"Original View"},null,{"id":"Quality"},{"id":"Pause"},{"id":"Mute"},null,{"id":"Find","label":"Find..."},{"id":"FindAgain","label":"Find Again"},{"id":"Copy"},{"id":"CopyAgain","label":"Copy Again"},{"id":"CopySVG","label":"Copy SVG"},{"id":"ViewSVG","label":"View SVG"},{"id":"ViewSource","label":"View Source"},{"id":"SaveAs","label":"Save As"},null,{"id":"Help"},{"id":"About","label":"About Adobe CVG Viewer..."}]}} 2 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/string-ctrl.json.pretty: -------------------------------------------------------------------------------- 1 | [ 2 | "\b", 3 | "\t", 4 | "\n", 5 | "\f", 6 | "\r", 7 | "\u0000", 8 | "\u0001", 9 | "\u0002", 10 | "\u0003", 11 | "\u0004", 12 | "\u0005", 13 | "\u0006", 14 | "\u0007", 15 | "\b", 16 | "\t", 17 | "\n", 18 | "\u000b", 19 | "\f", 20 | "\r", 21 | "\u000e", 22 | "\u000f", 23 | "\u0010", 24 | "\u0011", 25 | "\u0012", 26 | "\u0013", 27 | "\u0014", 28 | "\u0015", 29 | "\u0016", 30 | "\u0017", 31 | "\u0018", 32 | "\u0019", 33 | "\u001a", 34 | "\u001b", 35 | "\u001c", 36 | "\u001d", 37 | "\u001e", 38 | "\u001f", 39 | " " 40 | ] 41 | -------------------------------------------------------------------------------- /ThirdPartyCode/ios-openssl/include/openssl/ebcdic.h: -------------------------------------------------------------------------------- 1 | /* crypto/ebcdic.h */ 2 | 3 | #ifndef HEADER_EBCDIC_H 4 | #define HEADER_EBCDIC_H 5 | 6 | #include 7 | 8 | /* Avoid name clashes with other applications */ 9 | #define os_toascii _openssl_os_toascii 10 | #define os_toebcdic _openssl_os_toebcdic 11 | #define ebcdic2ascii _openssl_ebcdic2ascii 12 | #define ascii2ebcdic _openssl_ascii2ebcdic 13 | 14 | extern const unsigned char os_toascii[256]; 15 | extern const unsigned char os_toebcdic[256]; 16 | void *ebcdic2ascii(void *dest, const void *srce, size_t count); 17 | void *ascii2ebcdic(void *dest, const void *srce, size_t count); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/rfc4627/b.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "precision": "zip", 4 | "Latitude": 37.7668, 5 | "Longitude": -122.3959, 6 | "Address": "", 7 | "City": "SAN FRANCISCO", 8 | "State": "CA", 9 | "Zip": "94107", 10 | "Country": "US" 11 | }, 12 | { 13 | "precision": "zip", 14 | "Latitude": 37.371991, 15 | "Longitude": -122.026020, 16 | "Address": "", 17 | "City": "SUNNYVALE", 18 | "State": "CA", 19 | "Zip": "94085", 20 | "Country": "US" 21 | } 22 | ] 23 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/CloudFiles/ASICloudFilesObject.m: -------------------------------------------------------------------------------- 1 | // 2 | // ASICloudFilesObject.m 3 | // 4 | // Created by Michael Mayo on 1/7/10. 5 | // 6 | 7 | #import "ASICloudFilesObject.h" 8 | 9 | 10 | @implementation ASICloudFilesObject 11 | 12 | @synthesize name, hash, bytes, contentType, lastModified, data, metadata; 13 | 14 | + (id)object { 15 | ASICloudFilesObject *object = [[[self alloc] init] autorelease]; 16 | return object; 17 | } 18 | 19 | -(void)dealloc { 20 | [name release]; 21 | [hash release]; 22 | [contentType release]; 23 | [lastModified release]; 24 | [data release]; 25 | [metadata release]; 26 | [super dealloc]; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Classes/BankAppDelegate.h: -------------------------------------------------------------------------------- 1 | // BankAppDelegate.h 2 | 3 | #import 4 | #import "LoginViewController.h" 5 | #import "CheckPasswordViewController.h" 6 | #import "SetupPasswordViewController.h" 7 | #import "MenuViewController.h" 8 | 9 | @interface BankAppDelegate : NSObject { 10 | @private 11 | UIWindow* _window; 12 | UINavigationController* _navigationController; 13 | @private 14 | NSString* _username; 15 | NSString* _password; 16 | } 17 | 18 | @property (nonatomic, retain) IBOutlet UIWindow *window; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/CloudFiles/ASICloudFilesContainer.m: -------------------------------------------------------------------------------- 1 | // 2 | // ASICloudFilesContainer.m 3 | // 4 | // Created by Michael Mayo on 1/7/10. 5 | // 6 | 7 | #import "ASICloudFilesContainer.h" 8 | 9 | 10 | @implementation ASICloudFilesContainer 11 | 12 | // regular container attributes 13 | @synthesize name, count, bytes; 14 | 15 | // CDN container attributes 16 | @synthesize cdnEnabled, ttl, cdnURL, logRetention, referrerACL, useragentACL; 17 | 18 | + (id)container { 19 | ASICloudFilesContainer *container = [[[self alloc] init] autorelease]; 20 | return container; 21 | } 22 | 23 | -(void) dealloc { 24 | [name release]; 25 | [super dealloc]; 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Classes/NSString+Random.m: -------------------------------------------------------------------------------- 1 | // NSString+Random.m 2 | 3 | #import "NSString+Random.h" 4 | 5 | @implementation NSString (NSString_Random) 6 | 7 | + (id) randomStringWithLength: (NSUInteger) length 8 | { 9 | static char characters[64] = "1234567890abcdefghijklmnopqrstuvwxyzABCDFGHIJKLMNOPQRSTUVWXYZ"; 10 | 11 | id result = nil; 12 | 13 | char* buffer = malloc(length); 14 | if (buffer != NULL) 15 | { 16 | for (NSUInteger i = 0; i < length; i++) { 17 | buffer[i] = characters[random() % 64]; 18 | } 19 | 20 | result = [[[self alloc] initWithBytesNoCopy: buffer length: length encoding: NSUTF8StringEncoding freeWhenDone: YES] autorelease]; 21 | } 22 | 23 | return result; 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /README.markdown: -------------------------------------------------------------------------------- 1 | iPhone Labs 2 | =========== 3 | 4 | Setup 5 | ----- 6 | 7 | Each branch contains the a different lab. 8 | 9 | master contains the base for most labs. The other branches are 10 | solutions. Note that AdvancedEncryption lab starts with the 11 | BasicEncryptionSolution branch as a base. 12 | 13 | To use the app, switch to the branch you want, run XCode in the 14 | directory and build/run on the iPhone simulator. 15 | 16 | You will need to be running the server for this to work, information 17 | on how to run it is available in it's README. 18 | 19 | 20 | Using 21 | ----- 22 | 23 | Please see http://securitycompass.github.com/iPhoneLabs for lab 24 | descriptions and walkthroughs. 25 | 26 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/iPadSampleAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // iPadSampleAppDelegate.h 3 | // Part of the ASIHTTPRequest sample project - see http://allseeing-i.com/ASIHTTPRequest for details 4 | // 5 | // Created by Ben Copsey on 15/06/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface iPadSampleAppDelegate : NSObject { 12 | UIWindow *window; 13 | UISplitViewController *splitViewController; 14 | } 15 | 16 | @property (nonatomic, retain) IBOutlet UIWindow *window; 17 | @property (nonatomic, retain) IBOutlet UISplitViewController *splitViewController; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Classes/Account.m: -------------------------------------------------------------------------------- 1 | // Account.m 2 | 3 | #import "Account.h" 4 | 5 | @implementation Account 6 | 7 | @synthesize number = _number; 8 | @synthesize type = _type; 9 | @synthesize balance = _balance; 10 | 11 | - (id) initWithNumber: (NSString*) number type: (NSString*) type balance: (NSString*) balance 12 | { 13 | if ((self = [super init]) != nil) { 14 | _number = [number retain]; 15 | _type = [type retain]; 16 | _balance = [balance retain]; 17 | } 18 | return self; 19 | } 20 | 21 | - (void) dealloc 22 | { 23 | [_number release]; 24 | [_type release]; 25 | [_balance release]; 26 | [super dealloc]; 27 | } 28 | 29 | - (NSString*) name 30 | { 31 | return [_type capitalizedString]; 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Classes/SelectAccountViewController.h: -------------------------------------------------------------------------------- 1 | // SelectAccountViewController.h 2 | 3 | #import 4 | 5 | @class SelectAccountViewController; 6 | 7 | @protocol SelectAccountViewControllerDelegate 8 | - (void) selectAccountViewController: (SelectAccountViewController*) vc didSelectAccountIndex: (NSUInteger) accountIndex; 9 | - (void) selectAccountViewControllerDidCancel: (SelectAccountViewController*) vc; 10 | @end 11 | 12 | @interface SelectAccountViewController : UITableViewController { 13 | @private 14 | NSArray* _accounts; 15 | id _delegate; 16 | } 17 | 18 | - (id) initWithAccounts: (NSArray*) accounts delegate: (id) delegate; 19 | 20 | @end -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.Tests 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/libjsontests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.libjsontests 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/SynchronousViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SynchronousViewController.h 3 | // Part of the ASIHTTPRequest sample project - see http://allseeing-i.com/ASIHTTPRequest for details 4 | // 5 | // Created by Ben Copsey on 07/11/2008. 6 | // Copyright 2008 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "SampleViewController.h" 11 | @class ASIHTTPRequest; 12 | 13 | @interface SynchronousViewController : SampleViewController { 14 | ASIHTTPRequest *request; 15 | UITextField *urlField; 16 | UITextView *responseField; 17 | UIButton *goButton; 18 | 19 | } 20 | - (IBAction)simpleURLFetch:(id)sender; 21 | 22 | @property (retain, nonatomic) ASIHTTPRequest *request; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/json.org/3.json: -------------------------------------------------------------------------------- 1 | {"widget": { 2 | "debug": "on", 3 | "window": { 4 | "title": "Sample Konfabulator Widget", 5 | "name": "main_window", 6 | "width": 500, 7 | "height": 500 8 | }, 9 | "image": { 10 | "src": "Images/Sun.png", 11 | "name": "sun1", 12 | "hOffset": 250, 13 | "vOffset": 250, 14 | "alignment": "center" 15 | }, 16 | "text": { 17 | "data": "Click Here", 18 | "size": 36, 19 | "style": "bold", 20 | "name": "text1", 21 | "hOffset": 250, 22 | "vOffset": 100, 23 | "alignment": "center", 24 | "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;" 25 | } 26 | }} 27 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/json.org/1.json.pretty: -------------------------------------------------------------------------------- 1 | { 2 | "glossary" : { 3 | "GlossDiv" : { 4 | "GlossList" : { 5 | "GlossEntry" : { 6 | "Abbrev" : "ISO 8879:1986", 7 | "Acronym" : "SGML", 8 | "GlossDef" : { 9 | "GlossSeeAlso" : [ 10 | "GML", 11 | "XML" 12 | ], 13 | "para" : "A meta-markup language, used to create markup languages such as DocBook." 14 | }, 15 | "GlossSee" : "markup", 16 | "GlossTerm" : "Standard Generalized Markup Language", 17 | "ID" : "SGML", 18 | "SortAs" : "SGML" 19 | } 20 | }, 21 | "title" : "S" 22 | }, 23 | "title" : "example glossary" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/json.org/3.json.pretty: -------------------------------------------------------------------------------- 1 | { 2 | "widget" : { 3 | "debug" : "on", 4 | "image" : { 5 | "alignment" : "center", 6 | "hOffset" : 250, 7 | "name" : "sun1", 8 | "src" : "Images/Sun.png", 9 | "vOffset" : 250 10 | }, 11 | "text" : { 12 | "alignment" : "center", 13 | "data" : "Click Here", 14 | "hOffset" : 250, 15 | "name" : "text1", 16 | "onMouseUp" : "sun1.opacity = (sun1.opacity / 100) * 90;", 17 | "size" : 36, 18 | "style" : "bold", 19 | "vOffset" : 100 20 | }, 21 | "window" : { 22 | "height" : 500, 23 | "name" : "main_window", 24 | "title" : "Sample Konfabulator Widget", 25 | "width" : 500 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/iPhoneSampleAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // iPhoneSampleAppDelegate.m 3 | // Part of the ASIHTTPRequest sample project - see http://allseeing-i.com/ASIHTTPRequest for details 4 | // 5 | // Created by Ben Copsey on 07/11/2008. 6 | // Copyright All-Seeing Interactive 2008. All rights reserved. 7 | // 8 | 9 | #import "iPhoneSampleAppDelegate.h" 10 | 11 | @implementation iPhoneSampleAppDelegate 12 | 13 | - (void)applicationDidFinishLaunching:(UIApplication *)application 14 | { 15 | [[tabBarController view] setFrame:CGRectMake(0, 0, 320, 480)]; 16 | [window addSubview:[tabBarController view]]; 17 | } 18 | 19 | - (void)dealloc 20 | { 21 | [window release]; 22 | [super dealloc]; 23 | } 24 | 25 | @synthesize window; 26 | 27 | @end 28 | 29 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/Tests/ClientCertificateTests.h: -------------------------------------------------------------------------------- 1 | // 2 | // ClientCertificateTests.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 18/08/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | // Currently, these tests only work on iOS - it looks like the method for parsing the PKCS12 file would need to be ported 10 | 11 | #import 12 | #import 13 | #import "ASITestCase.h" 14 | 15 | @interface ClientCertificateTests : ASITestCase { 16 | 17 | } 18 | - (void)testClientCertificate; 19 | + (BOOL)extractIdentity:(SecIdentityRef *)outIdentity andTrust:(SecTrustRef*)outTrust fromPKCS12Data:(NSData *)inPKCS12Data; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/AuthenticationViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // AuthenticationViewController.h 3 | // Part of the ASIHTTPRequest sample project - see http://allseeing-i.com/ASIHTTPRequest for details 4 | // 5 | // Created by Ben Copsey on 01/08/2009. 6 | // Copyright 2009 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "SampleViewController.h" 11 | @class ASIHTTPRequest; 12 | 13 | @interface AuthenticationViewController : SampleViewController { 14 | 15 | ASIHTTPRequest *request; 16 | 17 | UISwitch *useKeychain; 18 | UISwitch *useBuiltInDialog; 19 | UITextView *responseField; 20 | } 21 | - (IBAction)fetchTopSecretInformation:(id)sender; 22 | 23 | @property (retain, nonatomic) ASIHTTPRequest *request; 24 | @end 25 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/CloudFiles/ASICloudFilesObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASICloudFilesObject.h 3 | // 4 | // Created by Michael Mayo on 1/7/10. 5 | // 6 | 7 | #import 8 | 9 | 10 | @interface ASICloudFilesObject : NSObject { 11 | NSString *name; 12 | NSString *hash; 13 | NSUInteger bytes; 14 | NSString *contentType; 15 | NSDate *lastModified; 16 | NSData *data; 17 | NSMutableDictionary *metadata; 18 | } 19 | 20 | @property (retain) NSString *name; 21 | @property (retain) NSString *hash; 22 | @property (assign) NSUInteger bytes; 23 | @property (retain) NSString *contentType; 24 | @property (retain) NSDate *lastModified; 25 | @property (retain) NSData *data; 26 | @property (retain) NSMutableDictionary *metadata; 27 | 28 | + (id)object; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/Tests/ASIS3RequestTests.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIS3RequestTests.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 12/07/2009. 6 | // Copyright 2009 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import "ASITestCase.h" 10 | 11 | @class ASINetworkQueue; 12 | 13 | @interface ASIS3RequestTests : ASITestCase { 14 | ASINetworkQueue *networkQueue; 15 | float progress; 16 | } 17 | 18 | - (void)testAuthenticationHeaderGeneration; 19 | - (void)testREST; 20 | - (void)testFailure; 21 | - (void)testListRequest; 22 | - (void)testSubclasses; 23 | - (void)createTestBucket; 24 | - (void)testCopy; 25 | - (void)testHTTPS; 26 | 27 | @property (retain,nonatomic) ASINetworkQueue *networkQueue; 28 | @end 29 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/JSON-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | org.brautaset.JSON 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | FMWK 15 | CFBundleShortVersionString 16 | 2.3.1 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1.1.1 21 | 22 | 23 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/ToggleCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // ToggleCell.m 3 | // Part of the ASIHTTPRequest sample project - see http://allseeing-i.com/ASIHTTPRequest for details 4 | // 5 | // Created by Ben Copsey on 17/06/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import "ToggleCell.h" 10 | 11 | 12 | @implementation ToggleCell 13 | 14 | + (id)cell 15 | { 16 | ToggleCell *cell = [[[ToggleCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"ToggleCell"] autorelease]; 17 | [[cell textLabel] setTextAlignment:UITextAlignmentLeft]; 18 | [cell setToggle:[[[UISwitch alloc] initWithFrame:CGRectMake(0,0,20,20)] autorelease]]; 19 | [cell setAccessoryView:[cell toggle]]; 20 | return cell; 21 | } 22 | 23 | @synthesize toggle; 24 | @end 25 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/SampleViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SampleViewController.h 3 | // Part of the ASIHTTPRequest sample project - see http://allseeing-i.com/ASIHTTPRequest for details 4 | // 5 | // Created by Ben Copsey on 17/06/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface SampleViewController : UIViewController { 13 | UINavigationBar *navigationBar; 14 | UITableView *tableView; 15 | } 16 | 17 | - (void)showNavigationButton:(UIBarButtonItem *)button; 18 | - (void)hideNavigationButton:(UIBarButtonItem *)button; 19 | 20 | @property (retain, nonatomic) IBOutlet UINavigationBar *navigationBar; 21 | @property (retain, nonatomic) IBOutlet UITableView *tableView; 22 | @end 23 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/UploadViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // UploadViewController.h 3 | // Part of the ASIHTTPRequest sample project - see http://allseeing-i.com/ASIHTTPRequest for details 4 | // 5 | // Created by Ben Copsey on 31/12/2008. 6 | // Copyright 2008 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "SampleViewController.h" 11 | @class ASIFormDataRequest; 12 | 13 | @interface UploadViewController : SampleViewController { 14 | 15 | ASIFormDataRequest *request; 16 | 17 | IBOutlet UIProgressView *progressIndicator; 18 | UITextView *resultView; 19 | } 20 | 21 | - (IBAction)performLargeUpload:(id)sender; 22 | - (IBAction)toggleThrottling:(id)sender; 23 | 24 | @property (retain, nonatomic) ASIFormDataRequest *request; 25 | @end 26 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/iPadSampleAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // iPadSampleAppDelegate.m 3 | // Part of the ASIHTTPRequest sample project - see http://allseeing-i.com/ASIHTTPRequest for details 4 | // 5 | // Created by Ben Copsey on 15/06/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import "iPadSampleAppDelegate.h" 10 | 11 | @implementation iPadSampleAppDelegate 12 | 13 | - (void)applicationDidFinishLaunching:(UIApplication *)application 14 | { 15 | [window addSubview:[splitViewController view]]; 16 | [window makeKeyAndVisible]; 17 | } 18 | 19 | - (void)dealloc { 20 | [splitViewController release]; 21 | [window release]; 22 | [super dealloc]; 23 | } 24 | 25 | 26 | @synthesize window; 27 | @synthesize splitViewController; 28 | @end 29 | -------------------------------------------------------------------------------- /Classes/CheckPasswordViewController.h: -------------------------------------------------------------------------------- 1 | // CheckPasswordViewController.h 2 | 3 | #import 4 | 5 | @class CheckPasswordViewController; 6 | 7 | @protocol CheckPasswordViewControllerDelegate 8 | - (BOOL) checkPasswordViewController: (CheckPasswordViewController*) vc didEnterPassword: (NSString*) password; 9 | @end 10 | 11 | @interface CheckPasswordViewController : UIViewController { 12 | @private 13 | UITextField* _passwordTextField; 14 | UIView* _containerView; 15 | @private 16 | id _delegate; 17 | } 18 | 19 | @property (nonatomic,assign) IBOutlet UIView* containerView; 20 | @property (nonatomic,assign) IBOutlet UITextField* passwordTextField; 21 | @property (nonatomic,assign) id delegate; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/WebPageViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // WebPageViewController.h 3 | // iPhone 4 | // 5 | // Created by Ben Copsey on 03/10/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "SampleViewController.h" 11 | 12 | @class ASIWebPageRequest; 13 | 14 | @interface WebPageViewController : SampleViewController { 15 | UIWebView *webView; 16 | UITextField *urlField; 17 | UITextView *responseField; 18 | UISwitch *replaceURLsSwitch; 19 | ASIWebPageRequest *request; 20 | NSMutableArray *requestsInProgress; 21 | } 22 | - (void)fetchURL:(NSURL *)url; 23 | 24 | @property (retain, nonatomic) ASIWebPageRequest *request; 25 | @property (retain, nonatomic) NSMutableArray *requestsInProgress; 26 | @end 27 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/json.org/1.json: -------------------------------------------------------------------------------- 1 | { 2 | "glossary": { 3 | "title": "example glossary", 4 | "GlossDiv": { 5 | "title": "S", 6 | "GlossList": { 7 | "GlossEntry": { 8 | "ID": "SGML", 9 | "SortAs": "SGML", 10 | "GlossTerm": "Standard Generalized Markup Language", 11 | "Acronym": "SGML", 12 | "Abbrev": "ISO 8879:1986", 13 | "GlossDef": { 14 | "para": "A meta-markup language, used to create markup languages such as DocBook.", 15 | "GlossSeeAlso": ["GML", "XML"] 16 | }, 17 | "GlossSee": "markup" 18 | } 19 | } 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/Tests/ASITestCase.m: -------------------------------------------------------------------------------- 1 | // 2 | // ASITestCase.m 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 26/07/2009. 6 | // Copyright 2009 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import "ASITestCase.h" 10 | 11 | 12 | @implementation ASITestCase 13 | 14 | - (NSString *)filePathForTemporaryTestFiles 15 | { 16 | NSString *path = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@"ASIHTTPRequest Test Files"]; 17 | if (![[NSFileManager defaultManager] fileExistsAtPath:path isDirectory:NULL]) { 18 | [[NSFileManager defaultManager] createDirectoryAtPath:path withIntermediateDirectories:NO attributes:nil error:NULL]; 19 | } 20 | return path; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/RootViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // RootViewController.h 3 | // Part of the ASIHTTPRequest sample project - see http://allseeing-i.com/ASIHTTPRequest for details 4 | // 5 | // Created by Ben Copsey on 16/06/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface RootViewController : UITableViewController { 12 | UISplitViewController *splitViewController; 13 | UIPopoverController *popoverController; 14 | UIBarButtonItem *rootPopoverButtonItem; 15 | } 16 | @property (nonatomic, assign) IBOutlet UISplitViewController *splitViewController; 17 | @property (nonatomic, retain) UIPopoverController *popoverController; 18 | @property (nonatomic, retain) UIBarButtonItem *rootPopoverButtonItem; 19 | @end 20 | -------------------------------------------------------------------------------- /Classes/SessionManager.m: -------------------------------------------------------------------------------- 1 | // SessionManager.m 2 | 3 | #import "SessionManager.h" 4 | 5 | /** 6 | * The SessionManager is a simple singleton that stores the current session key. This is 7 | * a singleton because that is a preferred pattern in Cocoa to replace globals. 8 | */ 9 | 10 | @implementation SessionManager 11 | 12 | @synthesize sessionKey = _sessionKey; 13 | 14 | /** 15 | * Return the shared singleton instance of the SessionManager. 16 | */ 17 | 18 | + (id) sharedSessionManager 19 | { 20 | static SessionManager* sharedSessionManager = nil; 21 | 22 | @synchronized (self) { 23 | if (sharedSessionManager == nil) { 24 | sharedSessionManager = [self new]; 25 | } 26 | } 27 | return sharedSessionManager; 28 | } 29 | 30 | /** 31 | * Invalidate the current session. Simply sets the session key to nil. 32 | */ 33 | 34 | - (void) invalidate 35 | { 36 | self.sessionKey = nil; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/Tests/PerformanceTests.h: -------------------------------------------------------------------------------- 1 | // 2 | // PerformanceTests.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 17/12/2009. 6 | // Copyright 2009 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ASITestCase.h" 11 | 12 | @interface PerformanceTests : ASITestCase { 13 | NSURL *testURL; 14 | 15 | NSDate *testStartDate; 16 | int requestsComplete; 17 | NSMutableArray *responseData; 18 | unsigned long bytesDownloaded; 19 | } 20 | 21 | - (void)testASIHTTPRequestAsyncPerformance; 22 | - (void)testNSURLConnectionAsyncPerformance; 23 | 24 | @property (retain,nonatomic) NSURL *testURL; 25 | @property (retain,nonatomic) NSDate *testStartDate; 26 | @property (assign,nonatomic) int requestsComplete; 27 | @property (retain,nonatomic) NSMutableArray *responseData; 28 | @end 29 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Build Scripts/set_version_number.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | # This script sets a version number for ASIHTTPRequest based on the last commit, and is run when you build one of the targets in the Xcode projects that come with ASIHTTPRequest 4 | # It only really needs to run on my computer, not on yours... :) 5 | require 'find' 6 | if (File.exists?('.git') && File.directory?('.git') && File.exists?('/usr/local/bin/git')) 7 | newversion = `/usr/local/bin/git describe --tags`.match(/(v([0-9]+)(\.([0-9]+)){1,}-([0-9]+))/).to_s.gsub(/[0-9]+$/){|commit| (commit.to_i + 1).to_s}+Time.now.strftime(" %Y-%m-%d") 8 | buffer = File.new('Classes/ASIHTTPRequest.m','r').read 9 | if !buffer.match(/#{Regexp.quote(newversion)}/) 10 | buffer = buffer.sub(/(NSString \*ASIHTTPRequestVersion = @\")(.*)(";)/,'\1'+newversion+'\3'); 11 | File.open('Classes/ASIHTTPRequest.m','w') {|fw| fw.write(buffer)} 12 | end 13 | end -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDisplayName 8 | ASIHTTPRequestTests 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFile 12 | iphone-tests-icon.png 13 | CFBundleIdentifier 14 | com.allseeinginteractive.asihttprequest.tests 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundlePackageType 18 | APPL 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | 24 | 25 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/strict.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // strict.xcconfig 3 | // Mac 4 | // 5 | // Created by Ben Copsey on 25/11/2009. 6 | // Copyright 2009 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | GCC_WARN_CHECK_SWITCH_STATEMENTS = YES 10 | GCC_WARN_SHADOW = YES 11 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES 12 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES 13 | GCC_WARN_ABOUT_RETURN_TYPE = YES 14 | //GCC_WARN_MISSING_PARENTHESES = YES 15 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES 16 | //GCC_WARN_ABOUT_MISSING_NEWLINE = YES 17 | GCC_WARN_SIGN_COMPARE = YES 18 | GCC_WARN_STRICT_SELECTOR_MATCH = missing value 19 | GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES 20 | GCC_WARN_UNDECLARED_SELECTOR = YES 21 | GCC_WARN_UNUSED_FUNCTION = YES 22 | GCC_WARN_UNUSED_LABEL = YES 23 | GCC_WARN_UNUSED_VALUE = YES 24 | GCC_WARN_UNUSED_VARIABLE = YES 25 | GCC_TREAT_WARNINGS_AS_ERRORS = YES 26 | //RUN_CLANG_STATIC_ANALYZER = YES -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/Tests/ProxyTests.h: -------------------------------------------------------------------------------- 1 | // 2 | // ProxyTests.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 02/08/2009. 6 | // Copyright 2009 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ASITestCase.h" 11 | @class ASINetworkQueue; 12 | 13 | // Proxy tests must be run separately from other tests, using the proxy you specify 14 | // Some tests require an authenticating proxy to function 15 | 16 | @interface ProxyTests : ASITestCase { 17 | ASINetworkQueue *queue; 18 | BOOL complete; 19 | } 20 | - (void)testProxy; 21 | - (void)testProxyAutodetect; 22 | - (void)testProxyWithSuppliedAuthenticationCredentials; 23 | - (void)testDoubleAuthentication; 24 | - (void)testProxyForHTTPS; 25 | 26 | @property (retain) ASINetworkQueue *queue; 27 | @property (assign) BOOL complete; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Classes/SetupPasswordViewController.h: -------------------------------------------------------------------------------- 1 | // SetupPasswordViewController.h 2 | 3 | #import 4 | 5 | @class SetupPasswordViewController; 6 | 7 | @protocol SetupPasswordViewControllerDelegate 8 | - (void) setupPasswordViewController: (SetupPasswordViewController*) vc didSetupPassword: (NSString*) password; 9 | @end 10 | 11 | @interface SetupPasswordViewController : UIViewController { 12 | @private 13 | UIView* _containerView; 14 | UITextField* _password1TextField; 15 | UITextField* _password2TextField; 16 | @private 17 | id _delegate; 18 | } 19 | 20 | @property (nonatomic,assign) IBOutlet UIView* containerView; 21 | @property (nonatomic,assign) IBOutlet UITextField* password1TextField; 22 | @property (nonatomic,assign) IBOutlet UITextField* password2TextField; 23 | 24 | @property (nonatomic,assign) id delegate; 25 | 26 | @end -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/S3/ASIS3Bucket.m: -------------------------------------------------------------------------------- 1 | // 2 | // ASIS3Bucket.m 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 16/03/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import "ASIS3Bucket.h" 10 | 11 | 12 | @implementation ASIS3Bucket 13 | 14 | + (id)bucketWithOwnerID:(NSString *)anOwnerID ownerName:(NSString *)anOwnerName 15 | { 16 | ASIS3Bucket *bucket = [[[self alloc] init] autorelease]; 17 | [bucket setOwnerID:anOwnerID]; 18 | [bucket setOwnerName:anOwnerName]; 19 | return bucket; 20 | } 21 | 22 | - (NSString *)description 23 | { 24 | return [NSString stringWithFormat:@"Name: %@ creationDate: %@ ownerID: %@ ownerName: %@",[self name],[self creationDate],[self ownerID],[self ownerName]]; 25 | } 26 | 27 | 28 | @synthesize name; 29 | @synthesize creationDate; 30 | @synthesize ownerID; 31 | @synthesize ownerName; 32 | @end 33 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Readme.markdown: -------------------------------------------------------------------------------- 1 | JSON Framework 2 | ============== 3 | 4 | JSON is a light-weight data interchange format that's easy to read and 5 | write for humans and computers alike. This framework implements a strict 6 | JSON parser and generator in Objective-C. 7 | 8 | Features 9 | -------- 10 | 11 | * BSD license. 12 | * Easy-to-use API. 13 | * Strict parsing & generation. 14 | * Stack of error available in case of failure so you can easily figure out what is wrong. 15 | * Optional pretty-printing of JSON output. 16 | * Optionally sorted dictionary keys in JSON output. 17 | * Configurable recursion depth for parsing, for added security. 18 | 19 | Links 20 | ----- 21 | 22 | * The GitHub [project page][src]. 23 | * The online [API documentation][api]. 24 | * The new [website][web]. 25 | 26 | [api]: http://stig.github.com/json-framework/api 27 | [web]: http://stig.github.com/json-framework 28 | [src]: http://github.com/stig/json-framework 29 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Build Scripts/fetch_mac_ghunit.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | # This script fetches a pre-compiled copy of the Mac GHUnit.framework, if one isn't already in the External/GHUnit folder 4 | # This replaces the old system, where GHUnit was included as a git submodule, because: 5 | # a) git submodules confuse people (including me) 6 | # b) GHUnit seems to be tricky to build without warnings 7 | # The pre-compiled frameworks on allseeing-i.com were taken directly from those on the GHUnit downloads page on GitHub 8 | # If you'd rather build GHUnit yourself, simply grab a copy from http://github.com/gabriel/gh-unit and drop your built framework into External/GHUnit 9 | 10 | require 'net/http' 11 | if (!File.exists?('External/GHUnit/GHUnit.framework')) 12 | `curl -s http://allseeing-i.com/ASIHTTPRequest/GHUnit/GHUnit-Mac.zip > External/GHUnit/GHUnit-Mac.zip` 13 | `unzip External/GHUnit/GHUnit-Mac.zip -d External/GHUnit/ & rm External/GHUnit/GHUnit-Mac.zip` 14 | end -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Build Scripts/fetch_ios_ghunit.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | # This script fetches a pre-compiled copy of the iOS GHUnit.framework, if one isn't already in the External/GHUnit folder 4 | # This replaces the old system, where GHUnit was included as a git submodule, because: 5 | # a) git submodules confuse people (including me) 6 | # b) GHUnit seems to be tricky to build without warnings 7 | # The pre-compiled frameworks on allseeing-i.com were taken directly from those on the GHUnit downloads page on GitHub 8 | # If you'd rather build GHUnit yourself, simply grab a copy from http://github.com/gabriel/gh-unit and drop your built framework into External/GHUnit 9 | 10 | require 'net/http' 11 | if (!File.exists?('External/GHUnit/GHUnitIOS.framework')) 12 | `curl -s http://allseeing-i.com/ASIHTTPRequest/GHUnit/GHUnit-IOS.zip > External/GHUnit/GHUnit-IOS.zip` 13 | `unzip External/GHUnit/GHUnit-IOS.zip -d External/GHUnit/ & rm External/GHUnit/GHUnit-IOS.zip` 14 | end -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/CloudFiles/ASICloudFilesContainerXMLParserDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASICloudFilesContainerXMLParserDelegate.h 3 | // 4 | // Created by Michael Mayo on 1/10/10. 5 | // 6 | 7 | #import "ASICloudFilesRequest.h" 8 | 9 | #if !TARGET_OS_IPHONE || (TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_4_0) 10 | #import "ASINSXMLParserCompat.h" 11 | #endif 12 | 13 | @class ASICloudFilesContainer; 14 | 15 | @interface ASICloudFilesContainerXMLParserDelegate : NSObject { 16 | 17 | NSMutableArray *containerObjects; 18 | 19 | // Internally used while parsing the response 20 | NSString *currentContent; 21 | NSString *currentElement; 22 | ASICloudFilesContainer *currentObject; 23 | } 24 | 25 | @property (retain) NSMutableArray *containerObjects; 26 | 27 | @property (retain) NSString *currentElement; 28 | @property (retain) NSString *currentContent; 29 | @property (retain) ASICloudFilesContainer *currentObject; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/S3/ASIS3ServiceRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIS3ServiceRequest.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 16/03/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | // Create an ASIS3ServiceRequest to obtain a list of your buckets 9 | 10 | #import 11 | #import "ASIS3Request.h" 12 | 13 | @class ASIS3Bucket; 14 | 15 | @interface ASIS3ServiceRequest : ASIS3Request { 16 | 17 | // Internally used while parsing the response 18 | ASIS3Bucket *currentBucket; 19 | NSString *ownerName; 20 | NSString *ownerID; 21 | 22 | // A list of the buckets stored on S3 for this account 23 | NSMutableArray *buckets; 24 | } 25 | 26 | // Perform a GET request on the S3 service 27 | // This will fetch a list of the buckets attached to the S3 account 28 | + (id)serviceRequest; 29 | 30 | @property (retain, readonly) NSMutableArray *buckets; 31 | @end 32 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/iPhoneInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDisplayName 8 | ASIHTTPRequest Demo 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFile 12 | iphone-icon.png 13 | CFBundleIdentifier 14 | com.allseeinginteractive.asihttprequest.iphone.sample 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundlePackageType 18 | APPL 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | NSMainNibFile 24 | iPhoneMainWindow 25 | 26 | 27 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/S3/ASINSXMLParserCompat.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASINSXMLParserCompat.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // This file exists to prevent warnings about the NSXMLParserDelegate protocol when building S3 or Cloud Files stuff 5 | // 6 | // Created by Ben Copsey on 17/06/2010. 7 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 8 | // 9 | 10 | 11 | #if (!TARGET_OS_IPHONE && __MAC_OS_X_VERSION_MAX_ALLOWED < __MAC_10_6) || (TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MAX_ALLOWED <= __IPHONE_4_0) 12 | @protocol NSXMLParserDelegate 13 | 14 | @optional 15 | - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict; 16 | - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName; 17 | 18 | @end 19 | #endif 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Scripts/RefreshOnlineDocs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -x 4 | 5 | DOCSET=$INSTALL_DIR/Docset/html 6 | VERSION=$(agvtool mvers -terse1 | perl -pe 's/(\d\.\d+)(\.\d+)*/$1/') 7 | 8 | apidir=$VERSION 9 | latest=api 10 | 11 | if ! test -f "$DOCSET/index.html" ; then 12 | echo "$dir does not contain index.html" 13 | exit 1 14 | fi 15 | 16 | 17 | status=$(git status -s) 18 | if ! test -z $status ; then 19 | echo "Checkout has uncommitted changes" 20 | exit 1 21 | fi 22 | 23 | tmp=$(basename $0) 24 | tmpdir=$(mktemp -d "/tmp/$tmp.XXXXXX") 25 | 26 | cp -R $DOCSET/ $tmpdir 27 | 28 | rm -rf $tmpdir/org.brautaset.JSON.docset 29 | rm -f $tmpdir/Makefile 30 | rm -f $tmpdir/*.xml 31 | rm -f $tmpdir/*.plist 32 | 33 | branch=$(git branch | awk '$1 == "*" { print $2 }' ) 34 | git checkout gh-pages 35 | 36 | rm -f $latest 37 | rm -rf $apidir 38 | mv $tmpdir $apidir 39 | ln -s $apidir $latest 40 | 41 | git add -A 42 | git commit -m "refresh api docs for v$VERSION" 43 | git checkout $branch 44 | 45 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/iPhone Sample/QueueViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // QueueViewController.h 3 | // Part of the ASIHTTPRequest sample project - see http://allseeing-i.com/ASIHTTPRequest for details 4 | // 5 | // Created by Ben Copsey on 07/11/2008. 6 | // Copyright 2008 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "SampleViewController.h" 11 | 12 | @class ASINetworkQueue; 13 | 14 | @interface QueueViewController : SampleViewController { 15 | ASINetworkQueue *networkQueue; 16 | 17 | UIImageView *imageView1; 18 | UIImageView *imageView2; 19 | UIImageView *imageView3; 20 | UIProgressView *progressIndicator; 21 | UISwitch *accurateProgress; 22 | UIProgressView *imageProgressIndicator1; 23 | UIProgressView *imageProgressIndicator2; 24 | UIProgressView *imageProgressIndicator3; 25 | UILabel *imageLabel1; 26 | UILabel *imageLabel2; 27 | UILabel *imageLabel3; 28 | BOOL failed; 29 | 30 | } 31 | 32 | - (IBAction)fetchThreeImages:(id)sender; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/json.org/5.json: -------------------------------------------------------------------------------- 1 | {"menu": { 2 | "header": "SVG Viewer", 3 | "items": [ 4 | {"id": "Open"}, 5 | {"id": "OpenNew", "label": "Open New"}, 6 | null, 7 | {"id": "ZoomIn", "label": "Zoom In"}, 8 | {"id": "ZoomOut", "label": "Zoom Out"}, 9 | {"id": "OriginalView", "label": "Original View"}, 10 | null, 11 | {"id": "Quality"}, 12 | {"id": "Pause"}, 13 | {"id": "Mute"}, 14 | null, 15 | {"id": "Find", "label": "Find..."}, 16 | {"id": "FindAgain", "label": "Find Again"}, 17 | {"id": "Copy"}, 18 | {"id": "CopyAgain", "label": "Copy Again"}, 19 | {"id": "CopySVG", "label": "Copy SVG"}, 20 | {"id": "ViewSVG", "label": "View SVG"}, 21 | {"id": "ViewSource", "label": "View Source"}, 22 | {"id": "SaveAs", "label": "Save As"}, 23 | null, 24 | {"id": "Help"}, 25 | {"id": "About", "label": "About Adobe CVG Viewer..."} 26 | ] 27 | }} 28 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/pass2.json.pretty: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | [ 4 | [ 5 | [ 6 | [ 7 | [ 8 | [ 9 | [ 10 | [ 11 | [ 12 | [ 13 | [ 14 | [ 15 | [ 16 | [ 17 | [ 18 | [ 19 | [ 20 | "Not too deep" 21 | ] 22 | ] 23 | ] 24 | ] 25 | ] 26 | ] 27 | ] 28 | ] 29 | ] 30 | ] 31 | ] 32 | ] 33 | ] 34 | ] 35 | ] 36 | ] 37 | ] 38 | ] 39 | ] 40 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/pass1.json.terse: -------------------------------------------------------------------------------- 1 | ["JSON Test Pattern pass1",{"object with 1 member":["array with 1 element"]},{},[],-42,true,false,null,{"":23456789012000000000000000000000000000000000000000000000000000000000000000000," s p a c e d ":[1,2,3,4,5,6,7],"# -- --> */":" ","/\\\"쫾몾ꮘﳞ볚\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',./<>?":"A key can be any string","0123456789":"digit","ALPHA":"ABCDEFGHIJKLMNOPQRSTUVWYZ","E":12345678900000000000000000000000000,"address":"50 St. James Street","alpha":"abcdefghijklmnopqrstuvwyz","array":[],"backslash":"\\","comment":"// /* */": " ", 38 | " s p a c e d " :[1,2 , 3 39 | 40 | , 41 | 42 | 4 , 5 , 6 ,7 ],"compact":[1,2,3,4,5,6,7], 43 | "jsontext": "{\"object with 1 member\":[\"array with 1 element\"]}", 44 | "quotes": "" \u0022 %22 0x22 034 "", 45 | "\/\\\"\uCAFE\uBABE\uAB98\uFCDE\ubcda\uef4A\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',./<>?" 46 | : "A key can be any string" 47 | }, 48 | 0.5 ,98.6 49 | , 50 | 99.44 51 | , 52 | 53 | 1066, 54 | 1e1, 55 | 0.1e1, 56 | 1e-1, 57 | 1e00,2e+00,2e-00 58 | ,"rosebud"] -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/ErrorTest.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2010 Stig Brautaset. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the author nor the names of its contributors may be used 15 | to endorse or promote products derived from this software without specific 16 | prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #import "AbstractTest.h" 31 | 32 | @interface ErrorTest : AbstractTest 33 | @end 34 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/ProxyTest.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2010 Stig Brautaset. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the author nor the names of its contributors may be used 15 | to endorse or promote products derived from this software without specific 16 | prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #import "AbstractTest.h" 31 | 32 | @interface ProxyTest : AbstractTest 33 | @end 34 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/MaxDepthTest.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2010 Stig Brautaset. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the author nor the names of its contributors may be used 15 | to endorse or promote products derived from this software without specific 16 | prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #import "AbstractTest.h" 31 | 32 | @interface MaxDepthTest : AbstractTest 33 | @end 34 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/WriterTest.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2010 Stig Brautaset. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the author nor the names of its contributors may be used 15 | to endorse or promote products derived from this software without specific 16 | prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #import "AbstractTest.h" 31 | 32 | 33 | 34 | 35 | @interface WriterTest : AbstractTest 36 | @end 37 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/ASIHTTPRequestDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIHTTPRequestDelegate.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 13/04/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | @class ASIHTTPRequest; 10 | 11 | @protocol ASIHTTPRequestDelegate 12 | 13 | @optional 14 | 15 | // These are the default delegate methods for request status 16 | // You can use different ones by setting didStartSelector / didFinishSelector / didFailSelector 17 | - (void)requestStarted:(ASIHTTPRequest *)request; 18 | - (void)request:(ASIHTTPRequest *)request didReceiveResponseHeaders:(NSDictionary *)responseHeaders; 19 | - (void)request:(ASIHTTPRequest *)request willRedirectToURL:(NSURL *)newURL; 20 | - (void)requestFinished:(ASIHTTPRequest *)request; 21 | - (void)requestFailed:(ASIHTTPRequest *)request; 22 | - (void)requestRedirected:(ASIHTTPRequest *)request; 23 | 24 | // When a delegate implements this method, it is expected to process all incoming data itself 25 | // This means that responseData / responseString / downloadDestinationPath etc are ignored 26 | // You can have the request call a different method by setting didReceiveDataSelector 27 | - (void)request:(ASIHTTPRequest *)request didReceiveData:(NSData *)data; 28 | 29 | // If a delegate implements one of these, it will be asked to supply credentials when none are available 30 | // The delegate can then either restart the request ([request retryUsingSuppliedCredentials]) once credentials have been set 31 | // or cancel it ([request cancelAuthentication]) 32 | - (void)authenticationNeededForRequest:(ASIHTTPRequest *)request; 33 | - (void)proxyAuthenticationNeededForRequest:(ASIHTTPRequest *)request; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/DataDrivenTest.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007-2010 Stig Brautaset. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the author nor the names of its contributors may be used 15 | to endorse or promote products derived from this software without specific 16 | prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #import "AbstractTest.h" 31 | 32 | @interface DataDrivenTest : AbstractTest { 33 | NSString *dir; 34 | NSDirectoryEnumerator *files; 35 | } 36 | @end 37 | -------------------------------------------------------------------------------- /ThirdPartyCode/asi-http-request-1.8/Classes/S3/ASIS3BucketObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIS3BucketObject.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 13/07/2009. 6 | // Copyright 2009 All-Seeing Interactive. All rights reserved. 7 | // 8 | // Instances of this class represent objects stored in a bucket on S3 9 | // ASIS3BucketRequests return an array of ASIS3BucketObjects when you perform a list query 10 | 11 | #import 12 | @class ASIS3ObjectRequest; 13 | 14 | @interface ASIS3BucketObject : NSObject { 15 | 16 | // The bucket this object belongs to 17 | NSString *bucket; 18 | 19 | // The key (path) of this object in the bucket 20 | NSString *key; 21 | 22 | // When this object was last modified 23 | NSDate *lastModified; 24 | 25 | // The ETag for this object's content 26 | NSString *ETag; 27 | 28 | // The size in bytes of this object 29 | unsigned long long size; 30 | 31 | // Info about the owner 32 | NSString *ownerID; 33 | NSString *ownerName; 34 | } 35 | 36 | + (id)objectWithBucket:(NSString *)bucket; 37 | 38 | // Returns a request that will fetch this object when run 39 | - (ASIS3ObjectRequest *)GETRequest; 40 | 41 | // Returns a request that will replace this object with the contents of the file at filePath when run 42 | - (ASIS3ObjectRequest *)PUTRequestWithFile:(NSString *)filePath; 43 | 44 | // Returns a request that will delete this object when run 45 | - (ASIS3ObjectRequest *)DELETERequest; 46 | 47 | @property (retain) NSString *bucket; 48 | @property (retain) NSString *key; 49 | @property (retain) NSDate *lastModified; 50 | @property (retain) NSString *ETag; 51 | @property (assign) unsigned long long size; 52 | @property (retain) NSString *ownerID; 53 | @property (retain) NSString *ownerName; 54 | @end 55 | -------------------------------------------------------------------------------- /ThirdPartyCode/JSON v2.3.2 (iOS)/Tests/Data/jsonchecker/pass1.json.pretty: -------------------------------------------------------------------------------- 1 | [ 2 | "JSON Test Pattern pass1", 3 | { 4 | "object with 1 member" : [ 5 | "array with 1 element" 6 | ] 7 | }, 8 | {}, 9 | [], 10 | -42, 11 | true, 12 | false, 13 | null, 14 | { 15 | "" : 23456789012000000000000000000000000000000000000000000000000000000000000000000, 16 | " s p a c e d " : [ 17 | 1, 18 | 2, 19 | 3, 20 | 4, 21 | 5, 22 | 6, 23 | 7 24 | ], 25 | "# -- --> */" : " ", 26 | "/\\\"쫾몾ꮘﳞ볚\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',./<>?" : "A key can be any string", 27 | "0123456789" : "digit", 28 | "ALPHA" : "ABCDEFGHIJKLMNOPQRSTUVWYZ", 29 | "E" : 12345678900000000000000000000000000, 30 | "address" : "50 St. James Street", 31 | "alpha" : "abcdefghijklmnopqrstuvwyz", 32 | "array" : [], 33 | "backslash" : "\\", 34 | "comment" : "// /*