diff --git a/.gitignore b/.gitignore index e3b5b29..348eed9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,9 @@ +.DS_Store +.*.swp bin lib -*.gz -OpenSSL-for-iOS.xcodeproj/xcuserdata src build -OpenSSL-for-iOS.xcodeproj/project.xcworkspace/xcuserdata include/openssl +*.gz *.framework -*.xccheckout diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 28720e7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -osx_image: xcode8.3 -language: objective-c -before_install: - - ./travis-build.sh - -script: - - xcodebuild -project OpenSSL-for-iOS.xcodeproj -scheme OpenSSL-for-iOS -sdk iphonesimulator clean build - - cd targets && xcodebuild -project OpenSSL-for-iOS.xcodeproj -scheme OpenSSL-for-iOS -sdk iphonesimulator clean build diff --git a/OpenSSL-for-iOS.xcodeproj/project.pbxproj b/OpenSSL-for-iOS.xcodeproj/project.pbxproj deleted file mode 100644 index 7543aec..0000000 --- a/OpenSSL-for-iOS.xcodeproj/project.pbxproj +++ /dev/null @@ -1,705 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 0EA706651F817CCC001E4F88 /* libcrypto-iPhone.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0EA706611F817CCB001E4F88 /* libcrypto-iPhone.a */; }; - 0EA706661F817CCC001E4F88 /* libssl-iPhone.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0EA706621F817CCB001E4F88 /* libssl-iPhone.a */; }; - 0EA706681F817CE5001E4F88 /* libcrypto-AppleTV.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0EA706601F817CCB001E4F88 /* libcrypto-AppleTV.a */; }; - 0EA706691F817CE5001E4F88 /* libssl-AppleTV.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0EA706631F817CCC001E4F88 /* libssl-AppleTV.a */; }; - 2A1DDC8F1BFB1DF600F7722A /* ViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2A1DDC8E1BFB1DF600F7722A /* ViewController.xib */; }; - 2A3821001BFB5EEB00328618 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A3820FF1BFB5EEB00328618 /* AppDelegate.swift */; }; - 2A3821021BFB607A00328618 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A3821011BFB607A00328618 /* ViewController.swift */; }; - 2A3821161BFB641E00328618 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A3820FF1BFB5EEB00328618 /* AppDelegate.swift */; }; - 2A3821171BFB642000328618 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A3821011BFB607A00328618 /* ViewController.swift */; }; - 2A8A9A7E1BFA59F7002944B4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2A8A9A7D1BFA59F7002944B4 /* Assets.xcassets */; }; - 2A8A9A851BFA5AFF002944B4 /* ViewController~tv.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2A8A9A841BFA5AFF002944B4 /* ViewController~tv.xib */; }; - 2A8A9A871BFA5B6A002944B4 /* FSOpenSSL.m in Sources */ = {isa = PBXBuildFile; fileRef = D1E97EE2A904D58DAE4231E2 /* FSOpenSSL.m */; }; - 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 */; }; - 534FB2AE180975D700B5F868 /* Icons.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 534FB2AD180975D700B5F868 /* Icons.xcassets */; }; - 53572A4D183AAFFE00B21832 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53572A4C183AAFFE00B21832 /* XCTest.framework */; }; - 53572A4E183AAFFE00B21832 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 533ED3011528C4840005C6FA /* Foundation.framework */; }; - 53572A4F183AAFFE00B21832 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 533ED2FF1528C4840005C6FA /* UIKit.framework */; }; - 53572A55183AAFFE00B21832 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 53572A53183AAFFE00B21832 /* InfoPlist.strings */; }; - 53572A57183AAFFE00B21832 /* FSOpenSSLTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 53572A56183AAFFE00B21832 /* FSOpenSSLTests.m */; }; - D1E978031547EE765CD39AD2 /* FSOpenSSL.m in Sources */ = {isa = PBXBuildFile; fileRef = D1E97EE2A904D58DAE4231E2 /* FSOpenSSL.m */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 53572A59183AAFFE00B21832 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 533ED2F21528C4840005C6FA /* Project object */; - proxyType = 1; - remoteGlobalIDString = 533ED2FA1528C4840005C6FA; - remoteInfo = "OpenSSL-for-iOS"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 0EA706601F817CCB001E4F88 /* libcrypto-AppleTV.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libcrypto-AppleTV.a"; path = "lib/libcrypto-AppleTV.a"; sourceTree = ""; }; - 0EA706611F817CCB001E4F88 /* libcrypto-iPhone.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libcrypto-iPhone.a"; path = "lib/libcrypto-iPhone.a"; sourceTree = ""; }; - 0EA706621F817CCB001E4F88 /* libssl-iPhone.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libssl-iPhone.a"; path = "lib/libssl-iPhone.a"; sourceTree = ""; }; - 0EA706631F817CCC001E4F88 /* libssl-AppleTV.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libssl-AppleTV.a"; path = "lib/libssl-AppleTV.a"; sourceTree = ""; }; - 2A1DDC8E1BFB1DF600F7722A /* ViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ViewController.xib; sourceTree = ""; }; - 2A3820FE1BFB5EEA00328618 /* Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Bridging-Header.h"; sourceTree = ""; }; - 2A3820FF1BFB5EEB00328618 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 2A3821011BFB607A00328618 /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 2A8A9A6F1BFA59F7002944B4 /* OpenSSL-for-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "OpenSSL-for-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 2A8A9A7D1BFA59F7002944B4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 2A8A9A7F1BFA59F7002944B4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 2A8A9A841BFA5AFF002944B4 /* ViewController~tv.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = "ViewController~tv.xib"; 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 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 533ED30D1528C4840005C6FA /* Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Prefix.pch; sourceTree = ""; }; - 534FB2AD180975D700B5F868 /* Icons.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Icons.xcassets; sourceTree = ""; }; - 53572A4B183AAFFE00B21832 /* OpenSSL-for-iOS_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "OpenSSL-for-iOS_Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 53572A4C183AAFFE00B21832 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; - 53572A52183AAFFE00B21832 /* OpenSSL-for-iOS_Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "OpenSSL-for-iOS_Tests-Info.plist"; sourceTree = ""; }; - 53572A54183AAFFE00B21832 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; - 53572A56183AAFFE00B21832 /* FSOpenSSLTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FSOpenSSLTests.m; sourceTree = ""; }; - 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 */ - 2A8A9A6C1BFA59F7002944B4 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 0EA706681F817CE5001E4F88 /* libcrypto-AppleTV.a in Frameworks */, - 0EA706691F817CE5001E4F88 /* libssl-AppleTV.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 533ED2F81528C4840005C6FA /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 533ED3001528C4840005C6FA /* UIKit.framework in Frameworks */, - 0EA706661F817CCC001E4F88 /* libssl-iPhone.a in Frameworks */, - 533ED3021528C4840005C6FA /* Foundation.framework in Frameworks */, - 533ED3041528C4840005C6FA /* CoreGraphics.framework in Frameworks */, - 0EA706651F817CCC001E4F88 /* libcrypto-iPhone.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 53572A48183AAFFE00B21832 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 53572A4D183AAFFE00B21832 /* XCTest.framework in Frameworks */, - 53572A4F183AAFFE00B21832 /* UIKit.framework in Frameworks */, - 53572A4E183AAFFE00B21832 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 2A8A9A701BFA59F7002944B4 /* OpenSSL-for-tvOS */ = { - isa = PBXGroup; - children = ( - 2A8A9A7D1BFA59F7002944B4 /* Assets.xcassets */, - 2A8A9A7F1BFA59F7002944B4 /* Info.plist */, - ); - path = "OpenSSL-for-tvOS"; - sourceTree = ""; - }; - 533ED2F01528C4840005C6FA = { - isa = PBXGroup; - children = ( - FD5896FC1B2F1FF900F3E5B5 /* README.md */, - 533ED3051528C4840005C6FA /* OpenSSL-for-iOS */, - 53572A50183AAFFE00B21832 /* OpenSSL-for-iOS_Tests */, - 2A8A9A701BFA59F7002944B4 /* OpenSSL-for-tvOS */, - FD5896FD1B2F1FFC00F3E5B5 /* Scripts */, - 533ED2FE1528C4840005C6FA /* Frameworks */, - 533ED2FC1528C4840005C6FA /* Products */, - ); - sourceTree = ""; - }; - 533ED2FC1528C4840005C6FA /* Products */ = { - isa = PBXGroup; - children = ( - 533ED2FB1528C4840005C6FA /* OpenSSL.app */, - 53572A4B183AAFFE00B21832 /* OpenSSL-for-iOS_Tests.xctest */, - 2A8A9A6F1BFA59F7002944B4 /* OpenSSL-for-tvOS.app */, - ); - name = Products; - sourceTree = ""; - }; - 533ED2FE1528C4840005C6FA /* Frameworks */ = { - isa = PBXGroup; - children = ( - 0EA706601F817CCB001E4F88 /* libcrypto-AppleTV.a */, - 0EA706611F817CCB001E4F88 /* libcrypto-iPhone.a */, - 0EA706631F817CCC001E4F88 /* libssl-AppleTV.a */, - 0EA706621F817CCB001E4F88 /* libssl-iPhone.a */, - 533ED2FF1528C4840005C6FA /* UIKit.framework */, - 533ED3011528C4840005C6FA /* Foundation.framework */, - 533ED3031528C4840005C6FA /* CoreGraphics.framework */, - 53572A4C183AAFFE00B21832 /* XCTest.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 533ED3051528C4840005C6FA /* OpenSSL-for-iOS */ = { - isa = PBXGroup; - children = ( - 2A3820FF1BFB5EEB00328618 /* AppDelegate.swift */, - 2A3821011BFB607A00328618 /* ViewController.swift */, - 2A1DDC8E1BFB1DF600F7722A /* ViewController.xib */, - 2A8A9A841BFA5AFF002944B4 /* ViewController~tv.xib */, - 533ED3061528C4840005C6FA /* Supporting Files */, - D1E97EE2A904D58DAE4231E2 /* FSOpenSSL.m */, - D1E979D803ACC127411934DC /* FSOpenSSL.h */, - 534FB2AD180975D700B5F868 /* Icons.xcassets */, - ); - path = "OpenSSL-for-iOS"; - sourceTree = ""; - }; - 533ED3061528C4840005C6FA /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 533ED3071528C4840005C6FA /* Info.plist */, - 533ED30D1528C4840005C6FA /* Prefix.pch */, - 2A3820FE1BFB5EEA00328618 /* Bridging-Header.h */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 53572A50183AAFFE00B21832 /* OpenSSL-for-iOS_Tests */ = { - isa = PBXGroup; - children = ( - 53572A56183AAFFE00B21832 /* FSOpenSSLTests.m */, - 53572A51183AAFFE00B21832 /* Supporting Files */, - ); - path = "OpenSSL-for-iOS_Tests"; - sourceTree = ""; - }; - 53572A51183AAFFE00B21832 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 53572A52183AAFFE00B21832 /* OpenSSL-for-iOS_Tests-Info.plist */, - 53572A53183AAFFE00B21832 /* InfoPlist.strings */, - 53572A58183AAFFE00B21832 /* OpenSSL-for-iOS_Tests-Prefix.pch */, - ); - 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 */ - 2A8A9A6E1BFA59F7002944B4 /* OpenSSL-for-tvOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2A8A9A821BFA59F7002944B4 /* Build configuration list for PBXNativeTarget "OpenSSL-for-tvOS" */; - buildPhases = ( - 2A8A9A6B1BFA59F7002944B4 /* Sources */, - 2A8A9A6C1BFA59F7002944B4 /* Frameworks */, - 2A8A9A6D1BFA59F7002944B4 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "OpenSSL-for-tvOS"; - productName = "OpenSSL-for-tvOS"; - productReference = 2A8A9A6F1BFA59F7002944B4 /* OpenSSL-for-tvOS.app */; - productType = "com.apple.product-type.application"; - }; - 533ED2FA1528C4840005C6FA /* OpenSSL-for-iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 533ED31C1528C4840005C6FA /* Build configuration list for PBXNativeTarget "OpenSSL-for-iOS" */; - buildPhases = ( - 535C0E0B1B51253B0043FE32 /* Run Script */, - 533ED2F71528C4840005C6FA /* Sources */, - 533ED2F81528C4840005C6FA /* Frameworks */, - 533ED2F91528C4840005C6FA /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "OpenSSL-for-iOS"; - productName = "OpenSSL-for-iOS"; - productReference = 533ED2FB1528C4840005C6FA /* OpenSSL.app */; - productType = "com.apple.product-type.application"; - }; - 53572A4A183AAFFE00B21832 /* OpenSSL-for-iOS_Tests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 53572A5D183AAFFE00B21832 /* Build configuration list for PBXNativeTarget "OpenSSL-for-iOS_Tests" */; - buildPhases = ( - 53572A47183AAFFE00B21832 /* Sources */, - 53572A48183AAFFE00B21832 /* Frameworks */, - 53572A49183AAFFE00B21832 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 53572A5A183AAFFE00B21832 /* PBXTargetDependency */, - ); - name = "OpenSSL-for-iOS_Tests"; - productName = "OpenSSL-for-iOS_Tests"; - productReference = 53572A4B183AAFFE00B21832 /* OpenSSL-for-iOS_Tests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 533ED2F21528C4840005C6FA /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0800; - ORGANIZATIONNAME = Immobilienscout24; - TargetAttributes = { - 2A8A9A6E1BFA59F7002944B4 = { - CreatedOnToolsVersion = 7.1.1; - LastSwiftMigration = 0800; - }; - 533ED2FA1528C4840005C6FA = { - LastSwiftMigration = 0800; - }; - 53572A4A183AAFFE00B21832 = { - LastSwiftMigration = 0800; - TestTargetID = 533ED2FA1528C4840005C6FA; - }; - }; - }; - buildConfigurationList = 533ED2F51528C4840005C6FA /* Build configuration list for PBXProject "OpenSSL-for-iOS" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 533ED2F01528C4840005C6FA; - productRefGroup = 533ED2FC1528C4840005C6FA /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 533ED2FA1528C4840005C6FA /* OpenSSL-for-iOS */, - 53572A4A183AAFFE00B21832 /* OpenSSL-for-iOS_Tests */, - 2A8A9A6E1BFA59F7002944B4 /* OpenSSL-for-tvOS */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 2A8A9A6D1BFA59F7002944B4 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2A8A9A851BFA5AFF002944B4 /* ViewController~tv.xib in Resources */, - 2A8A9A7E1BFA59F7002944B4 /* Assets.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 533ED2F91528C4840005C6FA /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2A1DDC8F1BFB1DF600F7722A /* ViewController.xib in Resources */, - 534FB2AE180975D700B5F868 /* Icons.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 53572A49183AAFFE00B21832 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 53572A55183AAFFE00B21832 /* InfoPlist.strings in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 535C0E0B1B51253B0043FE32 /* Run Script */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Run Script"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "if [ ! -f lib/libcrypto-iPhone.a ]; then\n echo \"error: Please run ./build-libssl.h first\"\n exit 1\nfi"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 2A8A9A6B1BFA59F7002944B4 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2A3821161BFB641E00328618 /* AppDelegate.swift in Sources */, - 2A3821171BFB642000328618 /* ViewController.swift in Sources */, - 2A8A9A871BFA5B6A002944B4 /* FSOpenSSL.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 533ED2F71528C4840005C6FA /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2A3821001BFB5EEB00328618 /* AppDelegate.swift in Sources */, - 2A3821021BFB607A00328618 /* ViewController.swift in Sources */, - D1E978031547EE765CD39AD2 /* FSOpenSSL.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 53572A47183AAFFE00B21832 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 53572A57183AAFFE00B21832 /* FSOpenSSLTests.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 53572A5A183AAFFE00B21832 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 533ED2FA1528C4840005C6FA /* OpenSSL-for-iOS */; - targetProxy = 53572A59183AAFFE00B21832 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 53572A53183AAFFE00B21832 /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - 53572A54183AAFFE00B21832 /* en */, - ); - name = InfoPlist.strings; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 2A8A9A801BFA59F7002944B4 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - DEBUG_INFORMATION_FORMAT = dwarf; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - INFOPLIST_FILE = "OpenSSL-for-tvOS/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/lib", - ); - MTL_ENABLE_DEBUG_INFO = YES; - PRODUCT_BUNDLE_IDENTIFIER = "de.felixschulze.OpenSSL-for-tvOS"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; - SWIFT_OBJC_BRIDGING_HEADER = "OpenSSL-for-iOS/Bridging-Header.h"; - SWIFT_VERSION = 3.0; - TARGETED_DEVICE_FAMILY = 3; - TVOS_DEPLOYMENT_TARGET = 9.0; - }; - name = Debug; - }; - 2A8A9A811BFA59F7002944B4 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - INFOPLIST_FILE = "OpenSSL-for-tvOS/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/lib", - ); - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_BUNDLE_IDENTIFIER = "de.felixschulze.OpenSSL-for-tvOS"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; - SWIFT_OBJC_BRIDGING_HEADER = "OpenSSL-for-iOS/Bridging-Header.h"; - SWIFT_VERSION = 3.0; - TARGETED_DEVICE_FAMILY = 3; - TVOS_DEPLOYMENT_TARGET = 9.0; - }; - name = Release; - }; - 533ED31A1528C4840005C6FA /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - 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_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_SUSPICIOUS_MOVE = 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; - ENABLE_TESTABILITY = 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", - "$(inherited)", - ); - 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 = 8.0; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - TVOS_DEPLOYMENT_TARGET = 9.0; - }; - name = Debug; - }; - 533ED31B1528C4840005C6FA /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - 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_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_SUSPICIOUS_MOVE = 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 = 8.0; - OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - TARGETED_DEVICE_FAMILY = "1,2"; - TVOS_DEPLOYMENT_TARGET = 9.0; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 533ED31D1528C4840005C6FA /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - CLANG_ENABLE_MODULES = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "OpenSSL-for-iOS/Prefix.pch"; - INFOPLIST_FILE = "$(SRCROOT)/OpenSSL-for-iOS/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\"$(SRCROOT)/lib\"", - "$(PROJECT_DIR)/lib", - ); - PRODUCT_BUNDLE_IDENTIFIER = "de.felixschulze.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = OpenSSL; - SWIFT_OBJC_BRIDGING_HEADER = "OpenSSL-for-iOS/Bridging-Header.h"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 3.0; - WRAPPER_EXTENSION = app; - }; - name = Debug; - }; - 533ED31E1528C4840005C6FA /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - CLANG_ENABLE_MODULES = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "OpenSSL-for-iOS/Prefix.pch"; - INFOPLIST_FILE = "$(SRCROOT)/OpenSSL-for-iOS/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\"$(SRCROOT)/lib\"", - "$(PROJECT_DIR)/lib", - ); - PRODUCT_BUNDLE_IDENTIFIER = "de.felixschulze.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = OpenSSL; - SWIFT_OBJC_BRIDGING_HEADER = "OpenSSL-for-iOS/Bridging-Header.h"; - SWIFT_VERSION = 3.0; - WRAPPER_EXTENSION = app; - }; - name = Release; - }; - 53572A5B183AAFFE00B21832 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/OpenSSL.app/OpenSSL"; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "OpenSSL-for-iOS_Tests/OpenSSL-for-iOS_Tests-Prefix.pch"; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - INFOPLIST_FILE = "OpenSSL-for-iOS_Tests/OpenSSL-for-iOS_Tests-Info.plist"; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_BUNDLE_IDENTIFIER = "de.felixschulze.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; - TEST_HOST = "$(BUNDLE_LOADER)"; - WRAPPER_EXTENSION = xctest; - }; - name = Debug; - }; - 53572A5C183AAFFE00B21832 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/OpenSSL.app/OpenSSL"; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - ENABLE_NS_ASSERTIONS = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "OpenSSL-for-iOS_Tests/OpenSSL-for-iOS_Tests-Prefix.pch"; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - INFOPLIST_FILE = "OpenSSL-for-iOS_Tests/OpenSSL-for-iOS_Tests-Info.plist"; - PRODUCT_BUNDLE_IDENTIFIER = "de.felixschulze.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; - TEST_HOST = "$(BUNDLE_LOADER)"; - WRAPPER_EXTENSION = xctest; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 2A8A9A821BFA59F7002944B4 /* Build configuration list for PBXNativeTarget "OpenSSL-for-tvOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2A8A9A801BFA59F7002944B4 /* Debug */, - 2A8A9A811BFA59F7002944B4 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 533ED2F51528C4840005C6FA /* Build configuration list for PBXProject "OpenSSL-for-iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 533ED31A1528C4840005C6FA /* Debug */, - 533ED31B1528C4840005C6FA /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 533ED31C1528C4840005C6FA /* Build configuration list for PBXNativeTarget "OpenSSL-for-iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 533ED31D1528C4840005C6FA /* Debug */, - 533ED31E1528C4840005C6FA /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 53572A5D183AAFFE00B21832 /* Build configuration list for PBXNativeTarget "OpenSSL-for-iOS_Tests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 53572A5B183AAFFE00B21832 /* Debug */, - 53572A5C183AAFFE00B21832 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 533ED2F21528C4840005C6FA /* Project object */; -} diff --git a/OpenSSL-for-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/OpenSSL-for-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index eaa5047..0000000 --- a/OpenSSL-for-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/OpenSSL-for-iOS.xcodeproj/xcshareddata/xcschemes/OpenSSL-for-iOS.xcscheme b/OpenSSL-for-iOS.xcodeproj/xcshareddata/xcschemes/OpenSSL-for-iOS.xcscheme deleted file mode 100644 index 0f8dea8..0000000 --- a/OpenSSL-for-iOS.xcodeproj/xcshareddata/xcschemes/OpenSSL-for-iOS.xcscheme +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/OpenSSL-for-iOS/AppDelegate.swift b/OpenSSL-for-iOS/AppDelegate.swift deleted file mode 100644 index 3b6d48f..0000000 --- a/OpenSSL-for-iOS/AppDelegate.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// AppDelegate.swift -// OpenSSL-for-iOS -// -// Created by Felix Schulze on 04.12.2010. -// Updated by Felix Schulze on 17.11.2015. -// Copyright © 2015 Felix Schulze. All rights reserved. -// Web: http://www.felixschulze.de -// - -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { - - self.window = UIWindow(frame: UIScreen.main.bounds) - - #if os(tvOS) - self.window?.rootViewController = ViewController(nibName: "ViewController~tv", bundle: nil) - #else - let navigationController = UINavigationController(rootViewController: ViewController()) - navigationController.navigationBar.isTranslucent = false - self.window?.rootViewController = navigationController - #endif - - self.window?.makeKeyAndVisible() - return true - } - -} - diff --git a/OpenSSL-for-iOS/Bridging-Header.h b/OpenSSL-for-iOS/Bridging-Header.h deleted file mode 100644 index a822272..0000000 --- a/OpenSSL-for-iOS/Bridging-Header.h +++ /dev/null @@ -1,6 +0,0 @@ -// -// Use this file to import your target's public headers that you would like to expose to Swift. -// - -#import "FSOpenSSL.h" -#include \ No newline at end of file diff --git a/OpenSSL-for-iOS/FSOpenSSL.h b/OpenSSL-for-iOS/FSOpenSSL.h deleted file mode 100644 index a89e902..0000000 --- a/OpenSSL-for-iOS/FSOpenSSL.h +++ /dev/null @@ -1,28 +0,0 @@ -// -// FSOpenSSL.h -// OpenSSL-for-iOS -// -// Created by Felix Schulze on 16.03.2013. -// Copyright 2013 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. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#import - -@interface FSOpenSSL : NSObject -+ (NSString *)md5FromString:(NSString *)string; - -+ (NSString *)sha256FromString:(NSString *)string; - -+ (NSString *)base64FromString:(NSString *)string encodeWithNewlines:(BOOL)encodeWithNewlines; -@end \ No newline at end of file diff --git a/OpenSSL-for-iOS/FSOpenSSL.m b/OpenSSL-for-iOS/FSOpenSSL.m deleted file mode 100644 index ac9a16a..0000000 --- a/OpenSSL-for-iOS/FSOpenSSL.m +++ /dev/null @@ -1,106 +0,0 @@ -// -// FSOpenSSL.m -// OpenSSL-for-iOS -// -// Created by Felix Schulze on 16.03.2013. -// Copyright 2013 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. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#import "FSOpenSSL.h" -#include -#include -#import - -@implementation FSOpenSSL - -+ (NSString *)md5FromString:(NSString *)string { - 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]]; - } - return [outStrg copy]; -} - -+ (NSString *)sha256FromString:(NSString *)string { - 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]]; - } - return [outStrg copy]; -} - -+ (NSString *)base64FromString:(NSString *)string encodeWithNewlines:(BOOL)encodeWithNewlines { - BIO *mem = BIO_new(BIO_s_mem()); - BIO *b64 = BIO_new(BIO_f_base64()); - - if (!encodeWithNewlines) { - BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL); - } - mem = BIO_push(b64, mem); - - NSData *stringData = [string dataUsingEncoding:NSUTF8StringEncoding]; - NSUInteger length = stringData.length; - void *buffer = (void *) [stringData bytes]; - int bufferSize = (int)MIN(length, INT_MAX); - - NSUInteger count = 0; - - BOOL error = NO; - - // Encode the data - while (!error && count < length) { - int result = BIO_write(mem, buffer, bufferSize); - if (result <= 0) { - error = YES; - } - else { - count += result; - buffer = (void *) [stringData bytes] + count; - bufferSize = (int)MIN((length - count), INT_MAX); - } - } - - int flush_result = BIO_flush(mem); - if (flush_result != 1) { - return nil; - } - - char *base64Pointer; - NSUInteger base64Length = (NSUInteger) BIO_get_mem_data(mem, &base64Pointer); - - NSData *base64data = [NSData dataWithBytesNoCopy:base64Pointer length:base64Length freeWhenDone:NO]; - NSString *base64String = [[NSString alloc] initWithData:base64data encoding:NSUTF8StringEncoding]; - - BIO_free_all(mem); - return base64String; -} - -@end \ No newline at end of file diff --git a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Contents.json b/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 1e8eae0..0000000 --- a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "size" : "20x20", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "20x20", - "scale" : "3x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-Small@2x-1.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-Small@3x.png", - "scale" : "3x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-Small-40@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-Small-40@3x.png", - "scale" : "3x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-60@2x.png", - "scale" : "2x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-60@3x.png", - "scale" : "3x" - }, - { - "idiom" : "ipad", - "size" : "20x20", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "20x20", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-Small.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-Small@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-Small-40.png", - "scale" : "1x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-Small-40@2x-1.png", - "scale" : "2x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-76.png", - "scale" : "1x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-76@2x.png", - "scale" : "2x" - }, - { - "size" : "83.5x83.5", - "idiom" : "ipad", - "filename" : "Icon-83.5@2x-1.png", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - }, - "properties" : { - "pre-rendered" : true - } -} \ No newline at end of file diff --git a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-60@2x.png b/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-60@2x.png deleted file mode 100644 index 509b373..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-60@2x.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-60@3x.png b/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-60@3x.png deleted file mode 100644 index 230b006..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-60@3x.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-76.png b/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-76.png deleted file mode 100644 index 84b76d4..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-76.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-76@2x.png b/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-76@2x.png deleted file mode 100644 index 5ed9ed9..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-76@2x.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-83.5@2x-1.png b/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-83.5@2x-1.png deleted file mode 100644 index 4dbb35c..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-83.5@2x-1.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small-40.png b/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small-40.png deleted file mode 100644 index 45d016f..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small-40.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small-40@2x-1.png b/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small-40@2x-1.png deleted file mode 100644 index dbf0ca1..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small-40@2x-1.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png b/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png deleted file mode 100644 index dbf0ca1..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png b/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png deleted file mode 100644 index 6315bc9..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small.png b/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small.png deleted file mode 100644 index 61bd771..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small@2x-1.png b/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small@2x-1.png deleted file mode 100644 index cd941b6..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small@2x-1.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small@2x.png b/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small@2x.png deleted file mode 100644 index cd941b6..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small@2x.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small@3x.png b/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small@3x.png deleted file mode 100644 index 5bac8cd..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/AppIcon.appiconset/Icon-Small@3x.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/LaunchImage.launchimage/Contents.json b/OpenSSL-for-iOS/Icons.xcassets/LaunchImage.launchimage/Contents.json deleted file mode 100644 index af50ce3..0000000 --- a/OpenSSL-for-iOS/Icons.xcassets/LaunchImage.launchimage/Contents.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "images" : [ - { - "extent" : "full-screen", - "idiom" : "iphone", - "subtype" : "736h", - "filename" : "Default-Portrait-736h@3x.png", - "minimum-system-version" : "8.0", - "orientation" : "portrait", - "scale" : "3x" - }, - { - "extent" : "full-screen", - "idiom" : "iphone", - "subtype" : "667h", - "filename" : "Default-667h@2x.png", - "minimum-system-version" : "8.0", - "orientation" : "portrait", - "scale" : "2x" - }, - { - "orientation" : "portrait", - "idiom" : "iphone", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "filename" : "Default@2x.png", - "scale" : "2x" - }, - { - "extent" : "full-screen", - "idiom" : "iphone", - "subtype" : "retina4", - "filename" : "Default-568h@2x.png", - "minimum-system-version" : "7.0", - "orientation" : "portrait", - "scale" : "2x" - }, - { - "orientation" : "portrait", - "idiom" : "ipad", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "1x" - }, - { - "orientation" : "portrait", - "idiom" : "ipad", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-iOS/Icons.xcassets/LaunchImage.launchimage/Default-568h@2x.png b/OpenSSL-for-iOS/Icons.xcassets/LaunchImage.launchimage/Default-568h@2x.png deleted file mode 100644 index b164ded..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/LaunchImage.launchimage/Default-568h@2x.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/LaunchImage.launchimage/Default-667h@2x.png b/OpenSSL-for-iOS/Icons.xcassets/LaunchImage.launchimage/Default-667h@2x.png deleted file mode 100644 index 651706f..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/LaunchImage.launchimage/Default-667h@2x.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/LaunchImage.launchimage/Default-Portrait-736h@3x.png b/OpenSSL-for-iOS/Icons.xcassets/LaunchImage.launchimage/Default-Portrait-736h@3x.png deleted file mode 100644 index 2210caa..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/LaunchImage.launchimage/Default-Portrait-736h@3x.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Icons.xcassets/LaunchImage.launchimage/Default@2x.png b/OpenSSL-for-iOS/Icons.xcassets/LaunchImage.launchimage/Default@2x.png deleted file mode 100644 index 47d377d..0000000 Binary files a/OpenSSL-for-iOS/Icons.xcassets/LaunchImage.launchimage/Default@2x.png and /dev/null differ diff --git a/OpenSSL-for-iOS/Info.plist b/OpenSSL-for-iOS/Info.plist deleted file mode 100644 index cd2b0d7..0000000 --- a/OpenSSL-for-iOS/Info.plist +++ /dev/null @@ -1,54 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleDisplayName - ${PRODUCT_NAME} - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIcons - - CFBundleIcons~ipad - - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleShortVersionString - 3.1 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UIApplicationExitsOnSuspend - - UIRequiredDeviceCapabilities - - armv7 - - UIStatusBarStyle - UIStatusBarStyleDefault - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/OpenSSL-for-iOS/Prefix.pch b/OpenSSL-for-iOS/Prefix.pch deleted file mode 100644 index e9f9330..0000000 --- a/OpenSSL-for-iOS/Prefix.pch +++ /dev/null @@ -1,14 +0,0 @@ -// -// Prefix header for all source files of the 'OpenSSL-for-iOS' target in the 'OpenSSL-for-iOS' project -// - -#import - -#ifndef __IPHONE_8_0 -#warning "This project uses features only available in iOS SDK 8.0 and later." -#endif - -#ifdef __OBJC__ - #import - #import -#endif diff --git a/OpenSSL-for-iOS/ViewController.swift b/OpenSSL-for-iOS/ViewController.swift deleted file mode 100644 index 7dc894b..0000000 --- a/OpenSSL-for-iOS/ViewController.swift +++ /dev/null @@ -1,54 +0,0 @@ -// -// ViewController.swift -// OpenSSL-for-iOS -// -// Created by Felix Schulze on 04.12.2010. -// Updated by Felix Schulze on 17.11.2015. -// Copyright © 2015 Felix Schulze. All rights reserved. -// Web: http://www.felixschulze.de -// - -import UIKit - -class ViewController: UIViewController { - - @IBOutlet var textField: UITextField! - @IBOutlet var md5Label: UILabel! - @IBOutlet var sh256Label: UILabel! - - @IBAction - func showInfo() { - let message = "OpenSSL-Version: \(OPENSSL_VERSION_TEXT)\nLicense: See include/LICENSE\n\nCopyright 2010-2016 by Felix Schulze\n http://www.felixschulze.de" - let alertController = UIAlertController(title: "OpenSSL-for-iOS", message: message, preferredStyle: .alert) - alertController.addAction(UIAlertAction(title: "Ok", style: .cancel, handler: nil)) - self.present(alertController, animated: true, completion: nil) - } - - override func viewDidLoad() { - super.viewDidLoad() - - self.title = "OpenSSL-for-iOS" - let infoButton = UIButton(type: .infoLight) - infoButton.addTarget(self, action: #selector(ViewController.showInfo), for: .touchDown) - self.navigationItem.rightBarButtonItem = UIBarButtonItem(customView: infoButton) - - self.textField.addTarget(self, action: #selector(ViewController.textFieldDidChange), for: .editingChanged) - self.calculateHash() - } - - func textFieldDidChange() { - self.calculateHash() - } - - func calculateHash() { - if textField.text!.characters.count > 0 { - md5Label.text = FSOpenSSL.md5(from: textField.text) - sh256Label.text = FSOpenSSL.sha256(from: textField.text) - } - else { - md5Label.text = nil - sh256Label.text = nil - } - } - -} diff --git a/OpenSSL-for-iOS/ViewController.xib b/OpenSSL-for-iOS/ViewController.xib deleted file mode 100644 index 4e2862e..0000000 --- a/OpenSSL-for-iOS/ViewController.xib +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/OpenSSL-for-iOS/ViewController~tv.xib b/OpenSSL-for-iOS/ViewController~tv.xib deleted file mode 100644 index 8b9d1ff..0000000 --- a/OpenSSL-for-iOS/ViewController~tv.xib +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/OpenSSL-for-iOS_Tests/FSOpenSSLTests.m b/OpenSSL-for-iOS_Tests/FSOpenSSLTests.m deleted file mode 100644 index a94148d..0000000 --- a/OpenSSL-for-iOS_Tests/FSOpenSSLTests.m +++ /dev/null @@ -1,50 +0,0 @@ -// -// OpenSSL_for_iOS_Tests.m -// OpenSSL-for-iOS_Tests -// -// Created by Felix Schulze on 18.11.2013. -// Copyright (c) 2013 Felix Schulze . All rights reserved. -// Web: http://www.felixschulze.de -// - -#import -#import "FSOpenSSL.h" - -@interface FSOpenSSLTests : XCTestCase -@end - -@implementation FSOpenSSLTests - -- (void)setUp -{ - [super setUp]; -} - -- (void)tearDown -{ - [super tearDown]; -} - -- (void)testMD5 -{ - XCTAssertEqualObjects([FSOpenSSL md5FromString:@"test string"], @"6f8db599de986fab7a21625b7916589c"); -} - -- (void)testSHA256 -{ - XCTAssertEqualObjects([FSOpenSSL sha256FromString:@"test string"], @"d5579c46dfcc7f18207013e65b44e4cb4e2c2298f4ac457ba8f82743f31e930b"); -} - -- (void)testBase64 -{ - XCTAssertEqualObjects([FSOpenSSL base64FromString:@"test string" encodeWithNewlines:NO], @"dGVzdCBzdHJpbmc="); -} - -- (void)testBase64WithNewLines -{ - XCTAssertEqualObjects([FSOpenSSL base64FromString:@"test string" encodeWithNewlines:YES], @"dGVzdCBzdHJpbmc=\n"); -} - - - -@end diff --git a/OpenSSL-for-iOS_Tests/OpenSSL-for-iOS_Tests-Info.plist b/OpenSSL-for-iOS_Tests/OpenSSL-for-iOS_Tests-Info.plist deleted file mode 100644 index 169b6f7..0000000 --- a/OpenSSL-for-iOS_Tests/OpenSSL-for-iOS_Tests-Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - - diff --git a/OpenSSL-for-iOS_Tests/OpenSSL-for-iOS_Tests-Prefix.pch b/OpenSSL-for-iOS_Tests/OpenSSL-for-iOS_Tests-Prefix.pch deleted file mode 100644 index 3fdee9d..0000000 --- a/OpenSSL-for-iOS_Tests/OpenSSL-for-iOS_Tests-Prefix.pch +++ /dev/null @@ -1,10 +0,0 @@ -// -// Prefix header -// -// The contents of this file are implicitly included at the beginning of every source file. -// - -#ifdef __OBJC__ - #import - #import -#endif diff --git a/OpenSSL-for-iOS_Tests/en.lproj/InfoPlist.strings b/OpenSSL-for-iOS_Tests/en.lproj/InfoPlist.strings deleted file mode 100644 index 477b28f..0000000 --- a/OpenSSL-for-iOS_Tests/en.lproj/InfoPlist.strings +++ /dev/null @@ -1,2 +0,0 @@ -/* Localized versions of Info.plist keys */ - diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 0564959..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json deleted file mode 100644 index 8bf75d9..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "layers" : [ - { - "filename" : "Front.imagestacklayer" - }, - { - "filename" : "Middle.imagestacklayer" - }, - { - "filename" : "Back.imagestacklayer" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 0564959..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 0564959..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 0564959..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json deleted file mode 100644 index 8bf75d9..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "layers" : [ - { - "filename" : "Front.imagestacklayer" - }, - { - "filename" : "Middle.imagestacklayer" - }, - { - "filename" : "Back.imagestacklayer" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 0564959..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 0564959..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json deleted file mode 100644 index 6a3dcfa..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "assets" : [ - { - "size" : "1280x768", - "idiom" : "tv", - "filename" : "App Icon - Large.imagestack", - "role" : "primary-app-icon" - }, - { - "size" : "400x240", - "idiom" : "tv", - "filename" : "App Icon - Small.imagestack", - "role" : "primary-app-icon" - }, - { - "size" : "1920x720", - "idiom" : "tv", - "filename" : "Top Shelf Image.imageset", - "role" : "top-shelf-image" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json deleted file mode 100644 index 0564959..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-tvOS/Assets.xcassets/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-tvOS/Assets.xcassets/LaunchImage.launchimage/Contents.json b/OpenSSL-for-tvOS/Assets.xcassets/LaunchImage.launchimage/Contents.json deleted file mode 100644 index 29d94c7..0000000 --- a/OpenSSL-for-tvOS/Assets.xcassets/LaunchImage.launchimage/Contents.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "images" : [ - { - "orientation" : "landscape", - "idiom" : "tv", - "extent" : "full-screen", - "minimum-system-version" : "9.0", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/OpenSSL-for-tvOS/Info.plist b/OpenSSL-for-tvOS/Info.plist deleted file mode 100644 index 4aa5d31..0000000 --- a/OpenSSL-for-tvOS/Info.plist +++ /dev/null @@ -1,30 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UIRequiredDeviceCapabilities - - arm64 - - - diff --git a/README.md b/README.md index 4dd7aaf..46afe4e 100644 --- a/README.md +++ b/README.md @@ -1,82 +1,56 @@ -# OpenSSL-for-iOS [![Build Status](https://travis-ci.org/x2on/OpenSSL-for-iPhone.svg)](https://travis-ci.org/x2on/OpenSSL-for-iPhone) [![license](https://img.shields.io/github/license/x2on/OpenSSL-for-iPhone.svg)](https://github.com/x2on/OpenSSL-for-iPhone/blob/master/LICENSE) [![OpenSSL version](https://img.shields.io/badge/OpenSSL-1.0.2l-lightgrey.svg)]() [![OpenSSL version](https://img.shields.io/badge/OpenSSL-1.1.0f-lightgrey.svg)]() [![iOS support](https://img.shields.io/badge/iOS-7.0%20--%2010.2-lightgrey.svg)]() [![tvOS support](https://img.shields.io/badge/tvOS-9.2--%2010.1-lightgrey.svg)]() +# OpenSSL-Apple -This is a script for using self-compiled builds of the OpenSSL-library on the iPhone. You can build apps with Xcode and the official SDK from Apple with this. I also made a small example-app for using the libraries with Xcode and the iPhone/iPhone-Simulator. +[![license](https://img.shields.io/github/license/x2on/OpenSSL-for-iPhone.svg)](https://github.com/x2on/OpenSSL-for-iPhone/blob/master/LICENSE) [![OpenSSL version](https://img.shields.io/badge/OpenSSL-1.0.2l-lightgrey.svg)]() [![OpenSSL version](https://img.shields.io/badge/OpenSSL-1.1.0f-lightgrey.svg)]() [![iOS support](https://img.shields.io/badge/iOS-8%20--%2011-lightgrey.svg)]() [![tvOS support](https://img.shields.io/badge/tvOS-9%20--%2011-lightgrey.svg)]() [![macOS support](https://img.shields.io/badge/macOS-10.11%20--%2010.13-lightgrey.svg)]() -**Enjoy OpenSSL on the iPhone!** +This is a fork of the popular work by [Felix Schulze](https://github.com/x2on), that is a set of scripts for using self-compiled builds of the OpenSSL library on the iPhone and the Apple TV. -You must build the OpenSSL-Libraries (1.0.2k) before running the sample with: -```bash -./build-libssl.sh +However, this repository focuses more on framework-based setups and also adds macOS support. + +# Compile library + +Compile OpenSSL 1.0.2k for all archs: + +``` +./build-libssl.sh --version=1.0.2k ``` -To build OpenSSL 1.1.0e build the OpenSSL-Libraries with: -```bash +Compile OpenSSL 1.1.0f for all targets: + +``` ./build-libssl.sh --version=1.1.0f ``` -For all options see the help -```bash +Compile OpenSSL 1.0.2k for specific archs: + +``` +./build-libssl.sh --version=1.0.2k --archs="ios_armv7 ios_arm64 mac_i386" +``` + +Compile OpenSSL 1.1.0f for specific targets: + +``` +./build-libssl.sh --version=1.1.0f --targets="ios-cross-armv7 macos64-x86_64" +``` + +For all options see: + +``` ./build-libssl.sh --help ``` -This repository contains an iOS 10.0 Xcode Project which uses the OpenSSL Libraries. The examples uses the MD5 or SHA256-algorithm to calculate an md5 or sha256 hash from an UITextfield. +# Generate frameworks -## System support -**iOS 7.0 - iOS 10.2 (i386, x86_64, armv7, armv7s, armv64, bitcode) and tvOS 9.2 - tvOS 10.1 (x86_64, arm64, bitcode) are currently supported.** +Statically linked: -For iOS < 7.0 you must use Xcode < 7 and an older version of the build script. +``` +./create-openssl-framework.sh static +``` -If you have problems building for arm64 please uninstall MacPorts (see [#28](https://github.com/x2on/OpenSSL-for-iPhone/issues/28)). +Dynamically linked: -## Original tutorials for this project: -* -* +``` +./create-openssl-framework.sh dynamic +``` -## Changelog -* 2017-05-25: OpenSSL 1.0.2l, 1.1.0f -* 2017-02-16: OpenSSL 1.1.0e -* 2017-01-28: OpenSSL 1.0.2k, 1.1.0d, Xcode 8.2 (iOS 10.2 and tvOS 10.1) -* 2016-11-13: OpenSSL 1.1.0c -* 2016-11-07: Optional support for OpenSSL 1.1.0b -* 2016-09-28: OpenSSL 1.0.2j -* 2016-09-22: OpenSSL 1.0.2i -* 2016-09-18: Xcode 8 support, iOS 10.0, Add command line options, Optimize build -* 2016-08-09: Xcode 7.3 support, iOS 9.3 -* 2016-05-04: OpenSSL 1.0.2h -* 2015-12-11: Xcode 7.2 support, iOS 9.2 -* 2015-12-03: OpenSSL 1.0.2e -* 2015-11-17: tvOS example app, Migrate to Swift for example app -* 2015-11-16: tvOS support -* 2015-10-25: Xcode 7.1 support -* 2015-08-06: iOS 9.0 support, Bitcode support -* 2015-07-09: OpenSSL 1.0.2d, iOS 8.4 -* 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 -* 2015-01-10: OpenSSL 1.0.1k -* 2014-10-15: OpenSSL 1.0.1j -* 2014-09-18: iOS 8.0 support -* 2014-08-08: OpenSSL 1.0.1i -* 2014-06-05: OpenSSL 1.0.1h -* 2014-04-07: OpenSSL 1.0.1g -* 2014-03-12: iOS 7.1 support -* 2014-01-07: OpenSSL 1.0.1f -* 2013-10-12: x86_64 support, Migrate project to iOS 7.0 -* 2013-09-23: iOS 7.0 support -* 2013-03-01: OpenSSL 1.0.1e, iOS 6.1 -* 2012-09-21: Support for iOS 6.0 and iPhone 5 (armv7s) - Remove armv6 support -* 2012-05-17: OpenSSL 1.0.1c -* 2012-05-02: OpenSSL 1.0.1b -* 2012-04-01: OpenSSL 1.0.1, Modernizes project to use ARC -* 2012-01-28: OpenSSL 1.0.0g, Optimized build script -* 2011-10-23: OpenSSL 1.0.0e, iOS 5.0 -* 2011-02-08: OpenSSL 1.0.0d -* 2010-12-16: Script for building OpenSSL -* 2010-12-04: SHA256 Hash, Clean project file with iOS 4.2 as base SDK -* 2010-12-04: OpenSSL 1.0.0c -* 2010-11-16: OpenSSL 1.0.0b -* 2010-06-30: OpenSSL 1.0.0a, iOS 4.0 as base SDK -* 2010-06-10: OpenSSL 0.9.8o, iPad Version -* 2010-03-31: OpenSSL 0.9.8n -* 2010-02-26: OpenSSL 0.9.8m +# Original project +* diff --git a/build-libssl.sh b/build-libssl.sh index 2e2abdc..9e25dd7 100755 --- a/build-libssl.sh +++ b/build-libssl.sh @@ -33,7 +33,7 @@ DEFAULTTARGETS="ios-sim-cross-x86_64 ios-sim-cross-i386 ios64-cross-arm64 ios-cr # Minimum iOS/tvOS SDK version to build for MACOS_MIN_SDK_VERSION="10.11" -IOS_MIN_SDK_VERSION="7.0" +IOS_MIN_SDK_VERSION="8.0" TVOS_MIN_SDK_VERSION="9.0" # Init optional env variables (use available variable or default to empty string) @@ -52,7 +52,7 @@ echo_help() echo " --ios-sdk=SDKVERSION Override iOS SDK version" echo " --noparallel Disable running make with parallel jobs (make -j)" echo " --tvos-sdk=SDKVERSION Override tvOS SDK version" - echo " --disable-bitcode Disable embedding Bitcode" + #echo " --disable-bitcode Disable embedding Bitcode" echo " -v, --verbose Enable verbose logging" echo " --verbose-on-error Dump last 500 lines from log file if an error occurs (for Travis builds)" echo " --version=VERSION OpenSSL version to build (defaults to ${DEFAULTVERSION})" @@ -227,9 +227,9 @@ case $i in --ec-nistp-64-gcc-128) CONFIG_ENABLE_EC_NISTP_64_GCC_128="true" ;; - --disable-bitcode) - CONFIG_DISABLE_BITCODE="true" - ;; + #--disable-bitcode) + # CONFIG_DISABLE_BITCODE="true" + # ;; -h|--help) echo_help exit diff --git a/travis-build.sh b/travis-build.sh deleted file mode 100755 index b420886..0000000 --- a/travis-build.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh - -# Log script output with prefix -log_output() -{ - while read INPUT; do - echo "${1} ${INPUT}" - done -} - -# Shut up curl -export CURL_OPTIONS="-s" - -# Build 1.0.2 in current directory -./build-libssl.sh --noparallel --verbose-on-error | log_output "ARCHS " & -PID_ARCHS=$! - -# Build 1.1.0 in (temporary) subdirectory -mkdir targets -cd targets -cp -r ../include . -../build-libssl.sh --noparallel --verbose-on-error --ec-nistp-64-gcc-128 --version=1.1.0f | log_output "TARGETS" & -PID_TARGETS=$! - -echo "SCRIPT Started jobs, waiting for jobs to finish" -wait ${PID_ARCHS} -wait ${PID_TARGETS} - -# Verify/prepare 1.1.0 build dir -xcrun -sdk iphoneos lipo -info ./lib/*.a | log_output "TARGETS" -../create-openssl-framework.sh | log_output "TARGETS" -xcrun -sdk iphoneos lipo -info frameworks/iPhone/openssl.framework/openssl | log_output "TARGETS" -cp -r ../OpenSSL-for-* . - -# Back to main dir -cd .. -xcrun -sdk iphoneos lipo -info ./lib/*.a | log_output "ARCHS " -./create-openssl-framework.sh | log_output "ARCHS " -xcrun -sdk iphoneos lipo -info frameworks/iPhone/openssl.framework/openssl | log_output "ARCHS " -