No description, website, or topics provided.
C Perl Assembly C++ Shell eC
Switch branches/tags
wip-mips-ics-4.0.3_r1m4 upstream/0.9.8h mips-lp-5.1.1_r6.m3 mips-lp-5.1.1_r6.m2 mips-lp-5.1.0_r1.m1 mips-kk-4.4.2_r1.m1 mips-kk-4.4_r1.2.m1 mips-jb-4.3.1_r1.1.m3 mips-jb-4.3.1_r1.1.m2 mips-jb-4.3_r3.1.m1 mips-jb-4.3_r3.m1 mips-jb-4.2.2_r1 mips-jb-4.2.2_r1.m2 mips-jb-4.2.1_r1 mips-jb-4.1.2_r1m1 mips-jb-4.1.1_r2 mips-jb-4.1.1_r1 mips-ics-mr1-20120120 mips-ics-4.0.4_r1.1m6 mips-ics-4.0.4_r1.1m5 mips-ics-4.0.4_r1.1m4 mips-ics-4.0.3_r1m3 mips-ics-4.0.3_r1m2 mips-ics-4.0.1_r1m1 mips-gingerbread-r2 mips-gb-2.3.5_r1m3 mips-gb-2.3.5_r1m2 mips-gb-2.3.5_r1m1 mips-froyo-r10 mips-froyo-r9 mips-froyo-r8 mips-froyo-r7 mips-froyo-r6 mips-froyo-r5 mips-froyo-r4 mips-froyo-r3 mips-froyo-r2 mips-froyo-r2a mips-froyo-r1 mips-froyo-base ci20-lp-5.1.1_r6.m1 ci20-kk-4.4.2_r3.m1 ci20-kk-4.4.2_r2.m1 ci20-kk-4.4.2_r1.m1 android-sdk-tools_r7 android-sdk-tools_r6 android-sdk-tools_r5 android-sdk-tools_r4 android-sdk-tools_r3 android-sdk-tools_r2 android-sdk-2.3.4_r1 android-sdk-2.2_r2 android-sdk-2.2_r1 android-sdk-2.1_r1 android-sdk-2.0.1_r1 android-sdk-2.0.1-docs_r1 android-sdk-2.0_r1 android-sdk-1.6_r2 android-sdk-1.6_r1 android-sdk-1.6-docs_r1 android-sdk-1.5_r3 android-sdk-1.5_r1 android-sdk-1.5-pre android-cts-2.3_r3 android-cts-2.3_r2 android-cts-2.3_r1 android-cts-2.2_r6 android-cts-2.2_r5 android-cts-2.2_r4 android-cts-2.2_r3 android-cts-2.2_r2 android-cts-2.2_r1 android-cts-2.1_r5 android-cts-2.1_r4 android-cts-2.1_r3 android-cts-2.1_r2 android-adt-0.9.9 android-adt-0.9.8 android-2.3.4_r1 android-2.3.4_r0.9 android-2.3.3_r1.1 android-2.3.3_r1 android-2.3.3_r1a android-2.3.2_r1 android-2.3.1_r1 android-2.3_r1 android-2.2.2_r1 android-2.2.1_r2 android-2.2.1_r1 android-2.2_r1.3 android-2.2_r1.2 android-2.2_r1.1 android-2.2_r1 android-2.1_r2.1s android-2.1_r2.1p2 android-2.1_r2.1p android-2.1_r2 android-2.1_r1 android-2.0.1_r1 android-2.0_r1
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

OpenSSL on the Android platform.

The code in this directory is based on $OPENSSL_VERSION in the file
openssl.version. See patches/README for more information on how the
code differs from $OPENSSL_VERSION.

Porting New Versions of OpenSSL.

The following steps are recommended for porting new OpenSSL versions.

1) Retrieve the appropriate version of the OpenSSL source from (in openssl-*.tar.gz file). Check the PGP
   signature (found in matching openssl-*.tar.gz.asc file) with:

     gpg openssl-*.tar.gz.asc

   If the public key is not found, import the the one with the
   matching RSA key ID from, using:

     gpg --import # paste PGP public key block on stdin

2) Update the variables in openssl.config and openssl.version as appropriate.
   At the very least you will need to update the openssl.version.

3) Run:

     ./ import openssl-*.tar.gz

4) If there are any errors, then modify openssl.config, openssl.version
   and patches in patches/ as appropriate.  You might want to use:

     ./ regenerate patches/*.patch

   Repeat step 3.

5) Cleanup before building with:

     m -j16 clean-libcrypto clean-libssl clean-openssl clean-ssltest

6) Build openssl from the external/openssl directory with:

     mm -j16 snod && adb sync system

   If there are build errors, then patches/*.mk, openssl.config, or may need updating.

7) Run tests to make sure things are working:

     # Run local openssl tests
     (cd android.testssl/ && ./
     # Build and sync libcore tests
     (croot && cd libcore && mm -j16 snod && adb remount && adb sync)
     # Run tests from libcore
     (croot && vogar --classpath out/target/common/obj/JAVA_LIBRARIES/core-tests-support_intermediates/classes.jar --classpath out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/classes.jar
     # Run tests from Harmony
     (croot && vogar --classpath harmony_tests.jar
     # try an https website
     adb shell am start # confirm result in browser

     The vogar tool can be found externally at
     Within Google it can be run with ~dalvik-prebuild/vogar/bin/vogar

     harmony_tests.jar is built from Subversion
     Within Google it can be found at ~dalvik-prebuild/bin/harmony_tests.jar

     # You can also run openssl s_server as a test server on the device:
     adb push ./android.testssl/CAss.cnf /sdcard/CAss.cnf
     adb shell openssl req -config /sdcard/CAss.cnf -x509 -nodes -days 365 -subj '/C=US/ST=California/L=Mountain View/CN=localhost' -newkey rsa:1024 -keyout /sdcard/server.pem -out /sdcard/server.pem
     adb shell openssl s_server -cert /sdcard/server.pem -www -verify 1
     adb shell am start https://localhost:4433 # confirm result in browser

8) Do a full build before checking in:

     m -j16

Optionally, check whether build flags (located in
need to be updated.  Doing this step will help ensure that the
compiled library is appropriately optimized for speed and size.  To
update build flags:

a) source openssl.config
b) tar -zxf openssl-*.tar.gz
c) cd openssl-*/
d) ./Configure $CONFIGURE_ARGS
e) examine Makefile and compare with ../
f) modify ../openssl.config as appropriate and go to step 3) above.

Alternatively, ."/ import" now prints the
post-Configure Makefile for review before deleting in on import.