summaryrefslogtreecommitdiffstats
path: root/recipes-connectivity
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-connectivity')
-rw-r--r--recipes-connectivity/openssl/ocf-linux.inc23
-rw-r--r--recipes-connectivity/openssl/ocf-linux_20100325.bb6
-rw-r--r--recipes-connectivity/openssl/openssl-1.0.0a/openssl-fix-ssl3_get_key_exchange-double-free.patch12
-rw-r--r--recipes-connectivity/openssl/openssl-1.0.0c/configure-targets.patch (renamed from recipes-connectivity/openssl/openssl-1.0.0a/configure-targets.patch)14
-rw-r--r--recipes-connectivity/openssl/openssl-1.0.0c/debian.patch (renamed from recipes-connectivity/openssl/openssl-1.0.0a/debian.patch)0
-rw-r--r--recipes-connectivity/openssl/openssl-1.0.0c/engines-install-in-libdir-ssl.patch (renamed from recipes-connectivity/openssl/openssl-1.0.0a/engines-install-in-libdir-ssl.patch)0
-rw-r--r--recipes-connectivity/openssl/openssl-1.0.0c/libdeps-first.patch (renamed from recipes-connectivity/openssl/openssl-1.0.0a/libdeps-first.patch)0
-rw-r--r--recipes-connectivity/openssl/openssl-1.0.0c/oe-ldflags.patch (renamed from recipes-connectivity/openssl/openssl-1.0.0a/oe-ldflags.patch)0
-rw-r--r--recipes-connectivity/openssl/openssl-1.0.0c/shared-libs.patch (renamed from recipes-connectivity/openssl/openssl-1.0.0a/shared-libs.patch)0
-rw-r--r--recipes-connectivity/openssl/openssl-native_1.0.0c.bb27
-rw-r--r--recipes-connectivity/openssl/openssl.inc5
-rw-r--r--recipes-connectivity/openssl/openssl_1.0.0c.bb (renamed from recipes-connectivity/openssl/openssl_1.0.0a.bb)13
12 files changed, 79 insertions, 21 deletions
diff --git a/recipes-connectivity/openssl/ocf-linux.inc b/recipes-connectivity/openssl/ocf-linux.inc
new file mode 100644
index 0000000000..9d8e08911c
--- /dev/null
+++ b/recipes-connectivity/openssl/ocf-linux.inc
@@ -0,0 +1,23 @@
1DESCRIPTION = "Install required headers to enable OCF Linux support"
2LICENSE = "BSD"
3
4INC_PR = "r0"
5
6SRC_URI = "http://sourceforge.net/projects/ocf-linux/files/ocf-linux/${PV}/ocf-linux-${PV}.tar.gz"
7
8S = "${WORKDIR}/ocf-linux-${PV}"
9
10# Need to unpack the the ocf-linux.tar.gz file contained inside the
11# downloaded tarball
12do_install_prepend() {
13 cd ${S}
14 tar xzf ocf-linux.tar.gz
15}
16
17# Install the OCF Linux headers so that other packages such as openssl
18# can find them. The headers must be in a crypto directory according to
19# the README file.
20do_install() {
21 install -d ${D}${includedir}/crypto
22 install -m 0644 ${S}/ocf/*.h ${D}${includedir}/crypto/
23}
diff --git a/recipes-connectivity/openssl/ocf-linux_20100325.bb b/recipes-connectivity/openssl/ocf-linux_20100325.bb
new file mode 100644
index 0000000000..9dccc3c32f
--- /dev/null
+++ b/recipes-connectivity/openssl/ocf-linux_20100325.bb
@@ -0,0 +1,6 @@
1require ocf-linux.inc
2
3PR = "${INC_PR}.0"
4
5SRC_URI[md5sum] = "ce5ad54aa94226d496df1f0f3cf0c11f"
6SRC_URI[sha256sum] = "9d17cbd13849939c70699b520280e3b94cf77401cdc131108d4aeaaeea587f6b"
diff --git a/recipes-connectivity/openssl/openssl-1.0.0a/openssl-fix-ssl3_get_key_exchange-double-free.patch b/recipes-connectivity/openssl/openssl-1.0.0a/openssl-fix-ssl3_get_key_exchange-double-free.patch
deleted file mode 100644
index 4e988498a3..0000000000
--- a/recipes-connectivity/openssl/openssl-1.0.0a/openssl-fix-ssl3_get_key_exchange-double-free.patch
+++ /dev/null
@@ -1,12 +0,0 @@
1Index: openssl-1.0.0a/ssl/s3_clnt.c
2===================================================================
3--- openssl-1.0.0a.orig/ssl/s3_clnt.c 2010-09-13 18:38:01.000000000 +0400
4+++ openssl-1.0.0a/ssl/s3_clnt.c 2010-09-13 18:38:35.000000000 +0400
5@@ -1508,6 +1508,7 @@
6 s->session->sess_cert->peer_ecdh_tmp=ecdh;
7 ecdh=NULL;
8 BN_CTX_free(bn_ctx);
9+ bn_ctx = NULL;
10 EC_POINT_free(srvr_ecpoint);
11 srvr_ecpoint = NULL;
12 }
diff --git a/recipes-connectivity/openssl/openssl-1.0.0a/configure-targets.patch b/recipes-connectivity/openssl/openssl-1.0.0c/configure-targets.patch
index 112732b3fd..22f8743e7f 100644
--- a/recipes-connectivity/openssl/openssl-1.0.0a/configure-targets.patch
+++ b/recipes-connectivity/openssl/openssl-1.0.0c/configure-targets.patch
@@ -2,11 +2,11 @@
2The number of colons are important :) 2The number of colons are important :)
3 3
4 4
5Index: openssl-1.0.0/Configure 5Index: openssl-1.0.0a/Configure
6=================================================================== 6===================================================================
7--- openssl-1.0.0.orig/Configure 2010-01-19 13:40:54.000000000 -0800 7--- openssl-1.0.0a.orig/Configure
8+++ openssl-1.0.0/Configure 2010-05-26 22:58:01.238104854 -0700 8+++ openssl-1.0.0a/Configure
9@@ -380,6 +380,16 @@ my %table=( 9@@ -380,6 +380,22 @@ my %table=(
10 "linux-alpha-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${alpha_asm}", 10 "linux-alpha-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${alpha_asm}",
11 "linux-alpha+bwx-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${alpha_asm}", 11 "linux-alpha+bwx-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${alpha_asm}",
12 12
@@ -20,6 +20,12 @@ Index: openssl-1.0.0/Configure
20+ 20+
21+"linux-avr32","$ENV{'CC'}:-DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).", 21+"linux-avr32","$ENV{'CC'}:-DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).",
22+ 22+
23+#### Linux on MIPS/MIPS64
24+"linux-mips","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
25+"linux-mips64","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -mabi=64 -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
26+"linux-mips64el","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -mabi=64 -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
27+"linux-mipsel","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
28+
23 #### *BSD [do see comment about ${BSDthreads} above!] 29 #### *BSD [do see comment about ${BSDthreads} above!]
24 "BSD-generic32","gcc:-DTERMIOS -O3 -fomit-frame-pointer -Wall::${BSDthreads}:::BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 30 "BSD-generic32","gcc:-DTERMIOS -O3 -fomit-frame-pointer -Wall::${BSDthreads}:::BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
25 "BSD-x86", "gcc:-DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -Wall::${BSDthreads}:::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_asm}:a.out:dlfcn:bsd-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 31 "BSD-x86", "gcc:-DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -Wall::${BSDthreads}:::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_asm}:a.out:dlfcn:bsd-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
diff --git a/recipes-connectivity/openssl/openssl-1.0.0a/debian.patch b/recipes-connectivity/openssl/openssl-1.0.0c/debian.patch
index 1cd6e11966..1cd6e11966 100644
--- a/recipes-connectivity/openssl/openssl-1.0.0a/debian.patch
+++ b/recipes-connectivity/openssl/openssl-1.0.0c/debian.patch
diff --git a/recipes-connectivity/openssl/openssl-1.0.0a/engines-install-in-libdir-ssl.patch b/recipes-connectivity/openssl/openssl-1.0.0c/engines-install-in-libdir-ssl.patch
index 949d6ad8c4..949d6ad8c4 100644
--- a/recipes-connectivity/openssl/openssl-1.0.0a/engines-install-in-libdir-ssl.patch
+++ b/recipes-connectivity/openssl/openssl-1.0.0c/engines-install-in-libdir-ssl.patch
diff --git a/recipes-connectivity/openssl/openssl-1.0.0a/libdeps-first.patch b/recipes-connectivity/openssl/openssl-1.0.0c/libdeps-first.patch
index 1fda69ba93..1fda69ba93 100644
--- a/recipes-connectivity/openssl/openssl-1.0.0a/libdeps-first.patch
+++ b/recipes-connectivity/openssl/openssl-1.0.0c/libdeps-first.patch
diff --git a/recipes-connectivity/openssl/openssl-1.0.0a/oe-ldflags.patch b/recipes-connectivity/openssl/openssl-1.0.0c/oe-ldflags.patch
index 3dd3bedab0..3dd3bedab0 100644
--- a/recipes-connectivity/openssl/openssl-1.0.0a/oe-ldflags.patch
+++ b/recipes-connectivity/openssl/openssl-1.0.0c/oe-ldflags.patch
diff --git a/recipes-connectivity/openssl/openssl-1.0.0a/shared-libs.patch b/recipes-connectivity/openssl/openssl-1.0.0c/shared-libs.patch
index 7cd70d8fdc..7cd70d8fdc 100644
--- a/recipes-connectivity/openssl/openssl-1.0.0a/shared-libs.patch
+++ b/recipes-connectivity/openssl/openssl-1.0.0c/shared-libs.patch
diff --git a/recipes-connectivity/openssl/openssl-native_1.0.0c.bb b/recipes-connectivity/openssl/openssl-native_1.0.0c.bb
new file mode 100644
index 0000000000..8483293b9d
--- /dev/null
+++ b/recipes-connectivity/openssl/openssl-native_1.0.0c.bb
@@ -0,0 +1,27 @@
1require openssl.inc
2
3inherit pkgconfig native
4
5SRC_URI[src.md5sum] = "ff8fb85610aef328315a9decbb2712e4"
6SRC_URI[src.sha256sum] = "f731b36de3edaa361179ae6f449668b248a360e34e31e92902d976e9b9d604eb"
7PR = "${INC_PR}.0"
8
9DEFAULT_PREFERENCE = "-1"
10
11export DIRS = "crypto ssl apps engines"
12
13# This flag can contain target options (e.g -mfpu=neon for armv7-a systems)
14export FULL_OPTIMIZATION = " "
15export BUILD_OPTIMIZATION = " "
16
17SRC_URI += "file://configure-targets.patch \
18 file://shared-libs.patch \
19 file://debian.patch \
20 file://libdeps-first.patch \
21 "
22
23PARALLEL_MAKE = ""
24
25CFLAG += " -Wa,--noexecstack "
26
27NATIVE_INSTALL_WORKS = "1"
diff --git a/recipes-connectivity/openssl/openssl.inc b/recipes-connectivity/openssl/openssl.inc
index 675abc7de2..86b29f0af7 100644
--- a/recipes-connectivity/openssl/openssl.inc
+++ b/recipes-connectivity/openssl/openssl.inc
@@ -1,8 +1,11 @@
1DESCRIPTION = "Secure Socket Layer (SSL) binary and related cryptographic tools." 1DESCRIPTION = "Secure Socket Layer (SSL) binary and related cryptographic tools."
2HOMEPAGE = "http://www.openssl.org/" 2HOMEPAGE = "http://www.openssl.org/"
3LICENSE = "openssl"
4SECTION = "libs/network" 3SECTION = "libs/network"
5 4
5# "openssl | SSLeay" dual license
6LICENSE = "openssl"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=83d26c69f6f0172ee7f795790424b453"
8
6SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz;name=src" 9SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz;name=src"
7S = "${WORKDIR}/openssl-${PV}" 10S = "${WORKDIR}/openssl-${PV}"
8 11
diff --git a/recipes-connectivity/openssl/openssl_1.0.0a.bb b/recipes-connectivity/openssl/openssl_1.0.0c.bb
index cc3a8ab31c..9348e53c88 100644
--- a/recipes-connectivity/openssl/openssl_1.0.0a.bb
+++ b/recipes-connectivity/openssl/openssl_1.0.0c.bb
@@ -1,10 +1,16 @@
1inherit pkgconfig 1inherit pkgconfig
2 2
3require openssl.inc 3require openssl.inc
4SRC_URI[src.md5sum] = "e3873edfffc783624cfbdb65e2249cbd"
5SRC_URI[src.sha256sum] = "18a9bd1fc02b8ef90dded34fafaa9089baaafef278a19fc4e89c2ab0dcf70f63"
6 4
7PR = "${INC_PR}.1" 5# For target side versions of openssl enable support for OCF Linux driver
6# if they are available.
7DEPENDS += "ocf-linux"
8CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
9
10SRC_URI[src.md5sum] = "ff8fb85610aef328315a9decbb2712e4"
11SRC_URI[src.sha256sum] = "f731b36de3edaa361179ae6f449668b248a360e34e31e92902d976e9b9d604eb"
12
13PR = "${INC_PR}.2"
8 14
9DEFAULT_PREFERENCE = "-1" 15DEFAULT_PREFERENCE = "-1"
10 16
@@ -17,7 +23,6 @@ SRC_URI += "file://configure-targets.patch \
17 file://oe-ldflags.patch \ 23 file://oe-ldflags.patch \
18 file://libdeps-first.patch \ 24 file://libdeps-first.patch \
19 file://engines-install-in-libdir-ssl.patch \ 25 file://engines-install-in-libdir-ssl.patch \
20 file://openssl-fix-ssl3_get_key_exchange-double-free.patch \
21 " 26 "
22 27
23PARALLEL_MAKE = "" 28PARALLEL_MAKE = ""