Hi Nathan,<div><br></div><div>You might be able to cut down the size of the openssl libraries by trimming out some features that would go unused by the application, i.e. via the configure systems options like no-asm, no-krb5, no-<cipher> etc. Alternately, if you have a custom build setup, you may be able to do the same via defines like NO_IDEA. Also, 8 MB sounds a bit large. If memory serves, the last time I looked at a single architecture openssl build for armv6, the resulting archives were just north 3 MB combined. Is openssl a debug build, or does LibEvent account for a large portion of that 8MB?</div>

<div><br></div><div>Cheers,</div><div>Stephen</div><div><br></div><div><br></div><div><div class="gmail_quote">On Sun, Jan 15, 2012 at 9:51 AM, Nathan of Guardian <span dir="ltr"><<a href="mailto:nathan@guardianproject.info">nathan@guardianproject.info</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Any thoughts on the issue below would be much appreciated. If we turn on<br>
installLocation="auto" we can allow for external storage, but then we<br>
have to limit our low end device support to Android 2.2/platform-8.<br>
<br>
-------- Original Message --------<br>
Subject: [tor-dev] Size issues with Orbot statically linking OpenSSL<br>
Date: Sun, 15 Jan 2012 09:50:06 -0500<br>
From: Nathan Freitas <<a href="mailto:nathan@freitas.net">nathan@freitas.net</a>><br>
Reply-To: <a href="mailto:tor-dev@lists.torproject.org">tor-dev@lists.torproject.org</a><br>
To: <a href="mailto:tor-dev@lists.torproject.org">tor-dev@lists.torproject.org</a><br>
<br>
With the recent problems related to SSLv3 with versions of OpenSSL less<br>
than 1.0.0f, we have been investigating how to deal with this on Android<br>
for Orbot. Historically, we have used the version of OpenSSL provided by<br>
the Android device itself, which has ranged from 0.9.8 to 1.0.0e (the<br>
latest on ICS 4.0).<br>
<br>
We have now produced a build of OpenSSL 1.0.0f with the necessary<br>
Android patches, and statically linked this into the Tor binary we ship<br>
inside of Orbot. (We already do this for LibEvent, since that is not<br>
included in Android itself). With both OpenSSL and LibEvent linked, the<br>
Tor binary increases from 3MB to about 8MB.<br>
<br>
8MB is not terrible, but once you include the Orbot app, Privoxy and<br>
other files, we are getting into the 10MB+ range.<br>
<br>
I think this is all fine, and we can enable users to run the app from a<br>
secured partition on their external storage, but I did just want to run<br>
this by all of you to see if there are any options for limiting the size<br>
of libssl.a and libcrypto.a, and the resulting Tor binary.<br>
<br>
Thx!<br>
<br>
+n8fr8<br>
_______________________________________________<br>
tor-dev mailing list<br>
<a href="mailto:tor-dev@lists.torproject.org">tor-dev@lists.torproject.org</a><br>
<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev</a><br>
_______________________________________________<br>
Guardian-dev mailing list<br>
<br>
Post: <a href="mailto:Guardian-dev@lists.mayfirst.org">Guardian-dev@lists.mayfirst.org</a><br>
List info: <a href="https://lists.mayfirst.org/mailman/listinfo/guardian-dev" target="_blank">https://lists.mayfirst.org/mailman/listinfo/guardian-dev</a><br>
<br>
To Unsubscribe<br>
        Send email to:  <a href="mailto:Guardian-dev-unsubscribe@lists.mayfirst.org">Guardian-dev-unsubscribe@lists.mayfirst.org</a><br>
        Or visit: <a href="https://lists.mayfirst.org/mailman/options/guardian-dev/sjlombardo%40zetetic.net" target="_blank">https://lists.mayfirst.org/mailman/options/guardian-dev/sjlombardo%40zetetic.net</a><br>
<br>
You are subscribed as: <a href="mailto:sjlombardo@zetetic.net">sjlombardo@zetetic.net</a><br>
</blockquote></div><br></div>