blob: cf476f2875694f8cbe838d1ef44a96d7a90cf256 [file] [log] [blame]
Nagendra Modadugue45f1062009-09-30 11:36:48 -07001OpenSSL on the Android platform.
The Android Open Source Project656d9c72009-03-03 19:30:25 -08002---
3
Nagendra Modadugue45f1062009-09-30 11:36:48 -07004The code in this directory is based on $OPENSSL_VERSION in the file
5openssl.config, and some backported OpenSSL code in crypto/0.9.9-dev.
The Android Open Source Project656d9c72009-03-03 19:30:25 -08006
Nagendra Modadugue45f1062009-09-30 11:36:48 -07007Porting New Versions of OpenSSL.
8--
The Android Open Source Project656d9c72009-03-03 19:30:25 -08009
10The following steps are recommended for porting new OpenSSL versions.
11
Nagendra Modadugue45f1062009-09-30 11:36:48 -0700121) Retrieve the appropriate version of the OpenSSL source from
13 www.openssl.org/source (in tar.gz format)
The Android Open Source Project656d9c72009-03-03 19:30:25 -080014
Nagendra Modadugue45f1062009-09-30 11:36:48 -0700152) Update the variables in openssl.config as appropriate
The Android Open Source Project656d9c72009-03-03 19:30:25 -080016
Nagendra Modadugue45f1062009-09-30 11:36:48 -0700173) Run ./import_openssl.sh openssl-*.tar.gz
18
194) If there are any errors, then modify openssl.config, openssl.version
20 and patches in patches/ as appropriate. Repeat step 3.
21
225) From the root of the android source tree, build openssl. For
23 example, on the dream platform, run make
24 out/target/product/dream/obj/EXECUTABLES/openssl_intermediates/LINKED/openssl
25
26 If there are build errors, then patches/*.mk, openssl.config, or
27 android-config.mk may need updating.
The Android Open Source Project656d9c72009-03-03 19:30:25 -080028
29
Nagendra Modadugue45f1062009-09-30 11:36:48 -070030Optionally, check whether build flags (located in android-config.mk
31need to be updated. Doing this step will help ensure that the
32compiled library is appropriately optimized for speed and size. To
33update build flags:
The Android Open Source Project656d9c72009-03-03 19:30:25 -080034
Nagendra Modadugue45f1062009-09-30 11:36:48 -070035a) source openssl.config
36b) tar -zxf openssl-*.tar.gz
37c) cd openssl-*/
38d) ./Configure $CONFIGURE_ARGS
39e) examine Makefile and compare with ../android-config.mk
40f) modify ../openssl.config as appropriate and go to step 3) above.
The Android Open Source Project656d9c72009-03-03 19:30:25 -080041