diff --git a/.gitignore b/.gitignore index 5e73fc8..e3b5b29 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ build OpenSSL-for-iOS.xcodeproj/project.xcworkspace/xcuserdata include/openssl *.framework +*.xccheckout diff --git a/OpenSSL-for-iOS.xcodeproj/project.pbxproj b/OpenSSL-for-iOS.xcodeproj/project.pbxproj index 2a179cb..558973b 100644 --- a/OpenSSL-for-iOS.xcodeproj/project.pbxproj +++ b/OpenSSL-for-iOS.xcodeproj/project.pbxproj @@ -14,8 +14,7 @@ 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 */; }; + 533ED3161528C4840005C6FA /* ViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 533ED3141528C4840005C6FA /* ViewController.xib */; }; 533ED32C1528C53B0005C6FA /* libcrypto.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 533ED32A1528C53B0005C6FA /* libcrypto.a */; }; 533ED32D1528C53B0005C6FA /* libssl.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 533ED32B1528C53B0005C6FA /* libssl.a */; }; 534FB2AE180975D700B5F868 /* Icons.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 534FB2AD180975D700B5F868 /* Icons.xcassets */; }; @@ -50,8 +49,7 @@ 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 = ""; }; + 533ED3151528C4840005C6FA /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController.xib; 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 = ""; }; 534FB2AD180975D700B5F868 /* Icons.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Icons.xcassets; sourceTree = ""; }; @@ -63,6 +61,9 @@ 53572A58183AAFFE00B21832 /* OpenSSL-for-iOS_Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "OpenSSL-for-iOS_Tests-Prefix.pch"; sourceTree = ""; }; D1E979D803ACC127411934DC /* FSOpenSSL.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FSOpenSSL.h; sourceTree = ""; }; D1E97EE2A904D58DAE4231E2 /* FSOpenSSL.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FSOpenSSL.m; sourceTree = ""; }; + FD5896FA1B2F1FAA00F3E5B5 /* build-libssl.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "build-libssl.sh"; sourceTree = ""; }; + FD5896FB1B2F1FB800F3E5B5 /* create-openssl-framework.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "create-openssl-framework.sh"; sourceTree = ""; }; + FD5896FC1B2F1FF900F3E5B5 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -94,8 +95,10 @@ 533ED2F01528C4840005C6FA = { isa = PBXGroup; children = ( + FD5896FC1B2F1FF900F3E5B5 /* README.md */, 533ED3051528C4840005C6FA /* OpenSSL-for-iOS */, 53572A50183AAFFE00B21832 /* OpenSSL-for-iOS_Tests */, + FD5896FD1B2F1FFC00F3E5B5 /* Scripts */, 533ED2FE1528C4840005C6FA /* Frameworks */, 533ED2FC1528C4840005C6FA /* Products */, ); @@ -130,8 +133,7 @@ 533ED30F1528C4840005C6FA /* AppDelegate.m */, 533ED3111528C4840005C6FA /* ViewController.h */, 533ED3121528C4840005C6FA /* ViewController.m */, - 533ED3141528C4840005C6FA /* ViewController_iPhone.xib */, - 533ED3171528C4840005C6FA /* ViewController_iPad.xib */, + 533ED3141528C4840005C6FA /* ViewController.xib */, 533ED3061528C4840005C6FA /* Supporting Files */, D1E97EE2A904D58DAE4231E2 /* FSOpenSSL.m */, D1E979D803ACC127411934DC /* FSOpenSSL.h */, @@ -170,6 +172,15 @@ name = "Supporting Files"; sourceTree = ""; }; + FD5896FD1B2F1FFC00F3E5B5 /* Scripts */ = { + isa = PBXGroup; + children = ( + FD5896FA1B2F1FAA00F3E5B5 /* build-libssl.sh */, + FD5896FB1B2F1FB800F3E5B5 /* create-openssl-framework.sh */, + ); + name = Scripts; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -214,7 +225,7 @@ 533ED2F21528C4840005C6FA /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0430; + LastUpgradeCheck = 0630; ORGANIZATIONNAME = Immobilienscout24; TargetAttributes = { 53572A4A183AAFFE00B21832 = { @@ -246,8 +257,7 @@ buildActionMask = 2147483647; files = ( 533ED30A1528C4840005C6FA /* InfoPlist.strings in Resources */, - 533ED3161528C4840005C6FA /* ViewController_iPhone.xib in Resources */, - 533ED3191528C4840005C6FA /* ViewController_iPad.xib in Resources */, + 533ED3161528C4840005C6FA /* ViewController.xib in Resources */, 534FB2AE180975D700B5F868 /* Icons.xcassets in Resources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -301,20 +311,12 @@ name = InfoPlist.strings; sourceTree = ""; }; - 533ED3141528C4840005C6FA /* ViewController_iPhone.xib */ = { + 533ED3141528C4840005C6FA /* ViewController.xib */ = { isa = PBXVariantGroup; children = ( 533ED3151528C4840005C6FA /* en */, ); - name = ViewController_iPhone.xib; - sourceTree = ""; - }; - 533ED3171528C4840005C6FA /* ViewController_iPad.xib */ = { - isa = PBXVariantGroup; - children = ( - 533ED3181528C4840005C6FA /* en */, - ); - name = ViewController_iPad.xib; + name = ViewController.xib; sourceTree = ""; }; 53572A53183AAFFE00B21832 /* InfoPlist.strings */ = { @@ -332,11 +334,20 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", @@ -344,11 +355,15 @@ ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = "include/**"; IPHONEOS_DEPLOYMENT_TARGET = 7.0; + ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; }; @@ -358,13 +373,25 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; COPY_PHASE_STRIP = YES; + ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = "include/**"; IPHONEOS_DEPLOYMENT_TARGET = 7.0; @@ -412,7 +439,6 @@ 53572A5B183AAFFE00B21832 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/OpenSSL.app/OpenSSL"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; @@ -451,7 +477,6 @@ 53572A5C183AAFFE00B21832 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/OpenSSL.app/OpenSSL"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; @@ -511,6 +536,7 @@ 53572A5C183AAFFE00B21832 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; diff --git a/OpenSSL-for-iOS.xcodeproj/xcshareddata/xcschemes/OpenSSL-for-iOS.xcscheme b/OpenSSL-for-iOS.xcodeproj/xcshareddata/xcschemes/OpenSSL-for-iOS.xcscheme index 6d4d9ff..bdee3e7 100644 --- a/OpenSSL-for-iOS.xcodeproj/xcshareddata/xcschemes/OpenSSL-for-iOS.xcscheme +++ b/OpenSSL-for-iOS.xcodeproj/xcshareddata/xcschemes/OpenSSL-for-iOS.xcscheme @@ -1,6 +1,6 @@ - + - + CFBundlePackageType APPL CFBundleShortVersionString - 2.0 + 3.0 CFBundleSignature ???? CFBundleVersion - 2.0 + 3.0 LSRequiresIPhoneOS UIApplicationExitsOnSuspend @@ -43,6 +43,9 @@ UISupportedInterfaceOrientations~ipad UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight diff --git a/OpenSSL-for-iOS/ViewController.m b/OpenSSL-for-iOS/ViewController.m index 6a35a68..6e9fb63 100644 --- a/OpenSSL-for-iOS/ViewController.m +++ b/OpenSSL-for-iOS/ViewController.m @@ -37,7 +37,7 @@ - (IBAction)showInfo { - NSString *message = [NSString stringWithFormat:@"OpenSSL-Version: %@\nLicense: See include/LICENSE\n\nCopyright 2010-2013 by Felix Schulze\n http://www.felixschulze.de", @OPENSSL_VERSION_TEXT]; + NSString *message = [NSString stringWithFormat:@"OpenSSL-Version: %@\nLicense: See include/LICENSE\n\nCopyright 2010-2015 by Felix Schulze\n http://www.felixschulze.de", @OPENSSL_VERSION_TEXT]; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"OpenSSL-for-iOS" message:message delegate:nil cancelButtonTitle:@"Close" otherButtonTitles:nil]; [alert show]; } diff --git a/OpenSSL-for-iOS/en.lproj/ViewController_iPhone.xib b/OpenSSL-for-iOS/en.lproj/ViewController.xib similarity index 50% rename from OpenSSL-for-iOS/en.lproj/ViewController_iPhone.xib rename to OpenSSL-for-iOS/en.lproj/ViewController.xib index 4da2b84..492d43e 100644 --- a/OpenSSL-for-iOS/en.lproj/ViewController_iPhone.xib +++ b/OpenSSL-for-iOS/en.lproj/ViewController.xib @@ -1,8 +1,8 @@ - + - - + + @@ -18,16 +18,14 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - \ No newline at end of file + + + + + + diff --git a/OpenSSL-for-iOS/en.lproj/ViewController_iPad.xib b/OpenSSL-for-iOS/en.lproj/ViewController_iPad.xib deleted file mode 100644 index f474265..0000000 --- a/OpenSSL-for-iOS/en.lproj/ViewController_iPad.xib +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/README.md b/README.md index e05ac62..4410e6f 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ You must build the OpenSSL-Libraries before running the sample with: This repository contains a iOS 8.0 XCode Project with usese the OpenSSL Libaries. The examples uses the MD5 or SHA256-algorithm to calculate an md5 or sha256 hash from an UITextfield. ## System support -**iOS 4.3 - iOS 8.1 (i386, x86_64, armv7, armv7s, armv64) is currently supported.** +**iOS 4.3 - iOS 8.3 (i386, x86_64, armv7, armv7s, armv64) is currently supported.** For iOS < 4.3 you must use iOS SDK < 6.0 and an older version of the build script. @@ -23,7 +23,7 @@ If you have problems building for arm64 please uninstall MacPorts (see #28). * ## Changelog -* 2015-06-15: OpenSSL 1.0.2c +* 2015-06-15: OpenSSL 1.0.2c, iOS 8.3 * 2015-06-11: OpenSSL 1.0.2b * 2015-03-19: OpenSSL 1.0.2a * 2015-01-28: OpenSSL 1.0.2 diff --git a/build-libssl.sh b/build-libssl.sh index 6b73d22..c861d4e 100755 --- a/build-libssl.sh +++ b/build-libssl.sh @@ -4,7 +4,7 @@ # for iPhoneOS and iPhoneSimulator # # Created by Felix Schulze on 16.12.10. -# Copyright 2010 Felix Schulze. All rights reserved. +# Copyright 2010-2015 Felix Schulze. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.