summaryrefslogtreecommitdiff
path: root/openssl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-08-30 19:56:52 +0300
committerTor Lillqvist <tml@iki.fi>2013-09-03 17:38:53 +0300
commitdd3293b83aa7bdb5688005d3906a0de536631487 (patch)
tree9a6df497f261bddac719713022c9578a74e394b5 /openssl
parenta8865e5df62b5f33aa769d459b9823eb5b110d4b (diff)
Upgrade the bundled OpenSSL to 1.0.1e
Change-Id: I5bc15cd2a6e35a7e4dd203ceffb3b49e5949855c
Diffstat (limited to 'openssl')
-rw-r--r--openssl/UnpackedTarball_openssl.mk3
-rw-r--r--openssl/openssl-asm-fix.patch11
-rw-r--r--openssl/opensslios.patch6
-rw-r--r--openssl/openssllnx.patch59
-rw-r--r--openssl/opensslwnt.patch31
5 files changed, 21 insertions, 89 deletions
diff --git a/openssl/UnpackedTarball_openssl.mk b/openssl/UnpackedTarball_openssl.mk
index 92ce3da1ccba..cd59f7d6b9c4 100644
--- a/openssl/UnpackedTarball_openssl.mk
+++ b/openssl/UnpackedTarball_openssl.mk
@@ -46,7 +46,6 @@ $(eval $(call gb_UnpackedTarball_fix_end_of_line,openssl,\
include/openssl/pem2.h \
include/openssl/pkcs12.h \
include/openssl/pkcs7.h \
- include/openssl/pq_compat.h \
include/openssl/pqueue.h \
include/openssl/rand.h \
include/openssl/ripemd.h \
@@ -58,7 +57,6 @@ $(eval $(call gb_UnpackedTarball_fix_end_of_line,openssl,\
include/openssl/ssl23.h \
include/openssl/ssl3.h \
include/openssl/stack.h \
- include/openssl/store.h \
include/openssl/symhacks.h \
include/openssl/tls1.h \
include/openssl/ui.h \
@@ -69,7 +67,6 @@ $(eval $(call gb_UnpackedTarball_fix_end_of_line,openssl,\
))
$(eval $(call gb_UnpackedTarball_add_patches,openssl,\
- openssl/openssl-asm-fix.patch \
$(if $(filter LINUX FREEBSD ANDROID,$(OS)),openssl/openssllnx.patch) \
$(if $(filter WNTGCC,$(OS)$(COM)),openssl/opensslmingw.patch) \
$(if $(filter MSC,$(COM)),openssl/opensslwnt.patch) \
diff --git a/openssl/openssl-asm-fix.patch b/openssl/openssl-asm-fix.patch
deleted file mode 100644
index dd6fa78cb90f..000000000000
--- a/openssl/openssl-asm-fix.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- build/openssl-0.9.8v/crypto/md32_common.h.sav 2010-03-29 13:23:11.000000000 +0200
-+++ build/openssl-0.9.8v/crypto/md32_common.h 2012-03-16 12:39:14.986941958 +0100
-@@ -165,7 +165,7 @@
- asm ( \
- "roll %1,%0" \
- : "=r"(ret) \
-- : "I"(n), "0"(a) \
-+ : "I"(n), "0"((unsigned int)(a)) \
- : "cc"); \
- ret; \
- })
diff --git a/openssl/opensslios.patch b/openssl/opensslios.patch
index 3f008392c56f..e3e1c218432f 100644
--- a/openssl/opensslios.patch
+++ b/openssl/opensslios.patch
@@ -1,10 +1,10 @@
--- misc/openssl-0.9.8v/Configure
+++ build/openssl-0.9.8v/Configure
@@ -530,6 +530,9 @@
- "darwin64-x86_64-cc","cc:-arch x86_64 -O3 -fomit-frame-pointer -DL_ENDIAN -DMD32_REG_T=int -Wall::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${no_asm}:dlfcn:darwin-shared:-fPIC -fno-common:-arch x86_64 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
- "debug-darwin-ppc-cc","cc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DB_ENDIAN -g -Wall -O::-D_REENTRANT:MACOSX::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::osx_ppc32.o::::::::::dlfcn:darwin-shared:-fPIC -fno-common:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
+ # iPhoneOS/iOS
+ "iphoneos-cross","llvm-gcc:-O3 -isysroot \$(CROSS_TOP)/SDKs/\$(CROSS_SDK) -fomit-frame-pointer -fno-common::-D_REENTRANT:iOS:-Wl,-search_paths_first%:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}:dlfcn:darwin-shared:-fPIC -fno-common:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
-+##### iOS
++##### iOS in the LibreOffice case
+"ios-armv7","gcc:-O3 -fomit-frame-pointer -DL_ENDIAN:::IOS::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}:::::",
+
##### A/UX
diff --git a/openssl/openssllnx.patch b/openssl/openssllnx.patch
index b3c99c9d52bc..23a7d9e4c228 100644
--- a/openssl/openssllnx.patch
+++ b/openssl/openssllnx.patch
@@ -14,55 +14,10 @@
+++ build/openssl-0.9.8v/Makefile.org 2010-09-20 09:24:00.000000000 +0100
@@ -199,7 +199,7 @@
- BUILDENV= PLATFORM='${PLATFORM}' PROCESSOR='${PROCESSOR}' \
- CC='${CC}' CFLAG='${CFLAG}' \
-- AS='${CC}' ASFLAG='${CFLAG} -c' \
-+ AS='${CC}' ASFLAG='${CFLAG} -c -Wa,--noexecstack' \
- AR='${AR}' PERL='${PERL}' RANLIB='${RANLIB}' \
- SDIRS='${SDIRS}' LIBRPATH='${INSTALLTOP}/$(LIBDIR)' \
- INSTALL_PREFIX='${INSTALL_PREFIX}' \
---- misc/openssl-0.9.8v/config 2009-02-16 09:43:41.000000000 +0100
-+++ build/openssl-0.9.8v/config 2009-03-30 08:59:09.588448000 +0200
-@@ -399,27 +399,21 @@
- # this is where the translation occurs into SSLeay terms
- # ---------------------------------------------------------------------------
-
--GCCVER=`(gcc -dumpversion) 2>/dev/null`
--if [ "$GCCVER" != "" ]; then
-- # then strip off whatever prefix egcs prepends the number with...
-- # Hopefully, this will work for any future prefixes as well.
-- GCCVER=`echo $GCCVER | LC_ALL=C sed 's/^[a-zA-Z]*\-//'`
-- # Since gcc 3.1 gcc --version behaviour has changed. gcc -dumpversion
-- # does give us what we want though, so we use that. We just just the
-- # major and minor version numbers.
-- # peak single digit before and after first dot, e.g. 2.95.1 gives 29
-- GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'`
--fi
--
--# Only set CC if not supplied already
--if [ -z "$CC" ]; then
--# figure out if gcc is available and if so we use it otherwise
--# we fallback to whatever cc does on the system
-- if [ "$GCCVER" != "" ]; then
-- CC=gcc
-- else
-- CC=cc
-- fi
-+if [ -z "$CC" ];then
-+ GCCVER=`(gcc -dumpversion) 2>/dev/null`
-+ if [ "$GCCVER" != "" ]; then
-+ CC=gcc
-+ # then strip off whatever prefix egcs prepends the number with...
-+ # Hopefully, this will work for any future prefixes as well.
-+ GCCVER=`echo $GCCVER | LC_ALL=C sed 's/^[a-zA-Z]*\-//'`
-+ # Since gcc 3.1 gcc --version behaviour has changed. gcc -dumpversion
-+ # does give us what we want though, so we use that. We just just the
-+ # major and minor version numbers.
-+ # peak single digit before and after first dot, e.g. 2.95.1 gives 29
-+ GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'`
-+ else
-+ CC=cc
-+ fi
- fi
- GCCVER=${GCCVER:-0}
- if [ "$SYSTEM" = "HP-UX" ];then
+ BUILDENV= PLATFORM='$(PLATFORM)' PROCESSOR='$(PROCESSOR)' \
+ CC='$(CC)' CFLAG='$(CFLAG)' \
+- AS='$(CC)' ASFLAG='$(CFLAG) -c' \
++ AS='$(CC)' ASFLAG='$(CFLAG) -c -Wa,--noexecstack' \
+ AR='$(AR)' NM='$(NM)' RANLIB='$(RANLIB)' \
+ CROSS_COMPILE='$(CROSS_COMPILE)' \
+ PERL='$(PERL)' ENGDIRS='$(ENGDIRS)' \
diff --git a/openssl/opensslwnt.patch b/openssl/opensslwnt.patch
index a28a24faaad6..b68e03715f2a 100644
--- a/openssl/opensslwnt.patch
+++ b/openssl/opensslwnt.patch
@@ -81,9 +81,9 @@
LFLAGS=$lflags
-RSC=$rsc
+RSC=$rsc \$(SOLARINC)
- FIPSLINK=\$(PERL) util${o}fipslink.pl
- AES_ASM_OBJ=$aes_asm_obj
+ # The output directory for everything intersting
+ OUT_D=$out_dir
@@ -730,7 +735,7 @@
printf OUT <<EOF;
#ifdef $platform_cpp_symbol
@@ -108,21 +108,21 @@
}
$cc='$(CC)';
-- $base_cflags=' /W3 /WX /GF /Gy /nologo -DUNICODE -D_UNICODE -DOPENSSL_SYSNAME_WINCE -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DNO_CHMOD -I$(WCECOMPAT)/include -DOPENSSL_SMALL_FOOTPRINT';
-+ $base_cflags=' -W3 -GF -Gy -nologo -DUNICODE -D_UNICODE -DOPENSSL_SYSNAME_WINCE -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DNO_CHMOD -I$(WCECOMPAT)/include -DOPENSSL_SMALL_FOOTPRINT';
+- $base_cflags=' /W3 /WX /GF /Gy /nologo -DUNICODE -D_UNICODE -DOPENSSL_SYSNAME_WINCE -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DNO_CHMOD -DOPENSSL_SMALL_FOOTPRINT';
++ $base_cflags=' -W3 -GF -Gy -nologo -DUNICODE -D_UNICODE -DOPENSSL_SYSNAME_WINCE -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DNO_CHMOD -DOPENSSL_SMALL_FOOTPRINT';
$base_cflags.=" $wcecdefs";
+ $base_cflags.=' -I$(WCECOMPAT)/include' if (defined($ENV{'WCECOMPAT'}));
+ $base_cflags.=' -I$(PORTSDK_LIBPATH)/../../include' if (defined($ENV{'PORTSDK_LIBPATH'}));
- $opt_cflags=' /MC /O1i'; # optimize for space, but with intrinsics...
-- $dbg_clfags=' /MC /Od -DDEBUG -D_DEBUG';
+- $dbg_cflags=' /MC /Od -DDEBUG -D_DEBUG';
+ $opt_cflags=' -MC -O1i'; # optimize for space, but with intrinsics...
-+ $dbg_clfags=' -MC -Od -DDEBUG -D_DEBUG';
++ $dbg_cflags=' -MC -Od -DDEBUG -D_DEBUG';
$lflags="/nologo /opt:ref $wcelflag";
}
else # Win32
{
-- $base_cflags=' /W3 /WX /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32';
-+ $base_cflags=' -W3 -Gs0 -GF -Gy -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32';
- $base_cflags.=' -D_CRT_SECURE_NO_DEPRECATE'; # shut up VC8
- $base_cflags.=' -D_CRT_NONSTDC_NO_DEPRECATE'; # shut up VC8
+- $base_cflags= " $mf_cflag";
++ $base_cflags= " $mf_cflag";
- my $f = $shlib || $fips ?' /MD':' /MT';
- $lib_cflag='/Zl' if (!$shlib); # remove /DEFAULTLIBs from static lib
- $opt_cflags=$f.' /Ox /O2 /Ob2';
@@ -135,23 +135,14 @@
}
$mlflags='';
@@ -138,7 +138,7 @@
- }
$obj='.obj';
+ $asm_suffix='.asm';
-$ofile="/Fo";
+$ofile="-Fo.\\";
# EXE linking stuff
$link="link";
-@@ -298,7 +298,7 @@
- $tmp_def='tmp32dll_$(TARGETCPU)';
- }
-
--$cflags.=" /Fd$out_def";
-+$cflags.=" -Fd$out_def";
-
- sub do_lib_rule
- {
--- build/openssl-0.9.8v/ms/uplink.c
+++ build/openssl-0.9.8v/ms/uplink.c
@@ -1,5 +1,6 @@