diff --git a/.gitignore b/.gitignore index d937e6e..5e4fb01 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ bin lib *.gz +OpenSSL-for-iOS.xcodeproj/xcuserdata diff --git a/Classes/OpenSSL_for_iOSAppDelegate.h b/Classes/OpenSSL_for_iOSAppDelegate.h deleted file mode 100644 index aafd7a0..0000000 --- a/Classes/OpenSSL_for_iOSAppDelegate.h +++ /dev/null @@ -1,30 +0,0 @@ -// -// OpenSSL_for_iOSAppDelegate.h -// OpenSSL-for-iOS -// -// Created by Felix Schulze on 01.02.2010. -// Copyright Felix Schulze 2010. All rights reserved. -// - -#import - -@interface OpenSSL_for_iOSAppDelegate : NSObject { - UIWindow *window; - - IBOutlet UITextField *textField; - IBOutlet UILabel *md5TextField; - IBOutlet UILabel *sha256TextField; - -} - -@property (nonatomic, retain) IBOutlet UIWindow *window; -@property (nonatomic, retain) IBOutlet UITextField *textField; -@property (nonatomic, retain) IBOutlet UILabel *md5TextField; -@property (nonatomic, retain) IBOutlet UILabel *sha256TextField; - - -- (IBAction)showInfo; -- (IBAction)calculateMD5:(id)sender; -- (IBAction)calculateSHA256:(id)sender; -@end - diff --git a/Classes/OpenSSL_for_iOSAppDelegate.m b/Classes/OpenSSL_for_iOSAppDelegate.m deleted file mode 100644 index 8aa9957..0000000 --- a/Classes/OpenSSL_for_iOSAppDelegate.m +++ /dev/null @@ -1,138 +0,0 @@ -// -// OpenSSL_for_iOSAppDelegate.m -// OpenSSL-for-iOS -// -// Created by Felix Schulze on 04.12.2010. -// Copyright Felix Schulze 2010. All rights reserved. -// - -#import "OpenSSL_for_iOSAppDelegate.h" -#include -#include - -@implementation OpenSSL_for_iOSAppDelegate - -@synthesize window, textField, md5TextField, sha256TextField; - - -#pragma mark - -#pragma mark OpenSSL - -- (IBAction)calculateMD5:(id)sender -{ - /** Calculate MD5*/ - NSString *string = textField.text; - unsigned char *inStrg = (unsigned char*)[[string dataUsingEncoding:NSASCIIStringEncoding] bytes]; - unsigned long lngth = [string length]; - unsigned char result[MD5_DIGEST_LENGTH]; - NSMutableString *outStrg = [NSMutableString string]; - - MD5(inStrg, lngth, result); - - unsigned int i; - for (i = 0; i < MD5_DIGEST_LENGTH; i++) - { - [outStrg appendFormat:@"%02x", result[i]]; - } - md5TextField.text = outStrg; - - //Hide Keyboard after calculation - [textField resignFirstResponder]; -} - -- (IBAction)calculateSHA256:(id)sender { - - /* Calculate SHA256 */ - NSString *string = textField.text; - unsigned char *inStrg = (unsigned char*)[[string dataUsingEncoding:NSASCIIStringEncoding] bytes]; - unsigned long lngth = [string length]; - unsigned char result[SHA256_DIGEST_LENGTH]; - NSMutableString *outStrg = [NSMutableString string]; - - SHA256_CTX sha256; - SHA256_Init(&sha256); - SHA256_Update(&sha256, inStrg, lngth); - SHA256_Final(result, &sha256); - - unsigned int i; - for(i = 0; i < SHA256_DIGEST_LENGTH; i++) - { - [outStrg appendFormat:@"%02x", result[i]]; - } - sha256TextField.text = outStrg; - - //Hide Keyboard after calculation - [textField resignFirstResponder]; -} - -#pragma mark - -#pragma mark Application lifecycle - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - [window makeKeyAndVisible]; - return YES; -} - -- (IBAction)showInfo { - - UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"OpenSSL-for-iOS" message:@"OpenSSL-Version: 1.0.0g\nLicense: See include/LICENSE\n\nCopyright 2010-2012 by Felix Schulze\n http://www.x2on.de" delegate:nil cancelButtonTitle:@"Close" otherButtonTitles:nil]; - - [alert show]; - [alert release]; -} - -- (void)applicationWillResignActive:(UIApplication *)application { - /* - Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. - */ -} - - -- (void)applicationDidEnterBackground:(UIApplication *)application { - /* - Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - If your application supports background execution, called instead of applicationWillTerminate: when the user quits. - */ -} - - -- (void)applicationWillEnterForeground:(UIApplication *)application { - /* - Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background. - */ -} - - -- (void)applicationDidBecomeActive:(UIApplication *)application { - /* - Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. - */ -} - - -- (void)applicationWillTerminate:(UIApplication *)application { - /* - Called when the application is about to terminate. - See also applicationDidEnterBackground:. - */ -} - - -#pragma mark - -#pragma mark Memory management - -- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application { - /* - Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later. - */ -} - - -- (void)dealloc { - [window release]; - [super dealloc]; -} - - -@end \ No newline at end of file diff --git a/Icon.png b/Icon.png index b31bfda..1919ca6 100644 Binary files a/Icon.png and b/Icon.png differ diff --git a/Icon@2x.png b/Icon@2x.png new file mode 100644 index 0000000..8d33d2d Binary files /dev/null and b/Icon@2x.png differ diff --git a/Icon~iPad@2x.png b/Icon~iPad@2x.png new file mode 100644 index 0000000..7b10135 Binary files /dev/null and b/Icon~iPad@2x.png differ diff --git a/Icon~ipad.png b/Icon~ipad.png new file mode 100644 index 0000000..6248db6 Binary files /dev/null and b/Icon~ipad.png differ diff --git a/MainWindow.xib b/MainWindow.xib deleted file mode 100644 index d727009..0000000 --- a/MainWindow.xib +++ /dev/null @@ -1,910 +0,0 @@ - - - - 1056 - 10H574 - 823 - 1038.35 - 461.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 132 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - IBCocoaTouchFramework - - - - 1316 - - YES - - - 1314 - - YES - - - 1316 - {{297, 12}, {18, 19}} - - NO - IBCocoaTouchFramework - 0 - 0 - - Helvetica-Bold - 15 - 16 - - 3 - YES - - 3 - MQA - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - 3 - MC41AA - - - - {{0, 20}, {320, 44}} - - IBCocoaTouchFramework - 1 - - YES - - - OpenSSL-for-iOS - - IBCocoaTouchFramework - - - - IBCocoaTouchFramework - - - - - - 1316 - {{19, 142}, {286, 35}} - - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - Calculate MD5 - - - 1 - MC4xOTYwNzg0MzE0IDAuMzA5ODAzOTIxNiAwLjUyMTU2ODYyNzUAA - - - - - - 1316 - {{19, 230}, {87, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - MD5-Hash: - - 1 - MCAwIDAAA - - - 1 - 10 - - - - 1316 - {{19, 298}, {115, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - SHA256-Hash: - - - 1 - 10 - - - - 1316 - {{19, 103}, {286, 31}} - - NO - YES - IBCocoaTouchFramework - 0 - Enter an Text here - 3 - - 3 - MAA - - 2 - - - YES - 17 - - IBCocoaTouchFramework - - - - - 1316 - {{19, 74}, {42, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Text: - - - 1 - 10 - - - - 1316 - {{19, 185}, {286, 37}} - - NO - IBCocoaTouchFramework - 0 - 0 - - 1 - Calculate SHA256 - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - - - - 1316 - {{20, 259}, {285, 31}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - - - - 1 - 10 - - - - 1316 - {{19, 327}, {286, 62}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - - - - 1 - 10 - 3 - - - - {320, 480} - - - 1 - MSAxIDEAA - - NO - NO - - IBCocoaTouchFramework - YES - - - - - YES - - - delegate - - - - 4 - - - - window - - - - 5 - - - - showInfo - - - 1 - - 20 - - - - textField - - - - 31 - - - - calculateMD5: - - - 1 - - 32 - - - - calculateSHA256: - - - 1 - - 34 - - - - md5TextField - - - - 44 - - - - sha256TextField - - - - 46 - - - - - YES - - 0 - - - - - - 2 - - - YES - - - - - - - - - - - - - - -1 - - - File's Owner - - - 3 - - - - - -2 - - - - - 10 - - - YES - - - - - - 11 - - - YES - - - - - - 19 - - - YES - - - - - - 18 - - - - - 22 - - - - - 24 - - - - - 29 - - - - - 30 - - - - - 33 - - - - - 35 - - - - - 43 - - - - - 45 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 10.IBPluginDependency - 11.IBPluginDependency - 18.IBPluginDependency - 18.IBViewBoundsToFrameTransform - 2.IBAttributePlaceholdersKey - 2.IBEditorWindowLastContentRect - 2.IBPluginDependency - 22.IBPluginDependency - 22.IBViewBoundsToFrameTransform - 24.IBPluginDependency - 24.IBViewBoundsToFrameTransform - 29.IBPluginDependency - 29.IBViewBoundsToFrameTransform - 3.CustomClassName - 3.IBPluginDependency - 30.IBPluginDependency - 30.IBViewBoundsToFrameTransform - 33.IBPluginDependency - 33.IBViewBoundsToFrameTransform - 35.IBPluginDependency - 35.IBViewBoundsToFrameTransform - 43.IBPluginDependency - 43.IBViewBoundsToFrameTransform - 45.IBPluginDependency - - - YES - UIApplication - UIResponder - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - P4AAAL+AAABCxAAAw4EAAA - - - YES - - - YES - - - {{522, 105}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - P4AAAL+AAABBmAAAwy8AAA - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - P4AAAL+AAABBiAAAw4aAAA - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - P4AAAL+AAABBmAAAwysAAA - - OpenSSL_for_iOSAppDelegate - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - P4AAAL+AAABBmAAAwrYAAA - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - P4AAAL+AAABBMAAAw1wAAA - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - P4AAAL+AAABBiAAAw6iAAA - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - P4AAAL+AAABCuAAAw4sAAA - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 46 - - - - YES - - OpenSSL_for_iOSAppDelegate - NSObject - - YES - - YES - calculateMD5: - calculateSHA256: - showInfo - - - YES - id - id - id - - - - YES - - YES - calculateMD5: - calculateSHA256: - showInfo - - - YES - - calculateMD5: - id - - - calculateSHA256: - id - - - showInfo - id - - - - - YES - - YES - md5TextField - sha256TextField - textField - window - - - YES - UILabel - UILabel - UITextField - UIWindow - - - - YES - - YES - md5TextField - sha256TextField - textField - window - - - YES - - md5TextField - UILabel - - - sha256TextField - UILabel - - - textField - UITextField - - - window - UIWindow - - - - - IBProjectSource - Classes/OpenSSL_for_iOSAppDelegate.h - - - - - YES - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSError.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSFileManager.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSKeyValueCoding.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSKeyValueObserving.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSKeyedArchiver.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSObject.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSRunLoop.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSThread.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSURL.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSURLConnection.h - - - - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UIAccessibility.h - - - - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UINibLoading.h - - - - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UIResponder.h - - - - UIApplication - UIResponder - - IBFrameworkSource - UIKit.framework/Headers/UIApplication.h - - - - UIBarButtonItem - UIBarItem - - IBFrameworkSource - UIKit.framework/Headers/UIBarButtonItem.h - - - - UIBarItem - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UIBarItem.h - - - - UIButton - UIControl - - IBFrameworkSource - UIKit.framework/Headers/UIButton.h - - - - UIControl - UIView - - IBFrameworkSource - UIKit.framework/Headers/UIControl.h - - - - UILabel - UIView - - IBFrameworkSource - UIKit.framework/Headers/UILabel.h - - - - UINavigationBar - UIView - - IBFrameworkSource - UIKit.framework/Headers/UINavigationBar.h - - - - UINavigationItem - NSObject - - - - UIResponder - NSObject - - - - UISearchBar - UIView - - IBFrameworkSource - UIKit.framework/Headers/UISearchBar.h - - - - UISearchDisplayController - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UISearchDisplayController.h - - - - UITextField - UIControl - - IBFrameworkSource - UIKit.framework/Headers/UITextField.h - - - - UIView - - IBFrameworkSource - UIKit.framework/Headers/UIPrintFormatter.h - - - - UIView - - - - UIView - UIResponder - - IBFrameworkSource - UIKit.framework/Headers/UIView.h - - - - UIViewController - - IBFrameworkSource - UIKit.framework/Headers/UINavigationController.h - - - - UIViewController - - IBFrameworkSource - UIKit.framework/Headers/UIPopoverController.h - - - - UIViewController - - IBFrameworkSource - UIKit.framework/Headers/UISplitViewController.h - - - - UIViewController - - IBFrameworkSource - UIKit.framework/Headers/UITabBarController.h - - - - UIViewController - UIResponder - - IBFrameworkSource - UIKit.framework/Headers/UIViewController.h - - - - UIWindow - UIView - - IBFrameworkSource - UIKit.framework/Headers/UIWindow.h - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - OpenSSL-for-iPhone.xcodeproj - 3 - 132 - - diff --git a/OpenSSL-for-iOS.xcodeproj/project.pbxproj b/OpenSSL-for-iOS.xcodeproj/project.pbxproj old mode 100755 new mode 100644 index 3869d8a..98e3ff6 --- a/OpenSSL-for-iOS.xcodeproj/project.pbxproj +++ b/OpenSSL-for-iOS.xcodeproj/project.pbxproj @@ -7,119 +7,138 @@ objects = { /* Begin PBXBuildFile section */ - 1D3623260D0F684500981E51 /* OpenSSL_for_iOSAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* OpenSSL_for_iOSAppDelegate.m */; }; - 1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; }; - 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 288765FD0DF74451002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765FC0DF74451002DB57D /* CoreGraphics.framework */; }; - 28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; }; - 2A28EE4612AA83FE00C0D35A /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 2A28EE4512AA83FE00C0D35A /* Icon.png */; }; - 2AA51C5512AA80B400AEA776 /* libssl.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2AA51C5312AA80B400AEA776 /* libssl.a */; }; - 2AA51C5612AA80B400AEA776 /* libcrypto.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2AA51C5412AA80B400AEA776 /* libcrypto.a */; }; + 533ED3001528C4840005C6FA /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 533ED2FF1528C4840005C6FA /* UIKit.framework */; }; + 533ED3021528C4840005C6FA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 533ED3011528C4840005C6FA /* Foundation.framework */; }; + 533ED3041528C4840005C6FA /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 533ED3031528C4840005C6FA /* CoreGraphics.framework */; }; + 533ED30A1528C4840005C6FA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 533ED3081528C4840005C6FA /* InfoPlist.strings */; }; + 533ED30C1528C4840005C6FA /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 533ED30B1528C4840005C6FA /* main.m */; }; + 533ED3101528C4840005C6FA /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 533ED30F1528C4840005C6FA /* AppDelegate.m */; }; + 533ED3131528C4840005C6FA /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 533ED3121528C4840005C6FA /* ViewController.m */; }; + 533ED3161528C4840005C6FA /* ViewController_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = 533ED3141528C4840005C6FA /* ViewController_iPhone.xib */; }; + 533ED3191528C4840005C6FA /* ViewController_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 533ED3171528C4840005C6FA /* ViewController_iPad.xib */; }; + 533ED3201528C4950005C6FA /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 533ED31F1528C4950005C6FA /* Icon.png */; }; + 533ED3221528C4960005C6FA /* Icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 533ED3211528C4960005C6FA /* Icon@2x.png */; }; + 533ED3261528C4FA0005C6FA /* Icon~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 533ED3251528C4FA0005C6FA /* Icon~ipad.png */; }; + 533ED3281528C5140005C6FA /* Icon~iPad@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 533ED3271528C5140005C6FA /* Icon~iPad@2x.png */; }; + 533ED32C1528C53B0005C6FA /* libcrypto.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 533ED32A1528C53B0005C6FA /* libcrypto.a */; }; + 533ED32D1528C53B0005C6FA /* libssl.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 533ED32B1528C53B0005C6FA /* libssl.a */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ - 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - 1D3623240D0F684500981E51 /* OpenSSL_for_iOSAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OpenSSL_for_iOSAppDelegate.h; sourceTree = ""; }; - 1D3623250D0F684500981E51 /* OpenSSL_for_iOSAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OpenSSL_for_iOSAppDelegate.m; sourceTree = ""; }; - 1D6058910D05DD3D006BFB54 /* OpenSSL.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OpenSSL.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; - 288765FC0DF74451002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; - 28AD733E0D9D9553002E5188 /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = ""; }; - 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 2A28EE4512AA83FE00C0D35A /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = ""; }; - 2AA51C5312AA80B400AEA776 /* libssl.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libssl.a; path = lib/libssl.a; sourceTree = ""; }; - 2AA51C5412AA80B400AEA776 /* libcrypto.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libcrypto.a; path = lib/libcrypto.a; sourceTree = ""; }; - 32CA4F630368D1EE00C91783 /* OpenSSL_for_iOS_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OpenSSL_for_iOS_Prefix.pch; sourceTree = ""; }; - 8D1107310486CEB800E47090 /* OpenSSL_for_iOS-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "OpenSSL_for_iOS-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = ""; }; + 533ED2FB1528C4840005C6FA /* OpenSSL.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OpenSSL.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 533ED2FF1528C4840005C6FA /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 533ED3011528C4840005C6FA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 533ED3031528C4840005C6FA /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 533ED3071528C4840005C6FA /* OpenSSL-for-iOS-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "OpenSSL-for-iOS-Info.plist"; sourceTree = ""; }; + 533ED3091528C4840005C6FA /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 533ED30B1528C4840005C6FA /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 533ED30D1528C4840005C6FA /* OpenSSL-for-iOS-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "OpenSSL-for-iOS-Prefix.pch"; sourceTree = ""; }; + 533ED30E1528C4840005C6FA /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 533ED30F1528C4840005C6FA /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 533ED3111528C4840005C6FA /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 533ED3121528C4840005C6FA /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 533ED3151528C4840005C6FA /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController_iPhone.xib; sourceTree = ""; }; + 533ED3181528C4840005C6FA /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController_iPad.xib; sourceTree = ""; }; + 533ED31F1528C4950005C6FA /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Icon.png; path = ../Icon.png; sourceTree = ""; }; + 533ED3211528C4960005C6FA /* Icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon@2x.png"; path = "../Icon@2x.png"; sourceTree = ""; }; + 533ED3251528C4FA0005C6FA /* Icon~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon~ipad.png"; path = "../Icon~ipad.png"; sourceTree = ""; }; + 533ED3271528C5140005C6FA /* Icon~iPad@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon~iPad@2x.png"; path = "../Icon~iPad@2x.png"; sourceTree = ""; }; + 533ED32A1528C53B0005C6FA /* libcrypto.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libcrypto.a; path = lib/libcrypto.a; sourceTree = ""; }; + 533ED32B1528C53B0005C6FA /* libssl.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libssl.a; path = lib/libssl.a; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ - 1D60588F0D05DD3D006BFB54 /* Frameworks */ = { + 533ED2F81528C4840005C6FA /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */, - 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */, - 288765FD0DF74451002DB57D /* CoreGraphics.framework in Frameworks */, - 2AA51C5512AA80B400AEA776 /* libssl.a in Frameworks */, - 2AA51C5612AA80B400AEA776 /* libcrypto.a in Frameworks */, + 533ED3001528C4840005C6FA /* UIKit.framework in Frameworks */, + 533ED3021528C4840005C6FA /* Foundation.framework in Frameworks */, + 533ED3041528C4840005C6FA /* CoreGraphics.framework in Frameworks */, + 533ED32C1528C53B0005C6FA /* libcrypto.a in Frameworks */, + 533ED32D1528C53B0005C6FA /* libssl.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 080E96DDFE201D6D7F000001 /* Classes */ = { + 533ED2F01528C4840005C6FA = { isa = PBXGroup; children = ( - 1D3623240D0F684500981E51 /* OpenSSL_for_iOSAppDelegate.h */, - 1D3623250D0F684500981E51 /* OpenSSL_for_iOSAppDelegate.m */, + 533ED3051528C4840005C6FA /* OpenSSL-for-iOS */, + 533ED2FE1528C4840005C6FA /* Frameworks */, + 533ED2FC1528C4840005C6FA /* Products */, ); - path = Classes; sourceTree = ""; }; - 19C28FACFE9D520D11CA2CBB /* Products */ = { + 533ED2FC1528C4840005C6FA /* Products */ = { isa = PBXGroup; children = ( - 1D6058910D05DD3D006BFB54 /* OpenSSL.app */, + 533ED2FB1528C4840005C6FA /* OpenSSL.app */, ); name = Products; sourceTree = ""; }; - 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { + 533ED2FE1528C4840005C6FA /* Frameworks */ = { isa = PBXGroup; children = ( - 080E96DDFE201D6D7F000001 /* Classes */, - 29B97315FDCFA39411CA2CEA /* Other Sources */, - 29B97317FDCFA39411CA2CEA /* Resources */, - 29B97323FDCFA39411CA2CEA /* Frameworks */, - 19C28FACFE9D520D11CA2CBB /* Products */, - ); - name = CustomTemplate; - sourceTree = ""; - }; - 29B97315FDCFA39411CA2CEA /* Other Sources */ = { - isa = PBXGroup; - children = ( - 32CA4F630368D1EE00C91783 /* OpenSSL_for_iOS_Prefix.pch */, - 29B97316FDCFA39411CA2CEA /* main.m */, - ); - name = "Other Sources"; - sourceTree = ""; - }; - 29B97317FDCFA39411CA2CEA /* Resources */ = { - isa = PBXGroup; - children = ( - 2A28EE4512AA83FE00C0D35A /* Icon.png */, - 28AD733E0D9D9553002E5188 /* MainWindow.xib */, - 8D1107310486CEB800E47090 /* OpenSSL_for_iOS-Info.plist */, - ); - name = Resources; - sourceTree = ""; - }; - 29B97323FDCFA39411CA2CEA /* Frameworks */ = { - isa = PBXGroup; - children = ( - 2AA51C5312AA80B400AEA776 /* libssl.a */, - 2AA51C5412AA80B400AEA776 /* libcrypto.a */, - 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */, - 1D30AB110D05D00D00671497 /* Foundation.framework */, - 288765FC0DF74451002DB57D /* CoreGraphics.framework */, + 533ED32A1528C53B0005C6FA /* libcrypto.a */, + 533ED32B1528C53B0005C6FA /* libssl.a */, + 533ED2FF1528C4840005C6FA /* UIKit.framework */, + 533ED3011528C4840005C6FA /* Foundation.framework */, + 533ED3031528C4840005C6FA /* CoreGraphics.framework */, ); name = Frameworks; sourceTree = ""; }; + 533ED3051528C4840005C6FA /* OpenSSL-for-iOS */ = { + isa = PBXGroup; + children = ( + 533ED3291528C51A0005C6FA /* Ressources */, + 533ED30E1528C4840005C6FA /* AppDelegate.h */, + 533ED30F1528C4840005C6FA /* AppDelegate.m */, + 533ED3111528C4840005C6FA /* ViewController.h */, + 533ED3121528C4840005C6FA /* ViewController.m */, + 533ED3141528C4840005C6FA /* ViewController_iPhone.xib */, + 533ED3171528C4840005C6FA /* ViewController_iPad.xib */, + 533ED3061528C4840005C6FA /* Supporting Files */, + ); + path = "OpenSSL-for-iOS"; + sourceTree = ""; + }; + 533ED3061528C4840005C6FA /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 533ED3071528C4840005C6FA /* OpenSSL-for-iOS-Info.plist */, + 533ED3081528C4840005C6FA /* InfoPlist.strings */, + 533ED30B1528C4840005C6FA /* main.m */, + 533ED30D1528C4840005C6FA /* OpenSSL-for-iOS-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 533ED3291528C51A0005C6FA /* Ressources */ = { + isa = PBXGroup; + children = ( + 533ED3271528C5140005C6FA /* Icon~iPad@2x.png */, + 533ED3251528C4FA0005C6FA /* Icon~ipad.png */, + 533ED3211528C4960005C6FA /* Icon@2x.png */, + 533ED31F1528C4950005C6FA /* Icon.png */, + ); + name = Ressources; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 1D6058900D05DD3D006BFB54 /* OpenSSL-for-iOS */ = { + 533ED2FA1528C4840005C6FA /* OpenSSL-for-iOS */ = { isa = PBXNativeTarget; - buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "OpenSSL-for-iOS" */; + buildConfigurationList = 533ED31C1528C4840005C6FA /* Build configuration list for PBXNativeTarget "OpenSSL-for-iOS" */; buildPhases = ( - 1D60588D0D05DD3D006BFB54 /* Resources */, - 1D60588E0D05DD3D006BFB54 /* Sources */, - 1D60588F0D05DD3D006BFB54 /* Frameworks */, + 533ED2F71528C4840005C6FA /* Sources */, + 533ED2F81528C4840005C6FA /* Frameworks */, + 533ED2F91528C4840005C6FA /* Resources */, ); buildRules = ( ); @@ -127,141 +146,195 @@ ); name = "OpenSSL-for-iOS"; productName = "OpenSSL-for-iOS"; - productReference = 1D6058910D05DD3D006BFB54 /* OpenSSL.app */; + productReference = 533ED2FB1528C4840005C6FA /* OpenSSL.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ - 29B97313FDCFA39411CA2CEA /* Project object */ = { + 533ED2F21528C4840005C6FA /* Project object */ = { isa = PBXProject; attributes = { LastUpgradeCheck = 0430; + ORGANIZATIONNAME = Immobilienscout24; }; - buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "OpenSSL-for-iOS" */; + buildConfigurationList = 533ED2F51528C4840005C6FA /* Build configuration list for PBXProject "OpenSSL-for-iOS" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; - hasScannedForEncodings = 1; + hasScannedForEncodings = 0; knownRegions = ( - English, - Japanese, - French, - German, + en, ); - mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */; + mainGroup = 533ED2F01528C4840005C6FA; + productRefGroup = 533ED2FC1528C4840005C6FA /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( - 1D6058900D05DD3D006BFB54 /* OpenSSL-for-iOS */, + 533ED2FA1528C4840005C6FA /* OpenSSL-for-iOS */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ - 1D60588D0D05DD3D006BFB54 /* Resources */ = { + 533ED2F91528C4840005C6FA /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */, - 2A28EE4612AA83FE00C0D35A /* Icon.png in Resources */, + 533ED30A1528C4840005C6FA /* InfoPlist.strings in Resources */, + 533ED3161528C4840005C6FA /* ViewController_iPhone.xib in Resources */, + 533ED3191528C4840005C6FA /* ViewController_iPad.xib in Resources */, + 533ED3201528C4950005C6FA /* Icon.png in Resources */, + 533ED3221528C4960005C6FA /* Icon@2x.png in Resources */, + 533ED3261528C4FA0005C6FA /* Icon~ipad.png in Resources */, + 533ED3281528C5140005C6FA /* Icon~iPad@2x.png in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ - 1D60588E0D05DD3D006BFB54 /* Sources */ = { + 533ED2F71528C4840005C6FA /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 1D60589B0D05DD56006BFB54 /* main.m in Sources */, - 1D3623260D0F684500981E51 /* OpenSSL_for_iOSAppDelegate.m in Sources */, + 533ED30C1528C4840005C6FA /* main.m in Sources */, + 533ED3101528C4840005C6FA /* AppDelegate.m in Sources */, + 533ED3131528C4840005C6FA /* ViewController.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ +/* Begin PBXVariantGroup section */ + 533ED3081528C4840005C6FA /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 533ED3091528C4840005C6FA /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 533ED3141528C4840005C6FA /* ViewController_iPhone.xib */ = { + isa = PBXVariantGroup; + children = ( + 533ED3151528C4840005C6FA /* en */, + ); + name = ViewController_iPhone.xib; + sourceTree = ""; + }; + 533ED3171528C4840005C6FA /* ViewController_iPad.xib */ = { + isa = PBXVariantGroup; + children = ( + 533ED3181528C4840005C6FA /* en */, + ); + name = ViewController_iPad.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + /* Begin XCBuildConfiguration section */ - 1D6058940D05DD3E006BFB54 /* Debug */ = { + 533ED31A1528C4840005C6FA /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + CLANG_ENABLE_OBJC_ARC = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = OpenSSL_for_iOS_Prefix.pch; - INFOPLIST_FILE = "OpenSSL_for_iOS-Info.plist"; - LIBRARY_SEARCH_PATHS = lib; - PRODUCT_NAME = OpenSSL; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = "include/**"; + IPHONEOS_DEPLOYMENT_TARGET = 5.1; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; - 1D6058950D05DD3E006BFB54 /* Release */ = { + 533ED31B1528C4840005C6FA /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + CLANG_ENABLE_OBJC_ARC = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = OpenSSL_for_iOS_Prefix.pch; - INFOPLIST_FILE = "OpenSSL_for_iOS-Info.plist"; - LIBRARY_SEARCH_PATHS = lib; - PRODUCT_NAME = OpenSSL; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = "include/**"; + IPHONEOS_DEPLOYMENT_TARGET = 5.1; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; }; name = Release; }; - C01FCF4F08A954540054247B /* Debug */ = { + 533ED31D1528C4840005C6FA /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - GCC_C_LANGUAGE_STANDARD = c99; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "include/**"; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "OpenSSL-for-iOS/OpenSSL-for-iOS-Prefix.pch"; + INFOPLIST_FILE = "OpenSSL-for-iOS/OpenSSL-for-iOS-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 4.0; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "\"$(SRCROOT)/lib\"", + ); + PRODUCT_NAME = OpenSSL; + WRAPPER_EXTENSION = app; }; name = Debug; }; - C01FCF5008A954540054247B /* Release */ = { + 533ED31E1528C4840005C6FA /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - GCC_C_LANGUAGE_STANDARD = c99; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "include/**"; - ONLY_ACTIVE_ARCH = YES; - OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; - SDKROOT = iphoneos; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "OpenSSL-for-iOS/OpenSSL-for-iOS-Prefix.pch"; + INFOPLIST_FILE = "OpenSSL-for-iOS/OpenSSL-for-iOS-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 4.0; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "\"$(SRCROOT)/lib\"", + ); + PRODUCT_NAME = OpenSSL; + WRAPPER_EXTENSION = app; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "OpenSSL-for-iOS" */ = { + 533ED2F51528C4840005C6FA /* Build configuration list for PBXProject "OpenSSL-for-iOS" */ = { isa = XCConfigurationList; buildConfigurations = ( - 1D6058940D05DD3E006BFB54 /* Debug */, - 1D6058950D05DD3E006BFB54 /* Release */, + 533ED31A1528C4840005C6FA /* Debug */, + 533ED31B1528C4840005C6FA /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - C01FCF4E08A954540054247B /* Build configuration list for PBXProject "OpenSSL-for-iOS" */ = { + 533ED31C1528C4840005C6FA /* Build configuration list for PBXNativeTarget "OpenSSL-for-iOS" */ = { isa = XCConfigurationList; buildConfigurations = ( - C01FCF4F08A954540054247B /* Debug */, - C01FCF5008A954540054247B /* Release */, + 533ED31D1528C4840005C6FA /* Debug */, + 533ED31E1528C4840005C6FA /* Release */, ); defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; - rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; + rootObject = 533ED2F21528C4840005C6FA /* Project object */; } diff --git a/OpenSSL-for-iOS/AppDelegate.h b/OpenSSL-for-iOS/AppDelegate.h new file mode 100644 index 0000000..f773ae6 --- /dev/null +++ b/OpenSSL-for-iOS/AppDelegate.h @@ -0,0 +1,20 @@ +// +// AppDelegate.h +// OpenSSL-for-iOS +// +// Created by Felix Schulze on 04.12.2010. +// Updated by Schulze Felix on 01.04.12. +// Copyright (c) 2012 Felix Schulze . All rights reserved. +// Web: http://www.felixschulze.de +// + +#import + +@class ViewController; + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; +@property (strong, nonatomic) ViewController *viewController; + +@end diff --git a/OpenSSL-for-iOS/AppDelegate.m b/OpenSSL-for-iOS/AppDelegate.m new file mode 100644 index 0000000..2263199 --- /dev/null +++ b/OpenSSL-for-iOS/AppDelegate.m @@ -0,0 +1,33 @@ +// +// AppDelegate.m +// OpenSSL-for-iOS +// +// Created by Felix Schulze on 04.12.2010. +// Updated by Schulze Felix on 01.04.12. +// Copyright (c) 2012 Felix Schulze . All rights reserved. +// Web: http://www.felixschulze.de +// + +#import "AppDelegate.h" +#import "ViewController.h" + +@implementation AppDelegate + +@synthesize window = _window; +@synthesize viewController = _viewController; + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; + if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { + self.viewController = [[ViewController alloc] initWithNibName:@"ViewController_iPhone" bundle:nil]; + } else { + self.viewController = [[ViewController alloc] initWithNibName:@"ViewController_iPad" bundle:nil]; + } + self.window.rootViewController = self.viewController; + [self.window makeKeyAndVisible]; + return YES; +} + + +@end diff --git a/OpenSSL-for-iOS/OpenSSL-for-iOS-Info.plist b/OpenSSL-for-iOS/OpenSSL-for-iOS-Info.plist new file mode 100644 index 0000000..7332ab4 --- /dev/null +++ b/OpenSSL-for-iOS/OpenSSL-for-iOS-Info.plist @@ -0,0 +1,55 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIcons + + CFBundlePrimaryIcon + + CFBundleIconFiles + + Icon.png + Icon@2x.png + Icon~ipad.png + Icon~iPad@2x.png + + + + CFBundleIdentifier + de.felixschulze.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 2.0 + CFBundleSignature + ???? + CFBundleVersion + 2.0 + LSRequiresIPhoneOS + + UIApplicationExitsOnSuspend + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + + + diff --git a/OpenSSL_for_iOS_Prefix.pch b/OpenSSL-for-iOS/OpenSSL-for-iOS-Prefix.pch similarity index 59% rename from OpenSSL_for_iOS_Prefix.pch rename to OpenSSL-for-iOS/OpenSSL-for-iOS-Prefix.pch index b996b48..b88b813 100644 --- a/OpenSSL_for_iOS_Prefix.pch +++ b/OpenSSL-for-iOS/OpenSSL-for-iOS-Prefix.pch @@ -2,7 +2,13 @@ // Prefix header for all source files of the 'OpenSSL-for-iOS' target in the 'OpenSSL-for-iOS' project // -#ifdef __OBJC__ - #import - #import +#import + +#ifndef __IPHONE_4_0 +#warning "This project uses features only available in iOS SDK 4.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import #endif diff --git a/OpenSSL-for-iOS/ViewController.h b/OpenSSL-for-iOS/ViewController.h new file mode 100644 index 0000000..33099d6 --- /dev/null +++ b/OpenSSL-for-iOS/ViewController.h @@ -0,0 +1,23 @@ +// +// ViewController.h +// OpenSSL-for-iOS +// +// Created by Felix Schulze on 04.12.2010. +// Updated by Schulze Felix on 01.04.12. +// Copyright (c) 2012 Felix Schulze . All rights reserved. +// Web: http://www.felixschulze.de +// + +#import + +@interface ViewController : UIViewController + +@property (nonatomic, strong) IBOutlet UITextField *textField; +@property (nonatomic, strong) IBOutlet UILabel *md5TextField; +@property (nonatomic, strong) IBOutlet UILabel *sha256TextField; + +- (IBAction)showInfo; +- (IBAction)calculateMD5:(id)sender; +- (IBAction)calculateSHA256:(id)sender; + +@end diff --git a/OpenSSL-for-iOS/ViewController.m b/OpenSSL-for-iOS/ViewController.m new file mode 100644 index 0000000..6a96888 --- /dev/null +++ b/OpenSSL-for-iOS/ViewController.m @@ -0,0 +1,82 @@ +// +// ViewController.m +// OpenSSL-for-iOS +// +// Created by Felix Schulze on 04.12.2010. +// Updated by Schulze Felix on 01.04.12. +// Copyright (c) 2012 Felix Schulze . All rights reserved. +// Web: http://www.felixschulze.de +// + +#import "ViewController.h" +#include +#include + +@implementation ViewController + +@synthesize textField; +@synthesize md5TextField; +@synthesize sha256TextField; + +#pragma mark - +#pragma mark OpenSSL + +- (IBAction)calculateMD5:(id)sender +{ + /** Calculate MD5*/ + NSString *string = textField.text; + unsigned char *inStrg = (unsigned char*)[[string dataUsingEncoding:NSASCIIStringEncoding] bytes]; + unsigned long lngth = [string length]; + unsigned char result[MD5_DIGEST_LENGTH]; + NSMutableString *outStrg = [NSMutableString string]; + + MD5(inStrg, lngth, result); + + unsigned int i; + for (i = 0; i < MD5_DIGEST_LENGTH; i++) + { + [outStrg appendFormat:@"%02x", result[i]]; + } + md5TextField.text = outStrg; + + //Hide Keyboard after calculation + [textField resignFirstResponder]; +} + +- (IBAction)calculateSHA256:(id)sender +{ + /* Calculate SHA256 */ + NSString *string = textField.text; + unsigned char *inStrg = (unsigned char*)[[string dataUsingEncoding:NSASCIIStringEncoding] bytes]; + unsigned long lngth = [string length]; + unsigned char result[SHA256_DIGEST_LENGTH]; + NSMutableString *outStrg = [NSMutableString string]; + + SHA256_CTX sha256; + SHA256_Init(&sha256); + SHA256_Update(&sha256, inStrg, lngth); + SHA256_Final(result, &sha256); + + unsigned int i; + for(i = 0; i < SHA256_DIGEST_LENGTH; i++) + { + [outStrg appendFormat:@"%02x", result[i]]; + } + sha256TextField.text = outStrg; + + //Hide Keyboard after calculation + [textField resignFirstResponder]; +} + +- (IBAction)showInfo +{ + UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"OpenSSL-for-iOS" message:@"OpenSSL-Version: 1.0.1\nLicense: See include/LICENSE\n\nCopyright 2010-2012 by Felix Schulze\n http://www.x2on.de" delegate:nil cancelButtonTitle:@"Close" otherButtonTitles:nil]; + [alert show]; +} + +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation +{ + return (interfaceOrientation == UIInterfaceOrientationPortrait); +} + +@end diff --git a/OpenSSL-for-iOS/en.lproj/InfoPlist.strings b/OpenSSL-for-iOS/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/OpenSSL-for-iOS/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/OpenSSL-for-iOS/en.lproj/ViewController_iPad.xib b/OpenSSL-for-iOS/en.lproj/ViewController_iPad.xib new file mode 100644 index 0000000..6022a9d --- /dev/null +++ b/OpenSSL-for-iOS/en.lproj/ViewController_iPad.xib @@ -0,0 +1,562 @@ + + + + 1296 + 11D50b + 2182 + 1138.32 + 568.00 + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + 1181 + + + IBUIView + IBProxyObject + IBUILabel + IBUIBarButtonItem + IBUITextField + IBUINavigationBar + IBUINavigationItem + IBUIButton + + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + PluginDependencyRecalculationVersion + + + + + IBFilesOwner + IBIPadFramework + + + IBFirstResponder + IBIPadFramework + + + + 274 + + + + 292 + {{20, 239}, {728, 31}} + + + + NO + YES + 7 + NO + IBIPadFramework + + + 1 + MCAwIDAAA + + + 3 + MQA + + 1 + 10 + + 1 + 17 + + + Helvetica + 17 + 16 + + + + + 292 + {{19, 54}, {42, 21}} + + + + NO + YES + 7 + NO + IBIPadFramework + Text: + + + 1 + 10 + + + + + + 292 + {{19, 278}, {729, 21}} + + + + NO + YES + 7 + NO + IBIPadFramework + SHA256-Hash: + + + 1 + 10 + + + + + + 290 + + + + 292 + {{743, 12}, {18, 19}} + + + + NO + IBIPadFramework + 0 + 0 + 3 + YES + + + 1 + MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA + + + 3 + MC41AA + + + Helvetica-Bold + Helvetica + 2 + 15 + + + Helvetica-Bold + 15 + 16 + + + + {768, 44} + + + + IBIPadFramework + 1 + + + + OpenSSL-for-iOS + + IBIPadFramework + 1 + + + + IBIPadFramework + + + + + + 292 + {{19, 83}, {729, 31}} + + + + NO + YES + IBIPadFramework + 0 + Enter an Text here + 3 + + 3 + MAA + + 2 + + + YES + 17 + + IBCocoaTouchFramework + + + 1 + 12 + + + Helvetica + 12 + 16 + + + + + 292 + {{19, 210}, {729, 21}} + + + + NO + YES + 7 + NO + IBIPadFramework + MD5-Hash: + + + 1 + 10 + + + + + + 292 + {{19, 122}, {729, 35}} + + + + NO + IBIPadFramework + 0 + 0 + 1 + Calculate MD5 + + + 1 + MC4xOTYwNzg0MzE0IDAuMzA5ODAzOTIxNiAwLjUyMTU2ODYyNzUAA + + + + + + + + 292 + {{19, 307}, {729, 62}} + + + NO + YES + 7 + NO + IBIPadFramework + + + + 1 + 10 + 3 + + + + + + 292 + {{19, 165}, {729, 37}} + + + + NO + IBIPadFramework + 0 + 0 + 1 + Calculate SHA256 + + + 1 + MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA + + + + + + + {{0, 20}, {768, 1004}} + + + + 3 + MQA + + + + 2 + + IBIPadFramework + + + + + + + view + + + + 3 + + + + md5TextField + + + + 16 + + + + sha256TextField + + + + 17 + + + + textField + + + + 18 + + + + calculateMD5: + + + 1 + + 19 + + + + calculateSHA256: + + + 1 + + 20 + + + + showInfo + + + 1 + + 21 + + + + + + 0 + + + + + + -1 + + + File's Owner + + + -2 + + + + + 2 + + + + + + + + + + + + + + + + 4 + + + + + 5 + + + + + 6 + + + + + 7 + + + + + + + + 8 + + + + + 9 + + + + + 10 + + + + + 11 + + + + + 12 + + + + + 13 + + + + + + + + 14 + + + + + + + + 15 + + + + + + + ViewController + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + UIResponder + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + + + 21 + + + + + ViewController + UIViewController + + id + id + id + + + + calculateMD5: + id + + + calculateSHA256: + id + + + showInfo + id + + + + UILabel + UILabel + UITextField + + + + md5TextField + UILabel + + + sha256TextField + UILabel + + + textField + UITextField + + + + IBProjectSource + ./Classes/ViewController.h + + + + + 0 + IBIPadFramework + + com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS + + + YES + 3 + 1181 + + diff --git a/OpenSSL-for-iOS/en.lproj/ViewController_iPhone.xib b/OpenSSL-for-iOS/en.lproj/ViewController_iPhone.xib new file mode 100644 index 0000000..d42f2e3 --- /dev/null +++ b/OpenSSL-for-iOS/en.lproj/ViewController_iPhone.xib @@ -0,0 +1,561 @@ + + + + 1296 + 11D50b + 2182 + 1138.32 + 568.00 + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + 1181 + + + IBUIView + IBProxyObject + IBUILabel + IBUIBarButtonItem + IBUITextField + IBUINavigationBar + IBUINavigationItem + IBUIButton + + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + PluginDependencyRecalculationVersion + + + + + IBFilesOwner + IBCocoaTouchFramework + + + IBFirstResponder + IBCocoaTouchFramework + + + + 274 + + + + 292 + {{19, 278}, {115, 21}} + + + + NO + YES + 7 + NO + IBCocoaTouchFramework + SHA256-Hash: + + 1 + MCAwIDAAA + + + 3 + MQA + + 1 + 10 + + 1 + 17 + + + Helvetica + 17 + 16 + + + + + 290 + + + + 292 + {{297, 12}, {18, 19}} + + + + NO + IBCocoaTouchFramework + 0 + 0 + 3 + YES + + + 1 + MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA + + + 3 + MC41AA + + + Helvetica-Bold + Helvetica + 2 + 15 + + + Helvetica-Bold + 15 + 16 + + + + {320, 44} + + + + IBCocoaTouchFramework + 1 + + + + OpenSSL-for-iOS + + IBCocoaTouchFramework + 1 + + + + IBCocoaTouchFramework + + + + + + 292 + {{19, 122}, {286, 35}} + + + + NO + IBCocoaTouchFramework + 0 + 0 + 1 + Calculate MD5 + + + 1 + MC4xOTYwNzg0MzE0IDAuMzA5ODAzOTIxNiAwLjUyMTU2ODYyNzUAA + + + + + + + + 292 + {{19, 210}, {87, 21}} + + + + NO + YES + 7 + NO + IBCocoaTouchFramework + MD5-Hash: + + + 1 + 10 + + + + + + 292 + {{20, 239}, {285, 31}} + + + + NO + YES + 7 + NO + IBCocoaTouchFramework + + + + 1 + 10 + + + + + + 292 + {{19, 83}, {286, 31}} + + + + NO + YES + IBCocoaTouchFramework + 0 + Enter an Text here + 3 + + 3 + MAA + + 2 + + + YES + 17 + + IBCocoaTouchFramework + + + 1 + 12 + + + Helvetica + 12 + 16 + + + + + 292 + {{19, 307}, {286, 62}} + + + NO + YES + 7 + NO + IBCocoaTouchFramework + + + + 1 + 10 + 3 + + + + + + 292 + {{19, 54}, {42, 21}} + + + + NO + YES + 7 + NO + IBCocoaTouchFramework + Text: + + + 1 + 10 + + + + + + 292 + {{19, 165}, {286, 37}} + + + + NO + IBCocoaTouchFramework + 0 + 0 + 1 + Calculate SHA256 + + + 1 + MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA + + + + + + + {{0, 20}, {320, 460}} + + + + + 1 + MSAxIDEAA + + NO + + IBCocoaTouchFramework + + + + + + + view + + + + 7 + + + + md5TextField + + + + 44 + + + + sha256TextField + + + + 45 + + + + textField + + + + 46 + + + + calculateMD5: + + + 1 + + 47 + + + + calculateSHA256: + + + 1 + + 48 + + + + showInfo + + + 1 + + 49 + + + + + + 0 + + + + + + -1 + + + File's Owner + + + -2 + + + + + 6 + + + + + + + + + + + + + + + + 32 + + + + + 33 + + + + + + + + 34 + + + + + 35 + + + + + 36 + + + + + 37 + + + + + 38 + + + + + 39 + + + + + 40 + + + + + 41 + + + + + + + + 42 + + + + + + + + 43 + + + + + + + ViewController + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + UIResponder + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + + + 49 + + + + + ViewController + UIViewController + + id + id + id + + + + calculateMD5: + id + + + calculateSHA256: + id + + + showInfo + id + + + + UILabel + UILabel + UITextField + + + + md5TextField + UILabel + + + sha256TextField + UILabel + + + textField + UITextField + + + + IBProjectSource + ./Classes/ViewController.h + + + + + 0 + IBCocoaTouchFramework + + com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS + + + YES + 3 + 1181 + + diff --git a/OpenSSL-for-iOS/main.m b/OpenSSL-for-iOS/main.m new file mode 100644 index 0000000..f7ab801 --- /dev/null +++ b/OpenSSL-for-iOS/main.m @@ -0,0 +1,19 @@ +// +// main.m +// OpenSSL-for-iOS +// +// Created by Felix Schulze on 04.12.2010. +// Updated by Schulze Felix on 01.04.12. +// Copyright (c) 2012 Felix Schulze . All rights reserved. +// Web: http://www.felixschulze.de +// + +#import +#import "AppDelegate.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/OpenSSL_for_iOS-Info.plist b/OpenSSL_for_iOS-Info.plist deleted file mode 100644 index 2cce138..0000000 --- a/OpenSSL_for_iOS-Info.plist +++ /dev/null @@ -1,32 +0,0 @@ - - - - - UIApplicationExitsOnSuspend - - CFBundleDevelopmentRegion - English - CFBundleDisplayName - ${PRODUCT_NAME} - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIconFile - Icon.png - CFBundleIdentifier - de.x2on.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleSignature - ???? - CFBundleVersion - 1.0 - LSRequiresIPhoneOS - - NSMainNibFile - MainWindow - - diff --git a/main.m b/main.m deleted file mode 100644 index 8128e75..0000000 --- a/main.m +++ /dev/null @@ -1,17 +0,0 @@ -// -// main.m -// OpenSSL-for-iPhone -// -// Created by Felix Schulze on 01.02.2010. -// Copyright Felix Schulze 2010. All rights reserved. -// - -#import - -int main(int argc, char *argv[]) { - - NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; - int retVal = UIApplicationMain(argc, argv, nil, nil); - [pool release]; - return retVal; -}