<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>x2on.de &#187; TLS</title>
	<atom:link href="http://www.x2on.de/tag/tls/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.x2on.de</link>
	<description>by Felix Schulze - a mobile evangelist. Tutorials for iOS, Android, Mac, Linux, iPhone and more...</description>
	<lastBuildDate>Sun, 29 Jan 2012 18:46:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Secure-Mail: Waiting for Review</title>
		<link>http://www.x2on.de/2011/04/24/secure-mail-waiting-for-review/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=secure-mail-waiting-for-review</link>
		<comments>http://www.x2on.de/2011/04/24/secure-mail-waiting-for-review/#comments</comments>
		<pubDate>Sun, 24 Apr 2011 16:30:29 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[S/MIME]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[TLS]]></category>
		<category><![CDATA[X.509]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=789</guid>
		<description><![CDATA[With Secure-Mail you can read S/MIME encrypted mails directly from Mail.app and send encrypted S/MIME mails with SMTP. The Version 1.0 is now submitted to the App Store. Current Status: Waiting for Review UPDATE 2011-04-28: The App is now ready for download: http://www.x2on.de/2011/04/28/secure-mail-is-ready-for-download-on-apple-app-store/ Thanks for your help at the beta-test. Some screenshot from the final 1.0:]]></description>
			<content:encoded><![CDATA[<p>With Secure-Mail you can read S/MIME encrypted mails directly from Mail.app and send encrypted S/MIME mails with SMTP.</p>
<p>The Version 1.0 is now submitted to the App Store.<br />
<strong>Current Status:</strong> Waiting for Review</p>
<p><strong>UPDATE 2011-04-28:</strong> The App is now ready for download: <a href="http://www.x2on.de/2011/04/28/secure-mail-is-ready-for-download-on-apple-app-store/">http://www.x2on.de/2011/04/28/secure-mail-is-ready-for-download-on-apple-app-store/</a></p>
<p>Thanks for your help at the <a href="http://www.x2on.de/2011/04/01/secure-mail-beta-test-smime-on-ios-with-openssl/">beta-test</a>.</p>
<p><a href="http://www.x2on.de/wp-content/uploads/2011/04/Review.png"><img class="alignnone size-full wp-image-791" title="Review" src="http://www.x2on.de/wp-content/uploads/2011/04/Review.png" alt="" width="389" height="194" /></a></p>
<h3>Some screenshot from the final 1.0:</h3>
<h3><a href="http://www.x2on.de/wp-content/uploads/2011/04/1.png"><img class="alignnone size-medium wp-image-794" title="1" src="http://www.x2on.de/wp-content/uploads/2011/04/1-159x300.png" alt="" width="159" height="300" /></a><a href="http://www.x2on.de/wp-content/uploads/2011/04/2.png"><img class="alignnone size-medium wp-image-795" title="2" src="http://www.x2on.de/wp-content/uploads/2011/04/2-159x300.png" alt="" width="159" height="300" /></a><a href="http://www.x2on.de/wp-content/uploads/2011/04/3.png"><img class="alignnone size-medium wp-image-796" title="3" src="http://www.x2on.de/wp-content/uploads/2011/04/3-159x300.png" alt="" width="159" height="300" /></a><a href="http://www.x2on.de/wp-content/uploads/2011/04/4.png"><img class="alignnone size-medium wp-image-797" title="4" src="http://www.x2on.de/wp-content/uploads/2011/04/4-159x300.png" alt="" width="159" height="300" /></a><a href="http://www.x2on.de/wp-content/uploads/2011/04/5.png"><img class="alignnone size-medium wp-image-798" title="5" src="http://www.x2on.de/wp-content/uploads/2011/04/5-159x300.png" alt="" width="159" height="300" /></a></h3>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2011/04/24/secure-mail-waiting-for-review/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PolarSSL for iOS (iPhone, iPad and iPod Touch)</title>
		<link>http://www.x2on.de/2011/04/08/polarssl-for-ios-iphone-ipad-and-ipod-touch/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=polarssl-for-ios-iphone-ipad-and-ipod-touch</link>
		<comments>http://www.x2on.de/2011/04/08/polarssl-for-ios-iphone-ipad-and-ipod-touch/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 10:19:39 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[S/MIME]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[TLS]]></category>
		<category><![CDATA[X.509]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=756</guid>
		<description><![CDATA[This is a tutorial for using self-compiled builds of the PolarSSL-library for iOS. PolarSSL is a light-weight open source cryptographic and SSL/TLS library written in C. 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. [...]]]></description>
			<content:encoded><![CDATA[<p>This is a tutorial for using self-compiled builds of the PolarSSL-library for iOS.</p>
<p>PolarSSL is a light-weight open source cryptographic and SSL/TLS library written in C.</p>
<p>You can build apps with XCode and the official SDK from Apple with this.<br />
I also made a small example-app for using the libraries with XCode and the iPhone/iPhone-Simulator.<br />
You can also download the precompiled PolarSSL-library (0.14.3).</p>
<p>You can get the scripts and the sourcecode here: <a href="https://github.com/x2on/PolarSSL-for-iOS">https://github.com/x2on/PolarSSL-for-iOS</a></p>
<p>&nbsp;</p>
<p><a href="http://www.x2on.de/wp-content/uploads/2011/04/PolarSSL-for-iOS.png"><img class="alignnone size-medium wp-image-757" title="PolarSSL-for-iOS" src="http://www.x2on.de/wp-content/uploads/2011/04/PolarSSL-for-iOS-159x300.png" alt="" width="159" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2011/04/08/polarssl-for-ios-iphone-ipad-and-ipod-touch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update: GnuTLS-for-iOS updated to GnuTLS 2.12.0</title>
		<link>http://www.x2on.de/2011/03/27/update-gnutls-for-ios-updated-to-gnutls-2-12-0/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=update-gnutls-for-ios-updated-to-gnutls-2-12-0</link>
		<comments>http://www.x2on.de/2011/03/27/update-gnutls-for-ios-updated-to-gnutls-2-12-0/#comments</comments>
		<pubDate>Sun, 27 Mar 2011 15:50:44 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[libgcrypt]]></category>
		<category><![CDATA[libgpg-error]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[S/MIME]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[TLS]]></category>
		<category><![CDATA[X.509]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=743</guid>
		<description><![CDATA[GnuTLS 2.12.0 is released and i updated the GnuTLS-Libraries for iPhone/iPod Touch. You can get it at https://github.com/x2on/GnuTLS-for-iOS &#160;]]></description>
			<content:encoded><![CDATA[<p>GnuTLS 2.12.0 is released and i updated the GnuTLS-Libraries for iPhone/iPod Touch.</p>
<p>You can get it at <a href="http://github.com/x2on/OpenSSL-for-iPhone">https://github.com/x2on/GnuTLS-for-iOS</a></p>
<p><a href="http://www.x2on.de/wp-content/uploads/2011/02/GnuTLS.png"><img class="alignnone size-medium wp-image-720" title="GnuTLS" src="http://www.x2on.de/wp-content/uploads/2011/02/GnuTLS-159x300.png" alt="" width="159" height="300" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2011/03/27/update-gnutls-for-ios-updated-to-gnutls-2-12-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update: OpenSSL 1.0.0d Libraries for iPhone iPod Touch iPad</title>
		<link>http://www.x2on.de/2011/02/08/update-openssl-1-0-0d-libraries-for-iphone-ipod-touch-ipad/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=update-openssl-1-0-0d-libraries-for-iphone-ipod-touch-ipad</link>
		<comments>http://www.x2on.de/2011/02/08/update-openssl-1-0-0d-libraries-for-iphone-ipod-touch-ipad/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 20:36:14 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[S/MIME]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[TLS]]></category>
		<category><![CDATA[X.509]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=734</guid>
		<description><![CDATA[OpenSSL 1.0.0d is released and i updated the OpenSSL-Libraries for iPhone/iPod Touch. You can get it at http://github.com/x2on/OpenSSL-for-iPhone]]></description>
			<content:encoded><![CDATA[<p>OpenSSL 1.0.0d is released and i updated the OpenSSL-Libraries for iPhone/iPod Touch. You can get it at <a href="http://github.com/x2on/OpenSSL-for-iPhone">http://github.com/x2on/OpenSSL-for-iPhone</a></p>
<p><a href="http://www.x2on.de/wp-content/uploads/2010/12/OpenSSL-for-iOS.png"><img class="alignnone size-medium wp-image-681" title="OpenSSL-for-iOS" src="http://www.x2on.de/wp-content/uploads/2010/12/OpenSSL-for-iOS-159x300.png" alt="" width="159" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2011/02/08/update-openssl-1-0-0d-libraries-for-iphone-ipod-touch-ipad/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GnuTLS for iOS (iPhone and iPad)</title>
		<link>http://www.x2on.de/2011/02/01/gnutls-for-ios-iphone-and-ipad/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=gnutls-for-ios-iphone-and-ipad</link>
		<comments>http://www.x2on.de/2011/02/01/gnutls-for-ios-iphone-and-ipad/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 14:28:27 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[GnuTLS]]></category>
		<category><![CDATA[libgcrypt]]></category>
		<category><![CDATA[libgpg-error]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[TLS]]></category>
		<category><![CDATA[X.509]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=719</guid>
		<description><![CDATA[This is a tutorial for using self-compiled builds of the GnuTLS-library for iOS. 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 GnuTLS-library (2.10.4). Enjoy GnuTLS on the iPhone! [...]]]></description>
			<content:encoded><![CDATA[<p>This is a tutorial for using self-compiled builds of the GnuTLS-library for iOS. 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 GnuTLS-library (2.10.4).</p>
<p>Enjoy GnuTLS on the iPhone!<br />
<span id="more-719"></span><br />
I have made an iOS 4.2 XCode Project with GnuTLS 2.10.4 Libaries. The examples uses the MD5-algorithm to calculate an md5 from an UITextfield.</p>
<p>You can get the scripts and the sourcecode here: <a href="https://github.com/x2on/GnuTLS-for-iOS">https://github.com/x2on/GnuTLS-for-iOS</a></p>
<p><a href="http://www.x2on.de/wp-content/uploads/2011/02/GnuTLS.png"><img class="alignnone size-medium wp-image-720" title="GnuTLS" src="http://www.x2on.de/wp-content/uploads/2011/02/GnuTLS-159x300.png" alt="" width="159" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2011/02/01/gnutls-for-ios-iphone-and-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: Script for building OpenSSL for iOS (iPhone/iPad)</title>
		<link>http://www.x2on.de/2010/12/16/tutorial-script-for-building-openssl-for-ios-iphoneipad/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tutorial-script-for-building-openssl-for-ios-iphoneipad</link>
		<comments>http://www.x2on.de/2010/12/16/tutorial-script-for-building-openssl-for-ios-iphoneipad/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 19:13:54 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Certificates]]></category>
		<category><![CDATA[Encryption]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[S/MIME]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[TLS]]></category>
		<category><![CDATA[X.509]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=696</guid>
		<description><![CDATA[Related to my posts http://www.x2on.de/2010/02/01/tutorial-iphone-app-with-compiled-openssl-library/ and http://www.x2on.de/2010/07/13/tutorial-iphone-app-with-compiled-openssl-1-0-0a-library/ i created a buildscript for building OpenSSL for iOS (iPhone/iPad). You can get it here: https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh Source: #!/bin/sh &#160; # Automatic build script for libssl and libcrypto # for iPhoneOS and iPhoneSimulator # # Created by Felix Schulze on 16.12.10. # Copyright 2010 Felix Schulze. All rights reserved. [...]]]></description>
			<content:encoded><![CDATA[<p>Related to my posts <a href="http://www.x2on.de/2010/02/01/tutorial-iphone-app-with-compiled-openssl-library/">http://www.x2on.de/2010/02/01/tutorial-iphone-app-with-compiled-openssl-library/</a> and <a href="http://www.x2on.de/2010/07/13/tutorial-iphone-app-with-compiled-openssl-1-0-0a-library/">http://www.x2on.de/2010/07/13/tutorial-iphone-app-with-compiled-openssl-1-0-0a-library/</a> i created a buildscript for building OpenSSL for iOS (iPhone/iPad).</p>
<p>You can get it here: <a href="https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh">https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh</a></p>
<p><span id="more-696"></span><br />
<strong>Source:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#  Automatic build script for libssl and libcrypto </span>
<span style="color: #666666; font-style: italic;">#  for iPhoneOS and iPhoneSimulator</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#  Created by Felix Schulze on 16.12.10.</span>
<span style="color: #666666; font-style: italic;">#  Copyright 2010 Felix Schulze. All rights reserved.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#  Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span>
<span style="color: #666666; font-style: italic;">#  you may not use this file except in compliance with the License.</span>
<span style="color: #666666; font-style: italic;">#  You may obtain a copy of the License at</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#  http://www.apache.org/licenses/LICENSE-2.0</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#  Unless required by applicable law or agreed to in writing, software</span>
<span style="color: #666666; font-style: italic;">#  distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span>
<span style="color: #666666; font-style: italic;">#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<span style="color: #666666; font-style: italic;">#  See the License for the specific language governing permissions and</span>
<span style="color: #666666; font-style: italic;">#  limitations under the License.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">###########################################################################</span>
<span style="color: #666666; font-style: italic;">#  Change values here													  #</span>
<span style="color: #666666; font-style: italic;">#																		  #</span>
<span style="color: #007800;">VERSION</span>=<span style="color: #ff0000;">&quot;1.0.0c&quot;</span>													      <span style="color: #666666; font-style: italic;">#</span>
<span style="color: #007800;">SDKVERSION</span>=<span style="color: #ff0000;">&quot;4.2&quot;</span>														  <span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#																		  #</span>
<span style="color: #666666; font-style: italic;">###########################################################################</span>
<span style="color: #666666; font-style: italic;">#																		  #</span>
<span style="color: #666666; font-style: italic;"># Don't change anything under this line!								  #</span>
<span style="color: #666666; font-style: italic;">#																		  #</span>
<span style="color: #666666; font-style: italic;">###########################################################################</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #007800;">CURRENTPATH</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">pwd</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #660033;">-e</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-e</span> openssl-<span style="color: #800000;">${VERSION}</span>.tar.gz <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Downloading openssl-<span style="color: #007800;">${VERSION}</span>.tar.gz&quot;</span>
    curl <span style="color: #660033;">-O</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.openssl.org<span style="color: #000000; font-weight: bold;">/</span>source<span style="color: #000000; font-weight: bold;">/</span>openssl-<span style="color: #800000;">${VERSION}</span>.tar.gz
<span style="color: #000000; font-weight: bold;">else</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Using openssl-<span style="color: #007800;">${VERSION}</span>.tar.gz&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${CURRENTPATH}</span>/src&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxf openssl-<span style="color: #800000;">${VERSION}</span>.tar.gz <span style="color: #660033;">-C</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${CURRENTPATH}</span>/src&quot;</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${CURRENTPATH}</span>/src/openssl-<span style="color: #007800;">${VERSION}</span>&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">############</span>
<span style="color: #666666; font-style: italic;"># iPhone Simulator</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Building openssl for iPhoneSimulator <span style="color: #007800;">${SDKVERSION}</span> i386&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Please stand by...&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">CC</span>=<span style="color: #ff0000;">&quot;/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -arch i386&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${CURRENTPATH}</span>/bin/iPhoneSimulator<span style="color: #007800;">${SDKVERSION}</span>.sdk&quot;</span>
&nbsp;
<span style="color: #007800;">LOG</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${CURRENTPATH}</span>/bin/iPhoneSimulator<span style="color: #007800;">${SDKVERSION}</span>.sdk/build-openssl-<span style="color: #007800;">${VERSION}</span>.log&quot;</span>
&nbsp;
.<span style="color: #000000; font-weight: bold;">/</span>configure BSD-generic32 <span style="color: #660033;">--openssldir</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${CURRENTPATH}</span>/bin/iPhoneSimulator<span style="color: #007800;">${SDKVERSION}</span>.sdk&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${LOG}</span>&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
<span style="color: #666666; font-style: italic;"># add -isysroot to CC=</span>
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-ie</span> <span style="color: #ff0000;">&quot;s!^CFLAG=!CFLAG=-isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator<span style="color: #007800;">${SDKVERSION}</span>.sdk !&quot;</span> <span style="color: #ff0000;">&quot;Makefile&quot;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${LOG}</span>&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${LOG}</span>&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> clean <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${LOG}</span>&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
<span style="color: #666666; font-style: italic;">#############</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#############</span>
<span style="color: #666666; font-style: italic;"># iPhoneOS armv6</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Building openssl for iPhoneOS <span style="color: #007800;">${SDKVERSION}</span> armv6&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Please stand by...&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">CC</span>=<span style="color: #ff0000;">&quot;/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -arch armv6&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${CURRENTPATH}</span>/bin/iPhoneOS<span style="color: #007800;">${SDKVERSION}</span>-armv6.sdk&quot;</span>
&nbsp;
<span style="color: #007800;">LOG</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${CURRENTPATH}</span>/bin/iPhoneOS<span style="color: #007800;">${SDKVERSION}</span>-armv6.sdk/build-openssl-<span style="color: #007800;">${VERSION}</span>.log&quot;</span>
&nbsp;
.<span style="color: #000000; font-weight: bold;">/</span>configure BSD-generic32 <span style="color: #660033;">--openssldir</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${CURRENTPATH}</span>/bin/iPhoneOS<span style="color: #007800;">${SDKVERSION}</span>-armv6.sdk&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${LOG}</span>&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-ie</span> <span style="color: #ff0000;">&quot;s!^CFLAG=!CFLAG=-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS<span style="color: #007800;">${SDKVERSION}</span>.sdk !&quot;</span> <span style="color: #ff0000;">&quot;Makefile&quot;</span>
<span style="color: #666666; font-style: italic;"># remove sig_atomic for iPhoneOS</span>
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-ie</span> <span style="color: #ff0000;">&quot;s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!&quot;</span> <span style="color: #ff0000;">&quot;crypto/ui/ui_openssl.c&quot;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${LOG}</span>&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${LOG}</span>&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> clean <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${LOG}</span>&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
<span style="color: #666666; font-style: italic;">#############</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#############</span>
<span style="color: #666666; font-style: italic;"># iPhoneOS armv7</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Building openssl for iPhoneOS <span style="color: #007800;">${SDKVERSION}</span> armv7&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Please stand by...&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">CC</span>=<span style="color: #ff0000;">&quot;/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -arch armv7&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${CURRENTPATH}</span>/bin/iPhoneOS<span style="color: #007800;">${SDKVERSION}</span>-armv7.sdk&quot;</span>
&nbsp;
<span style="color: #007800;">LOG</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${CURRENTPATH}</span>/bin/iPhoneOS<span style="color: #007800;">${SDKVERSION}</span>-armv7.sdk/build-openssl-<span style="color: #007800;">${VERSION}</span>.log&quot;</span>
&nbsp;
&nbsp;
.<span style="color: #000000; font-weight: bold;">/</span>configure BSD-generic32 <span style="color: #660033;">--openssldir</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${CURRENTPATH}</span>/bin/iPhoneOS<span style="color: #007800;">${SDKVERSION}</span>-armv7.sdk&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${LOG}</span>&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-ie</span> <span style="color: #ff0000;">&quot;s!^CFLAG=!CFLAG=-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS<span style="color: #007800;">${SDKVERSION}</span>.sdk !&quot;</span> <span style="color: #ff0000;">&quot;Makefile&quot;</span>
<span style="color: #666666; font-style: italic;"># remove sig_atomic for iPhoneOS</span>
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-ie</span> <span style="color: #ff0000;">&quot;s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!&quot;</span> <span style="color: #ff0000;">&quot;crypto/ui/ui_openssl.c&quot;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${LOG}</span>&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${LOG}</span>&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> clean <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${LOG}</span>&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
<span style="color: #666666; font-style: italic;">#############</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Build library...&quot;</span>
lipo <span style="color: #660033;">-create</span> <span style="color: #800000;">${CURRENTPATH}</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>iPhoneSimulator<span style="color: #800000;">${SDKVERSION}</span>.sdk<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libssl.a <span style="color: #800000;">${CURRENTPATH}</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>iPhoneOS<span style="color: #800000;">${SDKVERSION}</span>-armv6.sdk<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libssl.a <span style="color: #800000;">${CURRENTPATH}</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>iPhoneOS<span style="color: #800000;">${SDKVERSION}</span>-armv7.sdk<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libssl.a <span style="color: #660033;">-output</span> <span style="color: #800000;">${CURRENTPATH}</span><span style="color: #000000; font-weight: bold;">/</span>libssl.a
&nbsp;
lipo <span style="color: #660033;">-create</span> <span style="color: #800000;">${CURRENTPATH}</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>iPhoneSimulator<span style="color: #800000;">${SDKVERSION}</span>.sdk<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libcrypto.a <span style="color: #800000;">${CURRENTPATH}</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>iPhoneOS<span style="color: #800000;">${SDKVERSION}</span>-armv6.sdk<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libcrypto.a <span style="color: #800000;">${CURRENTPATH}</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>iPhoneOS<span style="color: #800000;">${SDKVERSION}</span>-armv7.sdk<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libcrypto.a <span style="color: #660033;">-output</span> <span style="color: #800000;">${CURRENTPATH}</span><span style="color: #000000; font-weight: bold;">/</span>libcrypto.a
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #800000;">${CURRENTPATH}</span><span style="color: #000000; font-weight: bold;">/</span>include
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-R</span> <span style="color: #800000;">${CURRENTPATH}</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>iPhoneSimulator<span style="color: #800000;">${SDKVERSION}</span>.sdk<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>openssl <span style="color: #800000;">${CURRENTPATH}</span><span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Building done.&quot;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2010/12/16/tutorial-script-for-building-openssl-for-ios-iphoneipad/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Update: OpenSSL 1.0.0c Libraries for iPhone iPod Touch iPad</title>
		<link>http://www.x2on.de/2010/12/04/update-openssl-1-0-0c-libraries-for-iphone-ipod-touch-ipad/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=update-openssl-1-0-0c-libraries-for-iphone-ipod-touch-ipad</link>
		<comments>http://www.x2on.de/2010/12/04/update-openssl-1-0-0c-libraries-for-iphone-ipod-touch-ipad/#comments</comments>
		<pubDate>Sat, 04 Dec 2010 12:15:40 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[TLS]]></category>
		<category><![CDATA[X.509]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=680</guid>
		<description><![CDATA[OpenSSL 1.0.0c is released and i updated the OpenSSL-Libraries for iPhone/iPod Touch. I also did some GUI-Improvements for easier understanding. You can get it at http://github.com/x2on/OpenSSL-for-iPhone]]></description>
			<content:encoded><![CDATA[<p>OpenSSL 1.0.0c is released and i updated the OpenSSL-Libraries for iPhone/iPod Touch. I also did some GUI-Improvements for easier understanding. You can get it at <a href="http://github.com/x2on/OpenSSL-for-iPhone">http://github.com/x2on/OpenSSL-for-iPhone</a></p>
<p><a href="http://www.x2on.de/wp-content/uploads/2010/12/OpenSSL-for-iOS.png"><img class="alignnone size-medium wp-image-681" title="OpenSSL-for-iOS" src="http://www.x2on.de/wp-content/uploads/2010/12/OpenSSL-for-iOS-159x300.png" alt="" width="159" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2010/12/04/update-openssl-1-0-0c-libraries-for-iphone-ipod-touch-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update: OpenSSL 1.0.0b Libraries for iPhone iPod Touch iPad</title>
		<link>http://www.x2on.de/2010/11/16/update-openssl-1-0-0b-libraries-for-iphone-ipod-touch-ipad/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=update-openssl-1-0-0b-libraries-for-iphone-ipod-touch-ipad</link>
		<comments>http://www.x2on.de/2010/11/16/update-openssl-1-0-0b-libraries-for-iphone-ipod-touch-ipad/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 18:30:44 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[TLS]]></category>
		<category><![CDATA[X.509]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=676</guid>
		<description><![CDATA[OpenSSL 1.0.0b is released and i updated the OpenSSL-Libraries for iPhone/iPod Touch. You can get it at http://github.com/x2on/OpenSSL-for-iPhone]]></description>
			<content:encoded><![CDATA[<p>OpenSSL 1.0.0b is released and i updated the OpenSSL-Libraries for iPhone/iPod Touch. You can get it at <a href="http://github.com/x2on/OpenSSL-for-iPhone" target="_blank">http://github.com/x2on/OpenSSL-for-iPhone</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2010/11/16/update-openssl-1-0-0b-libraries-for-iphone-ipod-touch-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: iPhone App with compiled OpenSSL 1.0.0a Library</title>
		<link>http://www.x2on.de/2010/07/13/tutorial-iphone-app-with-compiled-openssl-1-0-0a-library/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tutorial-iphone-app-with-compiled-openssl-1-0-0a-library</link>
		<comments>http://www.x2on.de/2010/07/13/tutorial-iphone-app-with-compiled-openssl-1-0-0a-library/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 17:22:25 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[TLS]]></category>
		<category><![CDATA[X.509]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=598</guid>
		<description><![CDATA[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 (1.0.0a). This tutorial works with [...]]]></description>
			<content:encoded><![CDATA[<p>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 (1.0.0a).<br />
<span id="more-598"></span></p>
<p>This tutorial works with OpenSSL 1.0.0a and Xcode 3.2.3 with iOS 4.</p>
<p><strong>Update:</strong> Script for automatic building OpenSSL (currently 1.0.0d) for iOS: <a href="http://www.x2on.de/2010/12/16/tutorial-script-for-building-openssl-for-ios-iphoneipad/">http://www.x2on.de/2010/12/16/tutorial-script-for-building-openssl-for-ios-iphoneipad/</a></p>
<p>You can find the tutorial for OpenSSL 0.9.8 at <a href="http://www.x2on.de/2010/02/01/tutorial-iphone-app-with-compiled-openssl-library/">http://www.x2on.de/2010/02/01/tutorial-iphone-app-with-compiled-openssl-library/</a></p>
<p>You can get the Source of the example app with compiled OpenSSL at <a href="http://github.com/x2on/OpenSSL-for-iPhone" target="_blank">http://github.com/x2on/OpenSSL-for-iPhone</a></p>
<h3>Create OpenSSL Libary:</h3>
<p>Download OpenSSL Sourcecode<br />
Change in crypto/ui/ui_openssl.c</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #993333;">static</span> <span style="color: #993333;">volatile</span> sig_atomic_t intr_signal<span style="color: #339933;">;</span></pre></div></div>

<p>to</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #993333;">static</span> <span style="color: #993333;">volatile</span> <span style="color: #993333;">int</span> intr_signal<span style="color: #339933;">;</span></pre></div></div>

<p>for preventing building error</p>
<h4>Build OpenSSL for i368 iPhoneSimulator:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> ssllibs
<span style="color: #7a0874; font-weight: bold;">cd</span> openssl-1.0.0a
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> openssl_armv6 openssl_armv7 openssl_i386
.<span style="color: #000000; font-weight: bold;">/</span>configure BSD-generic32 <span style="color: #660033;">--openssldir</span>=<span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/&lt;</span>username<span style="color: #000000; font-weight: bold;">&gt;/</span>openssl-1.0.0a<span style="color: #000000; font-weight: bold;">/</span>openssl_i386</pre></div></div>

<h5>Edit Makefile:</h5>
<p>Change CC = cc to:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">CC</span>= <span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>Platforms<span style="color: #000000; font-weight: bold;">/</span>iPhoneSimulator.platform<span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #660033;">-arch</span> i386</pre></div></div>

<p>Add as first item to CFLAG:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">-isysroot</span> <span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>Platforms<span style="color: #000000; font-weight: bold;">/</span>iPhoneSimulator.platform<span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>SDKs<span style="color: #000000; font-weight: bold;">/</span>iPhoneSimulator4.0.sdk</pre></div></div>

<h5>Build it:</h5>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Your libcrypto.a and libssl.a are in the folder openssl_i368/lib</p>
<h4>Build OpenSSL for armv6 iOS:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mv</span> openssl_i386 ..<span style="color: #000000; font-weight: bold;">/</span>ssllibs
<span style="color: #c20cb9; font-weight: bold;">make</span> clean
.<span style="color: #000000; font-weight: bold;">/</span>configure BSD-generic32 <span style="color: #660033;">--openssldir</span>=<span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/&lt;</span>username<span style="color: #000000; font-weight: bold;">&gt;/</span>openssl-1.0.0a<span style="color: #000000; font-weight: bold;">/</span>openssl_armv6</pre></div></div>

<h5>Edit Makefile:</h5>
<p>Change CC = cc to:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">CC</span>= <span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>Platforms<span style="color: #000000; font-weight: bold;">/</span>iPhoneOS.platform<span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #660033;">-arch</span> armv6</pre></div></div>

<p>Add as first item to CFLAG:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">-isysroot</span> <span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>Platforms<span style="color: #000000; font-weight: bold;">/</span>iPhoneOS.platform<span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>SDKs<span style="color: #000000; font-weight: bold;">/</span>iPhoneOS4.0.sdk</pre></div></div>

<h5>Build it:</h5>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Your libcrypto.a and libssl.a are in the folder openssl_armv6/lib</p>
<h4>Build OpenSSL for armv7 iOS:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mv</span> openssl_armv6 ..<span style="color: #000000; font-weight: bold;">/</span>ssllibs
<span style="color: #c20cb9; font-weight: bold;">make</span> clean
.<span style="color: #000000; font-weight: bold;">/</span>configure BSD-generic32 <span style="color: #660033;">--openssldir</span>=<span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/&lt;</span>username<span style="color: #000000; font-weight: bold;">&gt;/</span>openssl-1.0.0a<span style="color: #000000; font-weight: bold;">/</span>openssl_armv7</pre></div></div>

<h5>Edit Makefile:</h5>
<p>Change CC = cc to:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">CC</span>= <span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>Platforms<span style="color: #000000; font-weight: bold;">/</span>iPhoneOS.platform<span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #660033;">-arch</span> armv7</pre></div></div>

<p>Add as first item to CFLAG:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">-isysroot</span> <span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>Platforms<span style="color: #000000; font-weight: bold;">/</span>iPhoneOS.platform<span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>SDKs<span style="color: #000000; font-weight: bold;">/</span>iPhoneOS4.0.sdk</pre></div></div>

<h5>Build it:</h5>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Your libcrypto.a and libssl.a are in the folder openssl_armv7/lib</p>
<p>Create universal libs:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-r</span> openssl_armv7<span style="color: #000000; font-weight: bold;">/</span>include ..<span style="color: #000000; font-weight: bold;">/</span>ssllibs<span style="color: #000000; font-weight: bold;">/</span>
lipo <span style="color: #660033;">-create</span> ..<span style="color: #000000; font-weight: bold;">/</span>ssllibs<span style="color: #000000; font-weight: bold;">/</span>openssl_i386<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libcrypto.a ..<span style="color: #000000; font-weight: bold;">/</span>ssllibs<span style="color: #000000; font-weight: bold;">/</span>openssl_armv6<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libcrypto.a openssl_armv7<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libcrypto.a <span style="color: #660033;">-output</span> ..<span style="color: #000000; font-weight: bold;">/</span>ssllibs<span style="color: #000000; font-weight: bold;">/</span>libcrypto.a
lipo <span style="color: #660033;">-create</span> ..<span style="color: #000000; font-weight: bold;">/</span>ssllibs<span style="color: #000000; font-weight: bold;">/</span>openssl_i386<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libssl.a ..<span style="color: #000000; font-weight: bold;">/</span>ssllibs<span style="color: #000000; font-weight: bold;">/</span>openssl_armv6<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libssl.a openssl_armv7<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libssl.a <span style="color: #660033;">-output</span> ..<span style="color: #000000; font-weight: bold;">/</span>ssllibs<span style="color: #000000; font-weight: bold;">/</span>libssl.a</pre></div></div>

<h4>Edit your iPhone-XCode project:</h4>
<p>Copy the &#8220;include&#8221; folder from OpenSSL into your project-folder<br />
Copy the libcrypto.a and libssl.a files into your project-folder<br />
Drag the libcrypto.a and libssl.a files into your XCode Framework Folder-Tree<br />
Open the Build-Info from your &#8220;Target&#8221; (Righclick on Target &#8211; Get Info)<br />
Change <em>Library Search Paths</em> to</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$<span style="color: #7a0874; font-weight: bold;">&#40;</span>inherited<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$(SRCROOT)</span>&quot;</span></pre></div></div>

<p>Change <em>User Header Search Paths</em> to <em>include</em><br />
Activate <em>Always Search User Paths</em></p>
<p><strong>Enjoy OpenSSL on the iPhone!</strong></p>
<p>I have made an iOS 3.2/4.0 XCode Project with OpenSSL 1.0.0a libaries. The examples uses the MD5-algorithm to calculate an md5 hash from an UITextfield.</p>
<p><strong>Download:</strong> <a href="http://github.com/x2on/OpenSSL-for-iPhone" target="_blank">http://github.com/x2on/OpenSSL-for-iPhone</a></p>
<p><strong>Disclaimer: Use this at your own risk.</strong></p>
<p><strong>Links: </strong></p>
<ul>
<li><a href="http://www.therareair.com/2009/01/01/tutorial-how-to-compile-openssl-for-the-iphone/" target="_blank">http://www.therareair.com/2009/01/01/tutorial-how-to-compile-openssl-for-the-iphone/</a></li>
<li><a href="http://www.openssl.org/" target="_blank">http://www.openssl.org/</a></li>
<li><a href="http://cocoawithlove.com/2009/06/base64-encoding-options-on-mac-and.html" target="_blank">http://cocoawithlove.com/2009/06/base64-encoding-options-on-mac-and.html</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2010/07/13/tutorial-iphone-app-with-compiled-openssl-1-0-0a-library/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Update: OpenSSL 1.0.0a Libraries for iPhone iPod Touch iPad with iOS4</title>
		<link>http://www.x2on.de/2010/06/30/update-openssl-1-0-0a-libraries-for-iphone-ipod-touch-ipad-with-ios4/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=update-openssl-1-0-0a-libraries-for-iphone-ipod-touch-ipad-with-ios4</link>
		<comments>http://www.x2on.de/2010/06/30/update-openssl-1-0-0a-libraries-for-iphone-ipod-touch-ipad-with-ios4/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 19:01:01 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[TLS]]></category>
		<category><![CDATA[X.509]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=600</guid>
		<description><![CDATA[OpenSSL 1.0.0a is released and i updated the OpenSSL-Libraries for iPhone/iPod Touch. Now the Library is build with the iOS4.0 base SDK and Xcode 3.2.3. You can use it now with the iPad too. You can get it at http://github.com/x2on/OpenSSL-for-iPhone]]></description>
			<content:encoded><![CDATA[<p>OpenSSL 1.0.0a is released and i updated the OpenSSL-Libraries for iPhone/iPod Touch. Now the Library is build with the iOS4.0 base SDK and Xcode 3.2.3. You can use it now with the iPad too. You can get it at http://github.com/x2on/OpenSSL-for-iPhone</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2010/06/30/update-openssl-1-0-0a-libraries-for-iphone-ipod-touch-ipad-with-ios4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

