Upgrade to OpenSSL 0.9.8n

This commit is contained in:
Felix Schulze 2010-03-31 14:40:42 +02:00
parent aa44921811
commit ba9effbab2
7 changed files with 100 additions and 87 deletions

View File

@ -276,11 +276,13 @@
<key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key> <key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key>
<array> <array>
<array> <array>
<integer>9</integer>
<integer>7</integer>
<integer>0</integer> <integer>0</integer>
</array> </array>
</array> </array>
<key>PBXSmartGroupTreeModuleOutlineStateVisibleRectKey</key> <key>PBXSmartGroupTreeModuleOutlineStateVisibleRectKey</key>
<string>{{0, 0}, {186, 1064}}</string> <string>{{0, 0}, {186, 727}}</string>
</dict> </dict>
<key>PBXTopSmartGroupGIDs</key> <key>PBXTopSmartGroupGIDs</key>
<array/> <array/>
@ -292,14 +294,14 @@
<key>GeometryConfiguration</key> <key>GeometryConfiguration</key>
<dict> <dict>
<key>Frame</key> <key>Frame</key>
<string>{{0, 0}, {203, 1082}}</string> <string>{{0, 0}, {203, 745}}</string>
<key>GroupTreeTableConfiguration</key> <key>GroupTreeTableConfiguration</key>
<array> <array>
<string>MainColumn</string> <string>MainColumn</string>
<real>186</real> <real>186</real>
</array> </array>
<key>RubberWindowFrame</key> <key>RubberWindowFrame</key>
<string>43 55 1877 1123 0 0 1920 1178 </string> <string>344 195 1280 786 0 0 1920 1178 </string>
</dict> </dict>
<key>Module</key> <key>Module</key>
<string>PBXSmartGroupTreeModule</string> <string>PBXSmartGroupTreeModule</string>
@ -327,15 +329,15 @@
<key>_historyCapacity</key> <key>_historyCapacity</key>
<integer>0</integer> <integer>0</integer>
<key>bookmark</key> <key>bookmark</key>
<string>2A958F33111B0ABA005357FF</string> <string>2A0C1BD111621A4600885C03</string>
<key>history</key> <key>history</key>
<array> <array>
<string>2A3475B0111725A3007C3F01</string> <string>2A3475B0111725A3007C3F01</string>
<string>2A191D4E111734250052E5A8</string> <string>2A191D4E111734250052E5A8</string>
<string>2A958F2F111B0ABA005357FF</string> <string>2A0C1BCD11621A4600885C03</string>
<string>2A958F30111B0ABA005357FF</string> <string>2A0C1BCE11621A4600885C03</string>
<string>2A958F31111B0ABA005357FF</string> <string>2A0C1BCF11621A4600885C03</string>
<string>2A958F32111B0ABA005357FF</string> <string>2AD8794D113D9EB000EDB9AF</string>
</array> </array>
</dict> </dict>
<key>SplitCount</key> <key>SplitCount</key>
@ -347,14 +349,14 @@
<key>GeometryConfiguration</key> <key>GeometryConfiguration</key>
<dict> <dict>
<key>Frame</key> <key>Frame</key>
<string>{{0, 0}, {1669, 872}}</string> <string>{{0, 0}, {1072, 630}}</string>
<key>RubberWindowFrame</key> <key>RubberWindowFrame</key>
<string>43 55 1877 1123 0 0 1920 1178 </string> <string>344 195 1280 786 0 0 1920 1178 </string>
</dict> </dict>
<key>Module</key> <key>Module</key>
<string>PBXNavigatorGroup</string> <string>PBXNavigatorGroup</string>
<key>Proportion</key> <key>Proportion</key>
<string>872pt</string> <string>630pt</string>
</dict> </dict>
<dict> <dict>
<key>ContentConfiguration</key> <key>ContentConfiguration</key>
@ -367,18 +369,18 @@
<key>GeometryConfiguration</key> <key>GeometryConfiguration</key>
<dict> <dict>
<key>Frame</key> <key>Frame</key>
<string>{{0, 877}, {1669, 205}}</string> <string>{{0, 635}, {1072, 110}}</string>
<key>RubberWindowFrame</key> <key>RubberWindowFrame</key>
<string>43 55 1877 1123 0 0 1920 1178 </string> <string>344 195 1280 786 0 0 1920 1178 </string>
</dict> </dict>
<key>Module</key> <key>Module</key>
<string>XCDetailModule</string> <string>XCDetailModule</string>
<key>Proportion</key> <key>Proportion</key>
<string>205pt</string> <string>110pt</string>
</dict> </dict>
</array> </array>
<key>Proportion</key> <key>Proportion</key>
<string>1669pt</string> <string>1072pt</string>
</dict> </dict>
</array> </array>
<key>Name</key> <key>Name</key>
@ -393,9 +395,9 @@
</array> </array>
<key>TableOfContents</key> <key>TableOfContents</key>
<array> <array>
<string>2A958F34111B0ABA005357FF</string> <string>2A0C1BB911621A1D00885C03</string>
<string>1CE0B1FE06471DED0097A5F4</string> <string>1CE0B1FE06471DED0097A5F4</string>
<string>2A958F35111B0ABA005357FF</string> <string>2A0C1BBA11621A1D00885C03</string>
<string>1CE0B20306471E060097A5F4</string> <string>1CE0B20306471E060097A5F4</string>
<string>1CE0B20506471E060097A5F4</string> <string>1CE0B20506471E060097A5F4</string>
</array> </array>
@ -533,11 +535,13 @@
<integer>5</integer> <integer>5</integer>
<key>WindowOrderList</key> <key>WindowOrderList</key>
<array> <array>
<string>1C78EAAD065D492600B07095</string>
<string>1CD10A99069EF8BA00B06720</string>
<string>2A347546111721AA007C3F01</string> <string>2A347546111721AA007C3F01</string>
<string>/Users/x2on/Projects/iphone/OpenSSL-for-iPhone/OpenSSL-1.xcodeproj</string> <string>/Users/x2on/Projects/iphone/OpenSSL-for-iPhone/OpenSSL-1.xcodeproj</string>
</array> </array>
<key>WindowString</key> <key>WindowString</key>
<string>43 55 1877 1123 0 0 1920 1178 </string> <string>344 195 1280 786 0 0 1920 1178 </string>
<key>WindowToolsV3</key> <key>WindowToolsV3</key>
<array> <array>
<dict> <dict>
@ -614,7 +618,7 @@
<key>TableOfContents</key> <key>TableOfContents</key>
<array> <array>
<string>2A347546111721AA007C3F01</string> <string>2A347546111721AA007C3F01</string>
<string>2A958F36111B0ABA005357FF</string> <string>2A0C1BBB11621A1D00885C03</string>
<string>1CD0528F0623707200166675</string> <string>1CD0528F0623707200166675</string>
<string>XCMainBuildResultsModuleGUID</string> <string>XCMainBuildResultsModuleGUID</string>
</array> </array>
@ -658,8 +662,8 @@
<string>yes</string> <string>yes</string>
<key>sizes</key> <key>sizes</key>
<array> <array>
<string>{{0, 0}, {316, 201}}</string> <string>{{0, 0}, {316, 202}}</string>
<string>{{316, 0}, {378, 201}}</string> <string>{{316, 0}, {378, 202}}</string>
</array> </array>
</dict> </dict>
<key>VerticalSplitView</key> <key>VerticalSplitView</key>
@ -674,8 +678,8 @@
<string>yes</string> <string>yes</string>
<key>sizes</key> <key>sizes</key>
<array> <array>
<string>{{0, 0}, {694, 201}}</string> <string>{{0, 0}, {694, 202}}</string>
<string>{{0, 201}, {694, 180}}</string> <string>{{0, 202}, {694, 179}}</string>
</array> </array>
</dict> </dict>
</dict> </dict>
@ -708,7 +712,7 @@
<real>148</real> <real>148</real>
</array> </array>
<key>Frame</key> <key>Frame</key>
<string>{{316, 0}, {378, 201}}</string> <string>{{316, 0}, {378, 202}}</string>
<key>RubberWindowFrame</key> <key>RubberWindowFrame</key>
<string>111 617 694 422 0 0 1920 1178 </string> <string>111 617 694 422 0 0 1920 1178 </string>
</dict> </dict>
@ -736,13 +740,13 @@
<key>TableOfContents</key> <key>TableOfContents</key>
<array> <array>
<string>1CD10A99069EF8BA00B06720</string> <string>1CD10A99069EF8BA00B06720</string>
<string>2A95BFC311173BE400229148</string> <string>2A0C1BBC11621A1D00885C03</string>
<string>1C162984064C10D400B95A72</string> <string>1C162984064C10D400B95A72</string>
<string>2A95BFC411173BE400229148</string> <string>2A0C1BBD11621A1D00885C03</string>
<string>2A95BFC511173BE400229148</string> <string>2A0C1BBE11621A1D00885C03</string>
<string>2A95BFC611173BE400229148</string> <string>2A0C1BBF11621A1D00885C03</string>
<string>2A95BFC711173BE400229148</string> <string>2A0C1BC011621A1D00885C03</string>
<string>2A95BFC811173BE400229148</string> <string>2A0C1BC111621A1D00885C03</string>
</array> </array>
<key>ToolbarConfiguration</key> <key>ToolbarConfiguration</key>
<string>xcode.toolbar.config.debugV3</string> <string>xcode.toolbar.config.debugV3</string>
@ -904,7 +908,7 @@
<key>TableOfContents</key> <key>TableOfContents</key>
<array> <array>
<string>1C78EAAD065D492600B07095</string> <string>1C78EAAD065D492600B07095</string>
<string>2A95BFC911173BE400229148</string> <string>2A0C1BC211621A1D00885C03</string>
<string>1C78EAAC065D492600B07095</string> <string>1C78EAAC065D492600B07095</string>
</array> </array>
<key>ToolbarConfiguration</key> <key>ToolbarConfiguration</key>

View File

@ -10,9 +10,9 @@
}; };
1D3623250D0F684500981E51 /* OpenSSL_1AppDelegate.m */ = { 1D3623250D0F684500981E51 /* OpenSSL_1AppDelegate.m */ = {
uiCtxt = { uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {1608, 1209}}"; sepNavIntBoundsRect = "{{0, 0}, {1433, 1313}}";
sepNavSelRange = "{1389, 235}"; sepNavSelRange = "{208, 0}";
sepNavVisRange = "{0, 2059}"; sepNavVisRange = "{1925, 931}";
}; };
}; };
1D6058900D05DD3D006BFB54 /* OpenSSL-1 */ = { 1D6058900D05DD3D006BFB54 /* OpenSSL-1 */ = {
@ -24,6 +24,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = { 29B97313FDCFA39411CA2CEA /* Project object */ = {
activeBuildConfigurationName = Debug; activeBuildConfigurationName = Debug;
activeExecutable = 2A347539111721A9007C3F01 /* OpenSSL-1 */; activeExecutable = 2A347539111721A9007C3F01 /* OpenSSL-1 */;
activeSDKPreference = iphonesimulator3.1.3;
activeTarget = 1D6058900D05DD3D006BFB54 /* OpenSSL-1 */; activeTarget = 1D6058900D05DD3D006BFB54 /* OpenSSL-1 */;
addToTargets = ( addToTargets = (
1D6058900D05DD3D006BFB54 /* OpenSSL-1 */, 1D6058900D05DD3D006BFB54 /* OpenSSL-1 */,
@ -38,7 +39,7 @@
PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID; PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
PBXFileTableDataSourceColumnWidthsKey = ( PBXFileTableDataSourceColumnWidthsKey = (
20, 20,
1430, 833,
20, 20,
48, 48,
43, 43,
@ -77,17 +78,17 @@
PBXFileDataSource_Warnings_ColumnID, PBXFileDataSource_Warnings_ColumnID,
); );
}; };
PBXPerProjectTemplateStateSaveDate = 286984855; PBXPerProjectTemplateStateSaveDate = 291641863;
PBXWorkspaceStateSaveDate = 286984855; PBXWorkspaceStateSaveDate = 291641863;
}; };
perUserProjectItems = { perUserProjectItems = {
2A0C1BCD11621A4600885C03 /* PBXTextBookmark */ = 2A0C1BCD11621A4600885C03 /* PBXTextBookmark */;
2A0C1BCE11621A4600885C03 /* PBXTextBookmark */ = 2A0C1BCE11621A4600885C03 /* PBXTextBookmark */;
2A0C1BCF11621A4600885C03 /* PBXTextBookmark */ = 2A0C1BCF11621A4600885C03 /* PBXTextBookmark */;
2A0C1BD111621A4600885C03 /* PlistBookmark */ = 2A0C1BD111621A4600885C03 /* PlistBookmark */;
2A191D4E111734250052E5A8 /* PBXTextBookmark */ = 2A191D4E111734250052E5A8 /* PBXTextBookmark */; 2A191D4E111734250052E5A8 /* PBXTextBookmark */ = 2A191D4E111734250052E5A8 /* PBXTextBookmark */;
2A3475B0111725A3007C3F01 /* PBXTextBookmark */ = 2A3475B0111725A3007C3F01 /* PBXTextBookmark */; 2A3475B0111725A3007C3F01 /* PBXTextBookmark */ = 2A3475B0111725A3007C3F01 /* PBXTextBookmark */;
2A958F2F111B0ABA005357FF /* PBXTextBookmark */ = 2A958F2F111B0ABA005357FF /* PBXTextBookmark */; 2AD8794D113D9EB000EDB9AF /* PlistBookmark */ = 2AD8794D113D9EB000EDB9AF /* PlistBookmark */;
2A958F30111B0ABA005357FF /* PBXTextBookmark */ = 2A958F30111B0ABA005357FF /* PBXTextBookmark */;
2A958F31111B0ABA005357FF /* PBXTextBookmark */ = 2A958F31111B0ABA005357FF /* PBXTextBookmark */;
2A958F32111B0ABA005357FF /* PBXBookmark */ = 2A958F32111B0ABA005357FF /* PBXBookmark */;
2A958F33111B0ABA005357FF /* PlistBookmark */ = 2A958F33111B0ABA005357FF /* PlistBookmark */;
}; };
sourceControlManager = 2A347548111721AA007C3F01 /* Source Control */; sourceControlManager = 2A347548111721AA007C3F01 /* Source Control */;
userBuildSettings = { userBuildSettings = {
@ -95,11 +96,52 @@
}; };
29B97316FDCFA39411CA2CEA /* main.m */ = { 29B97316FDCFA39411CA2CEA /* main.m */ = {
uiCtxt = { uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {1608, 840}}"; sepNavIntBoundsRect = "{{0, 0}, {1011, 598}}";
sepNavSelRange = "{158, 0}"; sepNavSelRange = "{158, 0}";
sepNavVisRange = "{0, 363}"; sepNavVisRange = "{0, 363}";
}; };
}; };
2A0C1BCD11621A4600885C03 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 1D3623250D0F684500981E51 /* OpenSSL_1AppDelegate.m */;
name = "OpenSSL_1AppDelegate.m: 11";
rLen = 0;
rLoc = 208;
rType = 0;
vrLen = 931;
vrLoc = 1925;
};
2A0C1BCE11621A4600885C03 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 32CA4F630368D1EE00C91783 /* OpenSSL_1_Prefix.pch */;
name = "OpenSSL_1_Prefix.pch: 1";
rLen = 0;
rLoc = 0;
rType = 0;
vrLen = 187;
vrLoc = 0;
};
2A0C1BCF11621A4600885C03 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 29B97316FDCFA39411CA2CEA /* main.m */;
name = "main.m: 10";
rLen = 0;
rLoc = 158;
rType = 0;
vrLen = 363;
vrLoc = 0;
};
2A0C1BD111621A4600885C03 /* PlistBookmark */ = {
isa = PlistBookmark;
fRef = 8D1107310486CEB800E47090 /* OpenSSL_1-Info.plist */;
fallbackIsa = PBXBookmark;
isK = 0;
kPath = (
);
name = "/Users/x2on/Projects/iphone/OpenSSL-for-iPhone/OpenSSL_1-Info.plist";
rLen = 0;
rLoc = 9223372036854775807;
};
2A191D4E111734250052E5A8 /* PBXTextBookmark */ = { 2A191D4E111734250052E5A8 /* PBXTextBookmark */ = {
isa = PBXTextBookmark; isa = PBXTextBookmark;
fRef = 1D3623240D0F684500981E51 /* OpenSSL_1AppDelegate.h */; fRef = 1D3623240D0F684500981E51 /* OpenSSL_1AppDelegate.h */;
@ -169,41 +211,7 @@
path = /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h; path = /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h;
sourceTree = "<absolute>"; sourceTree = "<absolute>";
}; };
2A958F2F111B0ABA005357FF /* PBXTextBookmark */ = { 2AD8794D113D9EB000EDB9AF /* PlistBookmark */ = {
isa = PBXTextBookmark;
fRef = 1D3623250D0F684500981E51 /* OpenSSL_1AppDelegate.m */;
name = "OpenSSL_1AppDelegate.m: 43";
rLen = 235;
rLoc = 1389;
rType = 0;
vrLen = 2059;
vrLoc = 0;
};
2A958F30111B0ABA005357FF /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 29B97316FDCFA39411CA2CEA /* main.m */;
name = "main.m: 10";
rLen = 0;
rLoc = 158;
rType = 0;
vrLen = 363;
vrLoc = 0;
};
2A958F31111B0ABA005357FF /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 32CA4F630368D1EE00C91783 /* OpenSSL_1_Prefix.pch */;
name = "OpenSSL_1_Prefix.pch: 1";
rLen = 0;
rLoc = 0;
rType = 0;
vrLen = 187;
vrLoc = 0;
};
2A958F32111B0ABA005357FF /* PBXBookmark */ = {
isa = PBXBookmark;
fRef = 8D1107310486CEB800E47090 /* OpenSSL_1-Info.plist */;
};
2A958F33111B0ABA005357FF /* PlistBookmark */ = {
isa = PlistBookmark; isa = PlistBookmark;
fRef = 8D1107310486CEB800E47090 /* OpenSSL_1-Info.plist */; fRef = 8D1107310486CEB800E47090 /* OpenSSL_1-Info.plist */;
fallbackIsa = PBXBookmark; fallbackIsa = PBXBookmark;
@ -212,11 +220,11 @@
); );
name = "/Users/x2on/Projects/iphone/OpenSSL-for-iPhone/OpenSSL_1-Info.plist"; name = "/Users/x2on/Projects/iphone/OpenSSL-for-iPhone/OpenSSL_1-Info.plist";
rLen = 0; rLen = 0;
rLoc = 9223372036854775807; rLoc = 9223372036854775808;
}; };
32CA4F630368D1EE00C91783 /* OpenSSL_1_Prefix.pch */ = { 32CA4F630368D1EE00C91783 /* OpenSSL_1_Prefix.pch */ = {
uiCtxt = { uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {1608, 840}}"; sepNavIntBoundsRect = "{{0, 0}, {1011, 598}}";
sepNavSelRange = "{0, 0}"; sepNavSelRange = "{0, 0}";
sepNavVisRange = "{0, 187}"; sepNavVisRange = "{0, 187}";
}; };

15
README
View File

@ -1,17 +1,18 @@
From: http://www.x2on.de/2010/02/01/tutorial-iphone-app-with-compiled-openssl-library/ From: http://www.x2on.de/2010/02/01/tutorial-iphone-app-with-compiled-openssl-library/
UPDATE 2010-03-31: I have updated OpenSSL to 0.9.8n
UPDATE 2010-02-26: I have updated OpenSSL to 0.9.8m UPDATE 2010-02-26: I have updated OpenSSL to 0.9.8m
This is a tutorial 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. You can also download the precompiled OpenSSL-library (0.9.8m-beta1). This is a tutorial 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. You can also download the precompiled OpenSSL-library (0.9.8n).
Create OpenSSL Libary: Create OpenSSL Libary:
* Download OpenSSL Sourcecode * Download OpenSSL Sourcecode
* Build OpenSSL for i368 iPhoneSimulator: * Build OpenSSL for i368 iPhoneSimulator:
o cd openssl-0.9.8m o cd openssl-0.9.8n
mkdir openssl_arm mkdir openssl_arm
mkdir openssl_i386 mkdir openssl_i386
./config --openssldir=/Users/ ./config --openssldir=/PathtoOpenSSL/openssl_i386
o Edit Makefile: o Edit Makefile:
+ Change CC = cc to: + Change CC = cc to:
@ -20,7 +21,7 @@ Create OpenSSL Libary:
+ Add as first item to CFLAG: + Add as first item to CFLAG:
-isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.2.sdk -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk
o Change in crypto/ui/ui_openssl.c o Change in crypto/ui/ui_openssl.c
@ -53,11 +54,11 @@ Create OpenSSL Libary:
+ Change + Change
-isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.2.sdk -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk
to to
-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk
o Build it: o Build it:
make make
@ -81,4 +82,4 @@ Edit your iPhone-XCode project:
Enjoy OpenSSL on the iPhone! Enjoy OpenSSL on the iPhone!
I have made an iPhone OS 3.1.2 XCode Project with OpenSSL 0.9.8m (Beta1) Libaries. The examples uses the MD5-algorithm to calculate an md5 hash from an UITextfield. I have made an iPhone OS 3.1.3 XCode Project with OpenSSL 0.9.8n Libaries. The examples uses the MD5-algorithm to calculate an md5 hash from an UITextfield.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.