Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 10 additions & 0 deletions OpenSSL-Universal.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
650 changes: 650 additions & 0 deletions OpenSSL-iOS/OpenSSL-iOS.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0730"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C71BFA001D395F47006DBF18"
BuildableName = "openssl.framework"
BlueprintName = "openssl"
ReferencedContainer = "container:OpenSSL-iOS.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Release"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C71BFA001D395F47006DBF18"
BuildableName = "openssl.framework"
BlueprintName = "openssl"
ReferencedContainer = "container:OpenSSL-iOS.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C71BFA001D395F47006DBF18"
BuildableName = "openssl.framework"
BlueprintName = "openssl"
ReferencedContainer = "container:OpenSSL-iOS.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>OpenSSL-iOS.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>C71BFA001D395F47006DBF18</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
26 changes: 26 additions & 0 deletions OpenSSL-iOS/OpenSSL-iOS/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
53 changes: 53 additions & 0 deletions OpenSSL-iOS/OpenSSL-iOS/build-framework-ios.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/bin/sh

# build-framework-ios.sh
# OpenSSL-iOS
#
# Created by Josip Cavar on 15/07/16.
# Copyright © 2016 krzyzanowskim. All rights reserved.


set -e
set +u
# Avoid recursively calling this script.
if [[ $SF_MASTER_SCRIPT_RUNNING ]]
then
exit 0
fi
set -u
export SF_MASTER_SCRIPT_RUNNING=1


# Constants
SF_TARGET_NAME=${PRODUCT_NAME}
UNIVERSAL_OUTPUTFOLDER=${SRCROOT}/bin

# Take build target
if [[ "$SDK_NAME" =~ ([A-Za-z]+) ]]
then
SF_SDK_PLATFORM=${BASH_REMATCH[1]}
else
echo "Could not find platform name from SDK_NAME: $SDK_NAME"
exit 1
fi

if [[ "$SF_SDK_PLATFORM" = "iphoneos" ]]
then
echo "Please choose iPhone simulator as the build target."
exit 1
fi

IPHONE_DEVICE_BUILD_DIR=${BUILD_DIR}/${CONFIGURATION}-iphoneos

# Build the other (non-simulator) platform
xcodebuild -project "${PROJECT_FILE_PATH}" -target "${TARGET_NAME}" -configuration "${CONFIGURATION}" -sdk iphoneos BUILD_DIR="${BUILD_DIR}" OBJROOT="${OBJROOT}" BUILD_ROOT="${BUILD_ROOT}" CONFIGURATION_BUILD_DIR="${IPHONE_DEVICE_BUILD_DIR}/arm64" SYMROOT="${SYMROOT}" ARCHS='arm64' VALID_ARCHS='arm64' $ACTION

xcodebuild -project "${PROJECT_FILE_PATH}" -target "${TARGET_NAME}" -configuration "${CONFIGURATION}" -sdk iphoneos BUILD_DIR="${BUILD_DIR}" OBJROOT="${OBJROOT}" BUILD_ROOT="${BUILD_ROOT}" CONFIGURATION_BUILD_DIR="${IPHONE_DEVICE_BUILD_DIR}/armv7" SYMROOT="${SYMROOT}" ARCHS='armv7 armv7s' VALID_ARCHS='armv7 armv7s' $ACTION

# Copy the framework structure to the universal folder (clean it first)
rm -rf "${UNIVERSAL_OUTPUTFOLDER}"
mkdir -p "${UNIVERSAL_OUTPUTFOLDER}"
cp -R "${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${SF_TARGET_NAME}.framework" "${UNIVERSAL_OUTPUTFOLDER}/${SF_TARGET_NAME}.framework"

# Smash them together to combine all architectures
lipo -create "${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${SF_TARGET_NAME}.framework/${SF_TARGET_NAME}" "${BUILD_DIR}/${CONFIGURATION}-iphoneos/arm64/${SF_TARGET_NAME}.framework/${SF_TARGET_NAME}" "${BUILD_DIR}/${CONFIGURATION}-iphoneos/armv7/${SF_TARGET_NAME}.framework/${SF_TARGET_NAME}" -output "${UNIVERSAL_OUTPUTFOLDER}/${SF_TARGET_NAME}.framework/${SF_TARGET_NAME}"
95 changes: 95 additions & 0 deletions OpenSSL-iOS/OpenSSL-iOS/openssl.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
//
// OpenSSL-iOS.h
// OpenSSL-iOS
//
// Created by Josip Cavar on 15/07/16.
// Copyright © 2016 krzyzanowskim. All rights reserved.
//

#import <Foundation/Foundation.h>

//! Project version number for OpenSSL-iOS.
FOUNDATION_EXPORT double OpenSSL_iOSVersionNumber;

//! Project version string for OpenSSL-iOS.
FOUNDATION_EXPORT const unsigned char OpenSSL_iOSVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <OpenSSL_iOS/PublicHeader.h>

#import <openssl/rc4.h>
#import <openssl/rc2.h>
#import <openssl/idea.h>
#import <openssl/bn.h>
#import <openssl/des.h>
#import <openssl/des_old.h>
#import <openssl/opensslconf.h>
#import <openssl/md4.h>
#import <openssl/md5.h>
#import <openssl/mdc2.h>
#import <openssl/pkcs12.h>
#import <openssl/pkcs7.h>
#import <openssl/pqueue.h>
#import <openssl/rand.h>
#import <openssl/ripemd.h>
#import <openssl/rsa.h>
#import <openssl/safestack.h>
#import <openssl/seed.h>
#import <openssl/sha.h>
#import <openssl/srp.h>
#import <openssl/srtp.h>
#import <openssl/ssl.h>
#import <openssl/ssl2.h>
#import <openssl/ssl23.h>
#import <openssl/ssl3.h>
#import <openssl/ssl3.h>
#import <openssl/tls1.h>
#import <openssl/ts.h>
#import <openssl/txt_db.h>
#import <openssl/ui.h>
#import <openssl/ui_compat.h>
#import <openssl/whrlpool.h>
#import <openssl/x509.h>
#import <openssl/x509_vfy.h>
#import <openssl/x509v3.h>
#import <openssl/dtls1.h>
#import <openssl/ecdh.h>
#import <openssl/ecdsa.h>
#import <openssl/engine.h>
#import <openssl/ocsp.h>
#import <openssl/opensslv.h>
#import <openssl/ossl_typ.h>
#import <openssl/pem.h>
#import <openssl/pem2.h>
#import <openssl/stack.h>
#import <openssl/symhacks.h>
#import <openssl/blowfish.h>
#import <openssl/buffer.h>
#import <openssl/camellia.h>
#import <openssl/cast.h>
#import <openssl/cmac.h>
#import <openssl/aes.h>
#import <openssl/asn1.h>
#import <openssl/asn1_mac.h>
#import <openssl/asn1t.h>
#import <openssl/asn1t.h>
#import <openssl/bio.h>
#import <openssl/cms.h>
#import <openssl/comp.h>
#import <openssl/conf.h>
#import <openssl/conf_api.h>
#import <openssl/crypto.h>
#import <openssl/dh.h>
#import <openssl/dsa.h>
#import <openssl/krb5_asn.h>
#import <openssl/dso.h>
#import <openssl/ebcdic.h>
#import <openssl/lhash.h>
#import <openssl/obj_mac.h>
#import <openssl/objects.h>
#import <openssl/modes.h>
#import <openssl/err.h>
#import <openssl/evp.h>
#import <openssl/hmac.h>
#import <openssl/kssl.h>
#import <openssl/e_os2.h>
#import <openssl/ec.h>
Loading