Skip to content

Merged with the latest openssl & builds against latest ndk-r8d toolchains #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 135 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
9bc062a
crypto: Add bn_const.c to makefile
Oct 26, 2010
d524efd
Move NativeCrypto dependencies on openssl internals to jsse.patch
bdcgoogle Nov 3, 2010
329adef
am bc0d6bd0: Merge/Ignore 42277b3c from open-source master
Nov 3, 2010
8be882e
add static to internal function
bdcgoogle Nov 4, 2010
43c12e3
Upgrade to openssl-1.0.0b
bdcgoogle Nov 16, 2010
bf9ac26
Patch OpenSSL to enable SPDY
kristianmonsen Nov 29, 2010
c1fd76c
Improved "Standard Names" JSSE compliance
bdcgoogle Nov 29, 2010
1537fcb
Patch for CVE-2010-3864
bdcgoogle Nov 30, 2010
976a034
Upgrade to openssl-1.0.0c
bdcgoogle Dec 4, 2010
bbb2e70
am 1537fcb0: Patch for CVE-2010-3864
bdcgoogle Dec 10, 2010
4805776
am bbb2e706: (-s ours) am 1537fcb0: Patch for CVE-2010-3864
bdcgoogle Dec 10, 2010
e6244f9
Update openssl ThirdPartyProject file to 1.0.0c
bdcgoogle Dec 10, 2010
a47aca7
Merge "Update openssl ThirdPartyProject file to 1.0.0c"
bdcgoogle Dec 10, 2010
4ce6a37
Add optional host version of openssl app
bdcgoogle Jan 11, 2011
8ec051a
Fix Mac build.
Feb 2, 2011
81c4de7
Upgrade to openssl-1.0.0d
bdcgoogle Feb 8, 2011
55f0e2c
Build static library for unbundled apps, and build with prebuilt NDK.
midodd Feb 25, 2011
386c1ab
Remove DECnet files
bdcgoogle Mar 10, 2011
f07bf9f
Include space for alignment in read buffer resize check
bdcgoogle Mar 10, 2011
a9b8457
am f07bf9fa: Include space for alignment in read buffer resize check
bdcgoogle Mar 11, 2011
3fe4d70
Include space for alignment in read buffer resize check
bdcgoogle Mar 10, 2011
db6bcc8
am 3fe4d704: Include space for alignment in read buffer resize check
bdcgoogle Mar 11, 2011
ec4fd11
am a9b84572: am f07bf9fa: Include space for alignment in read buffer …
bdcgoogle Mar 14, 2011
d55f58d
am ec4fd117: am a9b84572: am f07bf9fa: Include space for alignment in…
bdcgoogle Mar 14, 2011
841b213
Remove the simulator target from all makefiles.
Jul 12, 2011
9e0e631
Really unbundle libcrypto and libssl.
Jul 21, 2011
ee7afb3
Upgrade to openssl-1.0.0e
bdcgoogle Sep 6, 2011
50bef86
Initialise SSLv3 block cipher padding to zero.
bdcgoogle Nov 9, 2011
ce96fb2
Adjust SP before content is written below it.
Nov 29, 2011
7b476c4
Upgrade to openssl-1.0.0f
bdcgoogle Jan 4, 2012
7d3d122
Upgrade to openssl-1.0.0g
bdcgoogle Jan 19, 2012
c642ac3
Add engines back to build
kruton Feb 8, 2012
48ab0d9
Add cleanspec for engine change
kruton Feb 16, 2012
21c8414
Upgrade to openssl-1.0.0h
bdcgoogle Mar 12, 2012
b83a02d
From 67b1ae72527c9e173ace98e805e8b9c090455873 Mon Sep 17 00:00:00 2001
petar-jovanovic Feb 21, 2012
db16682
Merge "From 67b1ae72527c9e173ace98e805e8b9c090455873 Mon Sep 17 00:00…
bdcgoogle Mar 15, 2012
7f1d634
am db166823: Merge "From 67b1ae72527c9e173ace98e805e8b9c090455873 Mon…
bdcgoogle Mar 15, 2012
392aa7c
openssl-1.0.1 upgrade
bdcgoogle Mar 15, 2012
ed2ff7a
use client version when deciding whether to send supported signature …
bdcgoogle Mar 28, 2012
26674ba
Enable additional asm on arm
bdcgoogle Mar 31, 2012
243c891
Fix integer overflow in ASN.1 parsing functions.
bdcgoogle Apr 2, 2012
8dc607f
Move OpenSSL makefiles to one directory to avoid future patching issues
bdcgoogle Apr 8, 2012
a1a5710
openssl-1.0.1a upgrade
bdcgoogle Apr 19, 2012
f42d491
openssl-1.0.1b upgrade
bdcgoogle Apr 28, 2012
eb16853
openssl-1.0.1c upgrade
bdcgoogle May 10, 2012
f351c4b
Remove obsolete ThirdPartyProject.prop file.
enh-google May 15, 2012
9b4b062
Use OPENSSL_NO_HEARTBEATS for better wpa_supplicant interoperability
bdcgoogle Jul 26, 2012
d7ca72a
am 9b4b0620: Use OPENSSL_NO_HEARTBEATS for better wpa_supplicant inte…
bdcgoogle Jul 26, 2012
452bb43
Use OPENSSL_NO_HEARTBEATS for better wpa_supplicant interoperability
bdcgoogle Jul 26, 2012
2a9ba31
Merge "Use OPENSSL_NO_HEARTBEATS for better wpa_supplicant interopera…
bdcgoogle Jul 26, 2012
996ad4b
am 2a9ba314: Merge "Use OPENSSL_NO_HEARTBEATS for better wpa_supplica…
bdcgoogle Jul 26, 2012
bf98e5e
am 996ad4b5: am 2a9ba314: Merge "Use OPENSSL_NO_HEARTBEATS for better…
bdcgoogle Jul 26, 2012
8c93392
Retire LOCAL_NDK_VERSION.
Aug 14, 2012
2178392
[MIPS] Append private_ to AES_set_encrypt_key and AES_set_decrypt_key…
chrisdearman Aug 1, 2012
bb86948
Merge "[MIPS] Append private_ to AES_set_encrypt_key and AES_set_decr…
bdcgoogle Aug 16, 2012
1234736
am bb869488: Merge "[MIPS] Append private_ to AES_set_encrypt_key and…
bdcgoogle Aug 16, 2012
3e3ee21
am 12347361: am bb869488: Merge "[MIPS] Append private_ to AES_set_en…
bdcgoogle Aug 16, 2012
b4f245f
Fix OpenSSL build for the Windows SDK
benoitgoby Aug 21, 2012
96a090c
Fix OpenSSL build for the Windows SDK
benoitgoby Aug 21, 2012
1607b53
Merge "Fix OpenSSL build for the Windows SDK"
bdcgoogle Aug 22, 2012
3581857
am 1607b532: Merge "Fix OpenSSL build for the Windows SDK"
bdcgoogle Aug 22, 2012
68bc28d
am 35818570: am 1607b532: Merge "Fix OpenSSL build for the Windows SDK"
bdcgoogle Aug 23, 2012
4027893
Disable SSL compression
bdcgoogle Aug 29, 2012
fef450d
Merge "Disable SSL compression"
bdcgoogle Aug 30, 2012
eb39b60
am fef450d3: Merge "Disable SSL compression"
bdcgoogle Aug 30, 2012
05b4e2d
am eb39b600: am fef450d3: Merge "Disable SSL compression"
bdcgoogle Aug 30, 2012
c58cd0f
Enable openssl crypto optimizations for x86 platform
Sep 12, 2012
591d8da
Merge "Enable openssl crypto optimizations for x86 platform"
bdcgoogle Sep 12, 2012
945555b
am 591d8daf: Merge "Enable openssl crypto optimizations for x86 platf…
bdcgoogle Sep 12, 2012
1380211
am 945555bc: am 591d8daf: Merge "Enable openssl crypto optimizations …
bdcgoogle Sep 12, 2012
1d3c00a
Disable x86 assembly on darwin
bdcgoogle Sep 12, 2012
b73232f
Merge "Disable x86 assembly on darwin"
bdcgoogle Sep 12, 2012
13e2fdf
am b73232f0: Merge "Disable x86 assembly on darwin"
bdcgoogle Sep 12, 2012
0673126
am 13e2fdfa: am b73232f0: Merge "Disable x86 assembly on darwin"
bdcgoogle Sep 12, 2012
ba352ab
Remove references to obsolete ThirdPartyProject.prop
bdcgoogle Sep 19, 2012
9838b9f
Rename assembly files with .S extensions.
digit-android Oct 5, 2012
02675aa
Merge "Rename assembly files with .S extensions."
bdcgoogle Oct 5, 2012
5cbf3d1
am 02675aaa: Merge "Rename assembly files with .S extensions."
bdcgoogle Oct 5, 2012
34d5a28
am 5cbf3d15: am 02675aaa: Merge "Rename assembly files with .S extens…
bdcgoogle Oct 5, 2012
2c4d015
x86: Fix DT_TEXTREL in assembly code
Nov 5, 2012
13783d9
Merge "x86: Fix DT_TEXTREL in assembly code"
bdcgoogle Nov 6, 2012
ec5aff0
am 13783d99: Merge "x86: Fix DT_TEXTREL in assembly code"
bdcgoogle Nov 6, 2012
b86413f
Use NDK libraries for x86 and MIPS build.
Nov 13, 2012
cb1a4ed
Merge "Use NDK libraries for x86 and MIPS build."
bdcgoogle Nov 14, 2012
19d5d6f
Add x86 cpuid assembly file.
digit-android Dec 10, 2012
2077779
Add x86_64 assembly files.
digit-android Dec 10, 2012
6eda41c
Merge "Add x86 cpuid assembly file."
digit-android Dec 11, 2012
3f1584c
Merge "Add x86_64 assembly files."
digit-android Dec 11, 2012
e001f05
Only honor LOCAL_SDK_VERSION when building apps.
nickkral Dec 13, 2012
d37ef78
Merge "Only honor LOCAL_SDK_VERSION when building apps."
bdcgoogle Dec 14, 2012
45bcfbc
Add support for the TLS Channel ID extension.
Jan 16, 2013
3bcb2bf
Merge "Add support for the TLS Channel ID extension."
bdcgoogle Jan 16, 2013
f04b7b0
Remove small_records.patch in favor of SSL_MODE_RELEASE_BUFFERS
bdcgoogle Jan 16, 2013
410afec
Merge "Remove small_records.patch in favor of SSL_MODE_RELEASE_BUFFERS"
bdcgoogle Jan 17, 2013
153b100
Fix x86_64 assembly file generation.
digit-android Jan 23, 2013
f59fa74
Add patches/clang.patch to fix two minor Clang compiler errors.
digit-android Jan 23, 2013
0a1f3fb
Merge "Fix x86_64 assembly file generation."
digit-android Jan 23, 2013
2c88fd9
Merge "Add patches/clang.patch to fix two minor Clang compiler errors."
digit-android Jan 24, 2013
f6e8065
Fix recursive lock in X509_PUBKEY_get
digit-android Jan 24, 2013
b5aed27
Merge branch 'master' of https://android.googlesource.com/platform/ex…
neodp Jan 28, 2013
ebec738
Merge with master of platform/external/openssl (from https://android.…
neodp Jan 29, 2013
1df3a87
this config works fine with the latest ndk-r8d
neodp Jan 29, 2013
5fe1d66
updated README with new info about android openssl repo and what i did
neodp Jan 29, 2013
85dbb37
Add another missing x86_64 assembly file generation step.
digit-android Jan 24, 2013
de2ed6e
Merge "Fix recursive lock in X509_PUBKEY_get"
digit-android Jan 30, 2013
43c07da
Merge "Add another missing x86_64 assembly file generation step."
digit-android Feb 1, 2013
7fe2109
Remove stray ssl/Makefile
bdcgoogle Feb 2, 2013
4b0baa1
Merge "Remove stray ssl/Makefile"
bdcgoogle Feb 2, 2013
fa75fdb
CVE-2013-0169: Make CBC decoding constant time
bdcgoogle Feb 2, 2013
3ccf38e
Merge "CVE-2013-0169: Make CBC decoding constant time"
bdcgoogle Feb 4, 2013
04ef91b
openssl-1.0.1d upgrade
bdcgoogle Feb 5, 2013
d1bb51b
Merge "openssl-1.0.1d upgrade"
bdcgoogle Feb 5, 2013
d38060a
Fix failures when eng_dyn scans multiple directories
kruton Feb 8, 2013
d8b571b
Merge "Fix failures when eng_dyn scans multiple directories"
kruton Feb 8, 2013
eefface
openssl-1.0.1e upgrade
bdcgoogle Feb 11, 2013
b592e08
Merge "openssl-1.0.1e upgrade"
bdcgoogle Feb 11, 2013
76ab38e
Add missing patch file to openssl.config
digit-android Feb 19, 2013
1762a55
Convert ISO-8859-1 files to UTF-8.
digit-android Feb 19, 2013
fb21955
Merge "Add missing patch file to openssl.config"
digit-android Feb 19, 2013
3b70ce8
Merge "Convert ISO-8859-1 files to UTF-8."
digit-android Feb 19, 2013
9fbf99a
Auto-generate configuration flags.
digit-android Feb 19, 2013
03e9262
Merge "Auto-generate configuration flags."
digit-android Mar 5, 2013
365d7e8
Fix Clang build.
digit-android Mar 5, 2013
2b80108
Merge "Fix Clang build."
digit-android Mar 5, 2013
063cfe1
Move more build configuration to openssl.config
digit-android Feb 19, 2013
c1b05eb
Merge "Move more build configuration to openssl.config"
digit-android Mar 12, 2013
bcf20de
Add missing sha512-armv4.S
Apr 5, 2013
8c6a9ab
Deactivate Apps.mk
Apr 5, 2013
3badb0d
Merge pull request #1 from dschuermann/master
dpolishuk Apr 8, 2013
32e8f93
Give unique name to host build shared libraries
bdcgoogle May 2, 2013
7f01ddc
Merge "Give unique name to host build shared libraries"
bdcgoogle May 2, 2013
5b8ac24
Merge branch 'master' of https://android.googlesource.com/platform/ex…
neodp May 18, 2013
120511e
Merge with Android's Merge "openssl-1.0.1e upgrade"
neodp May 22, 2013
a9cd347
merge build configs
neodp May 22, 2013
2fe8d70
use deprecated RSA generate API
neodp Mar 14, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 19 additions & 7 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
LOCAL_PATH := $(call my-dir)
LOCAL_PATH := $(abspath $(call my-dir))

subdirs := $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
crypto \
ssl \
apps \
))
include $(CLEAR_VARS)

include $(subdirs)
LOCAL_MODULE := openssl

# local_c_flags
local_c_includes := $(LOCAL_PATH)/include/
# local_additional_dependencies

# Enable to be able to use ALOG* with #include "cutils/log.h"
#log_c_includes += system/core/include
#log_shared_libraries := liblog

# These makefiles are here instead of being Android.mk files in the
# respective crypto, ssl, and apps directories so
# that import_openssl.sh import won't remove them.
include $(LOCAL_PATH)/build-config.mk
include $(LOCAL_PATH)/Crypto.mk
include $(LOCAL_PATH)/Ssl.mk
#include $(LOCAL_PATH)/Apps.mk
133 changes: 133 additions & 0 deletions Apps-config.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# Auto-generated - DO NOT EDIT!
# To regenerate, edit openssl.config, then run:
# ./import_openssl.sh import /path/to/openssl-1.0.1e.tar.gz
#
# Before including this file, the local Android.mk must define the following
# variables:
#
# local_c_flags
# local_c_includes
# local_additional_dependencies
#
# This script will define the following variables:
#
# target_c_flags
# target_c_includes
# target_src_files
#
# host_c_flags
# host_c_includes
# host_src_files
#

# Ensure these are empty.
unknown_arch_c_flags :=
unknown_arch_src_files :=
unknown_arch_exclude_files :=


common_c_flags := \
-DMONOLITH \

common_src_files := \
apps/app_rand.c \
apps/apps.c \
apps/asn1pars.c \
apps/ca.c \
apps/ciphers.c \
apps/crl.c \
apps/crl2p7.c \
apps/dgst.c \
apps/dh.c \
apps/dhparam.c \
apps/dsa.c \
apps/dsaparam.c \
apps/ec.c \
apps/ecparam.c \
apps/enc.c \
apps/engine.c \
apps/errstr.c \
apps/gendh.c \
apps/gendsa.c \
apps/genpkey.c \
apps/genrsa.c \
apps/nseq.c \
apps/ocsp.c \
apps/openssl.c \
apps/passwd.c \
apps/pkcs12.c \
apps/pkcs7.c \
apps/pkcs8.c \
apps/pkey.c \
apps/pkeyparam.c \
apps/pkeyutl.c \
apps/prime.c \
apps/rand.c \
apps/req.c \
apps/rsa.c \
apps/rsautl.c \
apps/s_cb.c \
apps/s_client.c \
apps/s_server.c \
apps/s_socket.c \
apps/s_time.c \
apps/sess_id.c \
apps/smime.c \
apps/speed.c \
apps/spkac.c \
apps/srp.c \
apps/verify.c \
apps/version.c \
apps/x509.c \

common_c_includes := \
$(LOCAL_PATH)/ \
$(LOCAL_PATH)/include \

arm_c_flags :=

arm_src_files :=

arm_exclude_files :=

x86_c_flags :=

x86_src_files :=

x86_exclude_files :=

x86_64_c_flags :=

x86_64_src_files :=

x86_64_exclude_files :=

mips_c_flags :=

mips_src_files :=

mips_exclude_files :=

target_arch := $(TARGET_ARCH)
ifeq ($(target_arch)-$(TARGET_HAS_BIGENDIAN),mips-true)
target_arch := unknown_arch
endif

target_c_flags := $(common_c_flags) $($(target_arch)_c_flags) $(local_c_flags)
target_c_includes := $(common_c_includes) $(local_c_includes)
target_src_files := $(common_src_files) $($(target_arch)_src_files)
target_src_files := $(filter-out $($(target_arch)_exclude_files), $(target_src_files))

ifeq ($(HOST_OS)-$(HOST_ARCH),linux-x86)
host_arch := x86
else
host_arch := unknown_arch
endif

host_c_flags := $(common_c_flags) $($(host_arch)_c_flags) $(local_c_flags)
host_c_includes := $(common_c_includes) $(local_c_includes)
host_src_files := $(common_src_files) $($(host_arch)_src_files)
host_src_files := $(filter-out $($(host_arch)_exclude_files), $(host_src_files))

local_additional_dependencies += $(LOCAL_PATH)/Apps-config.mk

32 changes: 32 additions & 0 deletions Apps.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 2006 The Android Open Source Project

LOCAL_PATH:= $(call my-dir)

local_c_includes :=
local_c_flags :=

local_additional_dependencies := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Apps.mk

include $(LOCAL_PATH)/Apps-config.mk

include $(CLEAR_VARS)
LOCAL_MODULE:= openssl
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(target_src_files)
LOCAL_SHARED_LIBRARIES := libssl libcrypto
LOCAL_C_INCLUDES := $(target_c_includes)
LOCAL_CFLAGS := $(target_c_flags)
LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
include $(LOCAL_PATH)/android-config.mk
include $(BUILD_EXECUTABLE)

#include $(CLEAR_VARS)
#LOCAL_MODULE:= openssl
#LOCAL_MODULE_TAGS := optional
#LOCAL_SRC_FILES := $(host_src_files)
#LOCAL_SHARED_LIBRARIES := libssl-host libcrypto-host
#LOCAL_C_INCLUDES := $(host_c_includes)
#LOCAL_CFLAGS := $(host_c_flags)
#LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
#include $(LOCAL_PATH)/android-config.mk
#include $(BUILD_HOST_EXECUTABLE)
5 changes: 5 additions & 0 deletions CleanSpec.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libcrypto_inte
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libcrypto_intermediates $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libssl_intermediates $(PRODUCT_OUT)/obj/EXECUTABLES/openssl_intermediates $(PRODUCT_OUT)/obj/EXECUTABLES/ssltest_intermediates)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libcrypto_intermediates $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libssl_intermediates $(PRODUCT_OUT)/obj/EXECUTABLES/openssl_intermediates $(PRODUCT_OUT)/obj/EXECUTABLES/ssltest_intermediates)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libcrypto_intermediates $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libssl_intermediates $(PRODUCT_OUT)/obj/EXECUTABLES/openssl_intermediates $(PRODUCT_OUT)/obj/EXECUTABLES/ssltest_intermediates)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libssl_intermediates)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libcrypto_intermediates)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libssl_static_intermediates)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libcrypto_static_intermediates)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/EXECUTABLES/*ssl*_intermediates $(PRODUCT_OUT)/obj/*/libssl_*intermediates $(PRODUCT_OUT)/obj/*/libcrypto_*intermediates)

# ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
Expand Down
Loading