summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/openssl
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-connectivity/openssl')
-rw-r--r--meta-oe/recipes-connectivity/openssl/ocf-linux.inc24
-rw-r--r--meta-oe/recipes-connectivity/openssl/ocf-linux_20100325.bb6
-rw-r--r--meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/configure-targets.patch24
-rw-r--r--meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/debian.patch546
-rw-r--r--meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/oe-ldflags.patch21
-rw-r--r--meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/shared-libs.patch48
-rw-r--r--meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/configure-targets.patch31
-rw-r--r--meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/debian.patch515
-rw-r--r--meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/engines-install-in-libdir-ssl.patch53
-rw-r--r--meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/libdeps-first.patch27
-rw-r--r--meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/oe-ldflags.patch22
-rw-r--r--meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/shared-libs.patch48
-rw-r--r--meta-oe/recipes-connectivity/openssl/openssl-native_1.0.0c.bb27
-rw-r--r--meta-oe/recipes-connectivity/openssl/openssl.inc127
-rw-r--r--meta-oe/recipes-connectivity/openssl/openssl_0.9.8m.bb16
-rw-r--r--meta-oe/recipes-connectivity/openssl/openssl_1.0.0c.bb36
16 files changed, 1571 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/openssl/ocf-linux.inc b/meta-oe/recipes-connectivity/openssl/ocf-linux.inc
new file mode 100644
index 000000000..b98f887ff
--- /dev/null
+++ b/meta-oe/recipes-connectivity/openssl/ocf-linux.inc
@@ -0,0 +1,24 @@
1DESCRIPTION = "Install required headers to enable OCF Linux support"
2LICENSE = "BSD"
3
4LIC_FILES_CHKSUM = "file://README;md5=b02a793c9b7893b4ce1f39f0b231ccd7"
5
6INC_PR = "r3"
7
8SRC_URI = "http://sourceforge.net/projects/ocf-linux/files/ocf-linux/${PV}/ocf-linux-${PV}.tar.gz"
9
10S = "${WORKDIR}/ocf-linux-${PV}"
11
12# Need to unpack the the ocf-linux.tar.gz file contained inside the
13# downloaded tarball
14# Install the OCF Linux headers so that other packages such as openssl
15# can find them. The headers must be in a crypto directory according to
16# the README file.
17do_install() {
18 cd ${S}
19 tar xzf ocf-linux.tar.gz
20 install -d ${D}${includedir}/crypto
21 install -m 0644 ${S}/ocf/*.h ${D}${includedir}/crypto/
22}
23
24ALLOW_EMPTY = "1"
diff --git a/meta-oe/recipes-connectivity/openssl/ocf-linux_20100325.bb b/meta-oe/recipes-connectivity/openssl/ocf-linux_20100325.bb
new file mode 100644
index 000000000..9dccc3c32
--- /dev/null
+++ b/meta-oe/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/meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/configure-targets.patch b/meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/configure-targets.patch
new file mode 100644
index 000000000..b68123a23
--- /dev/null
+++ b/meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/configure-targets.patch
@@ -0,0 +1,24 @@
1
2The number of colons are important :)
3
4Index: openssl-0.9.8g/Configure
5===================================================================
6--- openssl-0.9.8g.orig/Configure 2008-04-12 04:27:22.000000000 +0200
7+++ openssl-0.9.8g/Configure 2008-04-12 04:38:56.000000000 +0200
8@@ -395,6 +395,16 @@
9 "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:${no_asm}",
10 "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:${no_asm}",
11
12+ # Linux on ARM
13+"linux-elf-arm","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
14+"linux-elf-armeb","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
15+"linux-gnueabi-arm","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
16+"linux-gnueabi-armeb","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
17+"linux-uclibcgnueabi-arm","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
18+"linux-uclibcgnueabi-armeb","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
19+
20+"linux-avr32","$ENV{'CC'}:-DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).",
21+
22 #### *BSD [do see comment about ${BSDthreads} above!]
23 "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)",
24 "BSD-x86", "gcc:-DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -Wall::${BSDthreads}:::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:dlfcn:bsd-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
diff --git a/meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/debian.patch b/meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/debian.patch
new file mode 100644
index 000000000..60e338816
--- /dev/null
+++ b/meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/debian.patch
@@ -0,0 +1,546 @@
1Index: openssl-0.9.8m/Makefile
2===================================================================
3--- openssl-0.9.8m.orig/Makefile 2010-02-26 01:21:14.000000000 +0800
4+++ openssl-0.9.8m/Makefile 2010-03-09 20:17:26.515664333 +0800
5@@ -26,10 +26,10 @@
6 # for, say, /usr/ and yet have everything installed to /tmp/somedir/usr/.
7 # Normally it is left empty.
8 INSTALL_PREFIX=
9-INSTALLTOP=/usr/local/ssl
10+INSTALLTOP=/usr
11
12 # Do not edit this manually. Use Configure --openssldir=DIR do change this!
13-OPENSSLDIR=/usr/local/ssl
14+OPENSSLDIR=/usr/lib/ssl
15
16 # NO_IDEA - Define to build without the IDEA algorithm
17 # NO_RC4 - Define to build without the RC4 algorithm
18@@ -155,10 +155,11 @@
19
20 MAKEFILE= Makefile
21
22-MANDIR=$(OPENSSLDIR)/man
23+MANDIR=/usr/share/man
24 MAN1=1
25 MAN3=3
26-MANSUFFIX=
27+MANSUFFIX=ssl
28+MANSECTION=SSL
29 SHELL=/bin/sh
30
31 TOP= .
32@@ -170,8 +171,8 @@
33 SHARED_SSL=libssl$(SHLIB_EXT)
34 SHARED_FIPS=
35 SHARED_LIBS=
36-SHARED_LIBS_LINK_EXTS=
37-SHARED_LDFLAGS=
38+SHARED_LIBS_LINK_EXTS=.so
39+SHARED_LDFLAGS=-m64 -Wl,--version-script=openssl.ld
40
41 GENERAL= Makefile
42 BASENAME= openssl
43@@ -447,7 +448,8 @@
44 echo 'Description: OpenSSL cryptography library'; \
45 echo 'Version: '$(VERSION); \
46 echo 'Requires: '; \
47- echo 'Libs: -L$${libdir} -lcrypto $(EX_LIBS)'; \
48+ echo 'Libs: -L$${libdir} -lcrypto'; \
49+ echo 'Libs.private: $(EX_LIBS)'; \
50 echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libcrypto.pc
51
52 libssl.pc: Makefile
53@@ -460,7 +462,8 @@
54 echo 'Description: Secure Sockets Layer and cryptography libraries'; \
55 echo 'Version: '$(VERSION); \
56 echo 'Requires: '; \
57- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
58+ echo 'Libs: -L$${libdir} -lssl'; \
59+ echo 'Libs.private: -lcrypto $(EX_LIBS)'; \
60 echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libssl.pc
61
62 openssl.pc: Makefile
63@@ -473,7 +476,8 @@
64 echo 'Description: Secure Sockets Layer and cryptography libraries and tools'; \
65 echo 'Version: '$(VERSION); \
66 echo 'Requires: '; \
67- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
68+ echo 'Libs: -L$${libdir} -lssl -lcrypto'; \
69+ echo 'Libs.private: $(EX_LIBS)'; \
70 echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > openssl.pc
71
72 Makefile: Makefile.org Configure config
73@@ -622,7 +626,7 @@
74 install_sw:
75 @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \
76 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR) \
77- $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines \
78+ $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines \
79 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig \
80 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \
81 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc \
82@@ -700,7 +704,7 @@
83 echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
84 (cd `$(PERL) util/dirname.pl $$i`; \
85 sh -c "$$pod2man \
86- --section=$$sec --center=OpenSSL \
87+ --section=$${sec}$(MANSECTION) --center=OpenSSL \
88 --release=$(VERSION) `basename $$i`") \
89 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
90 $(PERL) util/extract-names.pl < $$i | \
91@@ -717,7 +721,7 @@
92 echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
93 (cd `$(PERL) util/dirname.pl $$i`; \
94 sh -c "$$pod2man \
95- --section=$$sec --center=OpenSSL \
96+ --section=$${sec}$(MANSECTION) --center=OpenSSL \
97 --release=$(VERSION) `basename $$i`") \
98 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
99 $(PERL) util/extract-names.pl < $$i | \
100Index: openssl-0.9.8m/Configure
101===================================================================
102--- openssl-0.9.8m.orig/Configure 2010-03-09 16:15:42.000000000 +0800
103+++ openssl-0.9.8m/Configure 2010-03-09 20:18:16.566914027 +0800
104@@ -1,4 +1,4 @@
105-:
106+#!/usr/local/bin/perl
107 eval 'exec perl -S $0 ${1+"$@"}'
108 if $running_under_some_shell;
109 ##
110@@ -326,6 +326,47 @@
111 "osf1-alpha-cc", "cc:-std1 -tune host -O4 -readonly_strings::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${no_asm}:dlfcn:alpha-osf1-shared:::.so",
112 "tru64-alpha-cc", "cc:-std1 -tune host -fast -readonly_strings::-pthread:::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${no_asm}:dlfcn:alpha-osf1-shared::-msym:.so",
113
114+# Debian GNU/* (various architectures)
115+"debian-alpha","gcc:-DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
116+"debian-alpha-ev4","gcc:-DTERMIO -O3 -Wa,--noexecstack -mcpu=ev4 -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
117+"debian-alpha-ev5","gcc:-DTERMIO -O3 -Wa,--noexecstack -mcpu=ev5 -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
118+"debian-arm","gcc:-DL_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
119+"debian-armeb","gcc:-DB_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
120+"debian-armel","gcc:-DL_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
121+#"debian-amd64","gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
122+"debian-amd64", "gcc:-m64 -DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK RC4_CHAR BF_PTR2 DES_INT DES_UNROLL:${x86_64_asm}:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
123+"debian-kfreebsd-amd64","gcc:-m64 -DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -Wall -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK BF_PTR2 DES_INT DES_UNROLL:${x86_64_asm}:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
124+#"debian-freebsd-alpha","gcc:-DTERMIOS -O -Wa,--noexecstack -fomit-frame-pointer::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC2::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
125+"debian-kfreebsd-i386","gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
126+"debian-hppa","gcc:-DB_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG MD2_CHAR RC4_INDEX::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
127+"debian-hurd-i386","gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
128+"debian-ia64","gcc:-DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK RC4_CHAR:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
129+#"debian-i386","gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -fomit-frame-pointer -m486 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::dlfcn:linux-shared:-fPIC",
130+"debian-i386","gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
131+"debian-i386-i486","gcc:-DL_ENDIAN -DTERMIO -O3 -march=i486 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
132+"debian-i386-i586","gcc:-DL_ENDIAN -DTERMIO -O3 -march=i586 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
133+"debian-i386-i686/cmov","gcc:-DL_ENDIAN -DTERMIO -O3 -march=i686 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
134+"debian-m68k","gcc:-DB_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG MD2_CHAR RC4_INDEX::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
135+"debian-mips", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -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)",
136+"debian-mipsel", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -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)",
137+"debian-netbsd-i386", "gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486 -Wall::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
138+"debian-netbsd-m68k", "gcc:-DB_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -Wall::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
139+"debian-netbsd-sparc", "gcc:-DB_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -mv8 -Wall::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
140+"debian-openbsd-alpha","gcc:-DTERMIOS -O3 -Wa,--noexecstack -g::(unknown):::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC2::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
141+"debian-openbsd-i386", "gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
142+"debian-openbsd-mips","gcc:-O2 -Wa,--noexecstack -g -DL_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC2 DES_PTR BF_PTR:::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
143+"debian-powerpc","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_UNROLL DES_RISC2 DES_PTR MD2_CHAR RC4_INDEX::linux_ppc32.o::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
144+"debian-ppc64","gcc:-m64 -DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL::linux_ppc64.o::::::::::dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
145+"debian-s390","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
146+"debian-sh3", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
147+"debian-sh4", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
148+"debian-sh3eb", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
149+"debian-sh4eb", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
150+"debian-m32r","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
151+"debian-sparc","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
152+"debian-sparc-v8","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -mcpu=v8 -g -Wall -DBN_DIV2W::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::sparcv8.o:des_enc-sparc.o fcrypt_b.o:::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
153+"debian-sparc-v9","gcc:-DB_ENDIAN -DTERMIO -O3 -mcpu=v9 -Wa,--noexecstack -Wa,-Av8plus -g -Wall -DULTRASPARC -DBN_DIV2W::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::sparcv8plus.o:des_enc-sparc.o fcrypt_b.o:::md5-sparcv8plus.o::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
154+
155 ####
156 #### Variety of LINUX:-)
157 ####
158@@ -505,7 +546,7 @@
159 # Cygwin
160 "Cygwin-pre1.3", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::(unknown):CYGWIN32::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${no_asm}:win32",
161 "Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall:::CYGWIN32::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_coff_asm}:dlfcn:cygwin-shared:-D_WINDLL:-shared:.dll.a",
162-"debug-Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -march=i486 -Wall -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DOPENSSL_NO_ASM -g -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror:::CYGWIN32:::${no_asm}:dlfcn:cygwin-shared:-D_WINDLL:-shared:.dll.a",
163+-"debug-Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -march=i486 -Wall -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DOPENSSL_NO_ASM -g -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror:::CYGWIN32:::${no_asm}:dlfcn:cygwin-shared:-D_WINDLL:-shared:.dll.a",
164
165 # NetWare from David Ward (dsward@novell.com)
166 # requires either MetroWerks NLM development tools, or gcc / nlmconv
167@@ -1477,6 +1518,8 @@
168 }
169 }
170
171+$shared_ldflag .= " -Wl,--version-script=openssl.ld";
172+
173 open(IN,'<Makefile.org') || die "unable to read Makefile.org:$!\n";
174 unlink("$Makefile.new") || die "unable to remove old $Makefile.new:$!\n" if -e "$Makefile.new";
175 open(OUT,">$Makefile.new") || die "unable to create $Makefile.new:$!\n";
176@@ -1576,7 +1619,8 @@
177 elsif ($shared_extension ne "" && $shared_extension =~ /^\.s([ol])\.[^\.]*\.[^\.]*$/)
178 {
179 my $sotmp = $1;
180- s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_MAJOR) .s$sotmp/;
181+# s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_MAJOR) .s$sotmp/;
182+ s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp/;
183 }
184 elsif ($shared_extension ne "" && $shared_extension =~ /^\.[^\.]*\.[^\.]*\.dylib$/)
185 {
186@@ -1706,7 +1750,7 @@
187 # $foo is to become "$prefix/lib$multilib/engines";
188 # as Makefile.org and engines/Makefile are adapted for
189 # $multilib suffix.
190- my $foo = "$prefix/lib/engines";
191+ my $foo = "$prefix/lib/ssl/engines";
192 $foo =~ s/\\/\\\\/g;
193 print OUT "#define ENGINESDIR \"$foo\"\n";
194 }
195Index: openssl-0.9.8m/config
196===================================================================
197--- openssl-0.9.8m.orig/config 2009-10-15 20:58:00.000000000 +0800
198+++ openssl-0.9.8m/config 2010-03-09 20:16:50.506902007 +0800
199@@ -162,8 +162,8 @@
200 echo "${MACHINE}-whatever-linux1"; exit 0
201 ;;
202
203- GNU*)
204- echo "hurd-x86"; exit 0;
205+ GNU:*|GNU/*:*)
206+ echo "${MACHINE}-gnuish"; exit 0;
207 ;;
208
209 LynxOS:*)
210Index: openssl-0.9.8m/Makefile.org
211===================================================================
212--- openssl-0.9.8m.orig/Makefile.org 2010-03-09 16:15:42.000000000 +0800
213+++ openssl-0.9.8m/Makefile.org 2010-03-09 20:18:44.095663922 +0800
214@@ -153,10 +153,11 @@
215
216 MAKEFILE= Makefile
217
218-MANDIR=$(OPENSSLDIR)/man
219+MANDIR=/usr/share/man
220 MAN1=1
221 MAN3=3
222-MANSUFFIX=
223+MANSUFFIX=ssl
224+MANSECTION=SSL
225 SHELL=/bin/sh
226
227 TOP= .
228@@ -445,7 +446,8 @@
229 echo 'Description: OpenSSL cryptography library'; \
230 echo 'Version: '$(VERSION); \
231 echo 'Requires: '; \
232- echo 'Libs: -L$${libdir} -lcrypto $(EX_LIBS)'; \
233+ echo 'Libs: -L$${libdir} -lcrypto'; \
234+ echo 'Libs.private: $(EX_LIBS)'; \
235 echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libcrypto.pc
236
237 libssl.pc: Makefile
238@@ -458,7 +460,8 @@
239 echo 'Description: Secure Sockets Layer and cryptography libraries'; \
240 echo 'Version: '$(VERSION); \
241 echo 'Requires: '; \
242- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
243+ echo 'Libs: -L$${libdir} -lssl'; \
244+ echo 'Libs.private: -lcrypto $(EX_LIBS)'; \
245 echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libssl.pc
246
247 openssl.pc: Makefile
248@@ -471,7 +474,8 @@
249 echo 'Description: Secure Sockets Layer and cryptography libraries and tools'; \
250 echo 'Version: '$(VERSION); \
251 echo 'Requires: '; \
252- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
253+ echo 'Libs: -L$${libdir} -lssl -lcrypto'; \
254+ echo 'Libs.private: $(EX_LIBS)'; \
255 echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > openssl.pc
256
257 Makefile: Makefile.org Configure config
258@@ -620,7 +624,7 @@
259 install_sw:
260 @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \
261 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR) \
262- $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines \
263+ $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines \
264 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig \
265 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \
266 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc \
267@@ -698,7 +702,7 @@
268 echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
269 (cd `$(PERL) util/dirname.pl $$i`; \
270 sh -c "$$pod2man \
271- --section=$$sec --center=OpenSSL \
272+ --section=$${sec}$(MANSECTION) --center=OpenSSL \
273 --release=$(VERSION) `basename $$i`") \
274 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
275 $(PERL) util/extract-names.pl < $$i | \
276@@ -715,7 +719,7 @@
277 echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
278 (cd `$(PERL) util/dirname.pl $$i`; \
279 sh -c "$$pod2man \
280- --section=$$sec --center=OpenSSL \
281+ --section=$${sec}$(MANSECTION) --center=OpenSSL \
282 --release=$(VERSION) `basename $$i`") \
283 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
284 $(PERL) util/extract-names.pl < $$i | \
285Index: openssl-0.9.8m/openssl.ld
286===================================================================
287--- /dev/null 1970-01-01 00:00:00.000000000 +0000
288+++ openssl-0.9.8m/openssl.ld 2010-03-09 20:16:50.506902007 +0800
289@@ -0,0 +1,5 @@
290+OPENSSL_0.9.8 {
291+ global:
292+ *;
293+};
294+
295Index: openssl-0.9.8m/apps/s_time.c
296===================================================================
297--- openssl-0.9.8m.orig/apps/s_time.c 2003-12-27 22:40:17.000000000 +0800
298+++ openssl-0.9.8m/apps/s_time.c 2010-03-09 20:16:50.516901237 +0800
299@@ -117,6 +117,7 @@
300
301 /* The following if from times(3) man page. It may need to be changed
302 */
303+#undef HZ
304 #ifndef HZ
305 # ifdef _SC_CLK_TCK
306 # define HZ ((double)sysconf(_SC_CLK_TCK))
307Index: openssl-0.9.8m/engines/openssl.ld
308===================================================================
309--- /dev/null 1970-01-01 00:00:00.000000000 +0000
310+++ openssl-0.9.8m/engines/openssl.ld 2010-03-09 20:16:50.516901237 +0800
311@@ -0,0 +1,5 @@
312+OPENSSL_0.9.8 {
313+ global:
314+ *;
315+};
316+
317Index: openssl-0.9.8m/doc/Makefile
318===================================================================
319--- /dev/null 1970-01-01 00:00:00.000000000 +0000
320+++ openssl-0.9.8m/doc/Makefile 2010-03-09 20:16:50.516901237 +0800
321@@ -0,0 +1,40 @@
322+VERSION =
323+
324+#PODS = $(wildcard *.pod)
325+#MANS = $(addsuffix .man, $(basename $(PODS)))
326+
327+MANS = openssl.1 ssl.3 crypto.3
328+
329+P2M = pod2man --center='OpenSSL Documentation' --release="OpenSSL $(VERSION)"
330+
331+all: manpages
332+
333+.PHONY: manpages
334+
335+manpages: openssl.1 crypto.3 ssl.3
336+
337+openssl.1:
338+ $(P2M) --section=1 openssl.pod > openssl.1
339+
340+crypto.3:
341+ $(P2M) --section=3 crypto.pod > crypto.3
342+
343+ssl.3:
344+ $(P2M) --section=3 ssl.pod > ssl.3
345+
346+.PHONY: install
347+install:
348+ mkdir -p $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man1
349+ mkdir -p $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man3
350+ install -m 644 -p openssl.1 $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man1
351+ install -m 644 -p crypto.3 $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man3
352+ install -m 644 -p ssl.3 $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man3
353+ rm -f $(MANS)
354+
355+.PHONY: clean
356+clean:
357+ rm -f $(MANS)
358+
359+.PHONY: realclean
360+realclean:
361+ -$(MAKE) clean
362Index: openssl-0.9.8m/doc/apps/c_rehash.pod
363===================================================================
364--- /dev/null 1970-01-01 00:00:00.000000000 +0000
365+++ openssl-0.9.8m/doc/apps/c_rehash.pod 2010-03-09 20:16:50.516901237 +0800
366@@ -0,0 +1,55 @@
367+
368+=pod
369+
370+=head1 NAME
371+
372+c_rehash - Create symbolic links to files named by the hash values
373+
374+=head1 SYNOPSIS
375+
376+B<c_rehash>
377+[directory] ...
378+
379+=head1 DESCRIPTION
380+
381+c_rehash scans directories and takes a hash value of each .pem and .crt file in the directory. It then creates symbolic links for each of the files named by the hash value. This is useful as many programs require directories to be set up like this in order to find the certificates they require.
382+
383+If any directories are named on the command line then these directories are processed in turn. If not then and the environment variable SSL_CERT_DIR is defined then that is consulted. This variable should be a colon (:) separated list of directories, all of which will be processed. If neither of these conditions are true then /usr/lib/ssl/certs is processed.
384+
385+For each directory that is to be processed he user must have write permissions on the directory, if they do not then nothing will be printed for that directory.
386+
387+Note that this program deletes all the symbolic links that look like ones that it creates before processing a directory. Beware that if you run the program on a directory that contains symbolic links for other purposes that are named in the same format as those created by this program they will be lost.
388+
389+The hashes for certificate files are of the form <hash>.<n> where n is an integer. If the hash value already exists then n will be incremented, unless the file is a duplicate. Duplicates are detected using the fingerprint of the certificate. A warning will be printed if a duplicate is detected. The hashes for CRL files are of the form <hash>.r<n> and have the same behavior.
390+
391+The program will also warn if there are files with extension .pem which are not certificate or CRL files.
392+
393+The program uses the openssl program to compute the hashes and fingerprints. It expects the executable to be named openssl and be on the PATH, or in the /usr/lib/ssl/bin directory. If the OPENSSL environment variable is defined then this is used instead as the executable that provides the hashes and fingerprints. When called as $OPENSSL x509 -hash -fingerprint -noout -in $file it must output the hash of $file on the first line followed by the fingerprint on the second line, optionally prefixed with some text and an equals sign (=).
394+
395+=head1 OPTIONS
396+
397+None
398+
399+=head1 ENVIRONMENT
400+
401+=over 4
402+
403+=item B<OPENSSL>
404+
405+The name (and path) of an executable to use to generate hashes and fingerprints (see above).
406+
407+=item B<SSL_CERT_DIR>
408+
409+Colon separated list of directories to operate on. Ignored if directories are listed on the command line.
410+
411+=head1 SEE ALSO
412+
413+L<openssl(1)|openssl(1)>, L<x509(1)|x509(1)>
414+
415+=back
416+
417+=head1 BUGS
418+
419+No known bugs
420+
421+=cut
422Index: openssl-0.9.8m/crypto/Makefile
423===================================================================
424--- openssl-0.9.8m.orig/crypto/Makefile 2010-03-09 16:15:42.000000000 +0800
425+++ openssl-0.9.8m/crypto/Makefile 2010-03-09 20:16:50.516901237 +0800
426@@ -57,7 +57,7 @@
427 echo " #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
428 echo '#endif' ) >buildinf.h
429
430-x86cpuid-elf.s: x86cpuid.pl perlasm/x86asm.pl
431+x86cpuid-elf.S: x86cpuid.pl perlasm/x86asm.pl
432 $(PERL) x86cpuid.pl elf $(CFLAGS) $(PROCESSOR) > $@
433 x86cpuid-cof.s: x86cpuid.pl perlasm/x86asm.pl
434 $(PERL) x86cpuid.pl coff $(CFLAGS) $(PROCESSOR) > $@
435@@ -70,7 +70,7 @@
436 uplink-cof.s: ../ms/uplink.pl
437 $(PERL) ../ms/uplink.pl coff > $@
438
439-x86_64cpuid.s: x86_64cpuid.pl
440+x86_64cpuid.S: x86_64cpuid.pl
441 $(PERL) x86_64cpuid.pl $@
442 ia64cpuid.s: ia64cpuid.S
443 $(CC) $(CFLAGS) -E ia64cpuid.S > $@
444Index: openssl-0.9.8m/crypto/opensslconf.h
445===================================================================
446--- openssl-0.9.8m.orig/crypto/opensslconf.h 2010-02-26 01:21:14.000000000 +0800
447+++ openssl-0.9.8m/crypto/opensslconf.h 2010-03-09 20:16:50.516901237 +0800
448@@ -20,6 +20,9 @@
449 #ifndef OPENSSL_NO_JPAKE
450 # define OPENSSL_NO_JPAKE
451 #endif
452+#ifndef OPENSSL_NO_IDEA
453+# define OPENSSL_NO_IDEA
454+#endif
455 #ifndef OPENSSL_NO_KRB5
456 # define OPENSSL_NO_KRB5
457 #endif
458@@ -62,6 +65,9 @@
459 # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
460 # define NO_JPAKE
461 # endif
462+# if defined(OPENSSL_NO_IDEA) && !defined(NO_IDEA)
463+# define NO_IDEA
464+# endif
465 # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
466 # define NO_KRB5
467 # endif
468@@ -101,8 +107,8 @@
469
470 #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
471 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
472-#define ENGINESDIR "/usr/local/ssl/lib/engines"
473-#define OPENSSLDIR "/usr/local/ssl"
474+#define ENGINESDIR "/usr/lib/ssl/engines"
475+#define OPENSSLDIR "/usr/lib/ssl"
476 #endif
477 #endif
478
479@@ -133,14 +139,14 @@
480 * - Intel P6 because partial register stalls are very expensive;
481 * - elder Alpha because it lacks byte load/store instructions;
482 */
483-#define RC4_INT unsigned int
484+#define RC4_INT unsigned char
485 #endif
486 #if !defined(RC4_CHUNK)
487 /*
488 * This enables code handling data aligned at natural CPU word
489 * boundary. See crypto/rc4/rc4_enc.c for further details.
490 */
491-#undef RC4_CHUNK
492+#define RC4_CHUNK unsigned long
493 #endif
494 #endif
495
496@@ -148,7 +154,7 @@
497 /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
498 * %20 speed up (longs are 8 bytes, int's are 4). */
499 #ifndef DES_LONG
500-#define DES_LONG unsigned long
501+#define DES_LONG unsigned int
502 #endif
503 #endif
504
505@@ -162,9 +168,9 @@
506 /* The prime number generation stuff may not work when
507 * EIGHT_BIT but I don't care since I've only used this mode
508 * for debuging the bignum libraries */
509-#undef SIXTY_FOUR_BIT_LONG
510+#define SIXTY_FOUR_BIT_LONG
511 #undef SIXTY_FOUR_BIT
512-#define THIRTY_TWO_BIT
513+#undef THIRTY_TWO_BIT
514 #undef SIXTEEN_BIT
515 #undef EIGHT_BIT
516 #endif
517@@ -178,7 +184,7 @@
518
519 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
520 #define CONFIG_HEADER_BF_LOCL_H
521-#undef BF_PTR
522+#define BF_PTR2
523 #endif /* HEADER_BF_LOCL_H */
524
525 #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
526@@ -208,7 +214,7 @@
527 /* Unroll the inner loop, this sometimes helps, sometimes hinders.
528 * Very mucy CPU dependant */
529 #ifndef DES_UNROLL
530-#undef DES_UNROLL
531+#define DES_UNROLL
532 #endif
533
534 /* These default values were supplied by
535Index: openssl-0.9.8m/crypto/sha/sha.h
536===================================================================
537--- openssl-0.9.8m.orig/crypto/sha/sha.h 2008-09-16 18:47:28.000000000 +0800
538+++ openssl-0.9.8m/crypto/sha/sha.h 2010-03-09 20:16:50.516901237 +0800
539@@ -59,6 +59,7 @@
540 #ifndef HEADER_SHA_H
541 #define HEADER_SHA_H
542
543+#include <stddef.h>
544 #include <openssl/e_os2.h>
545 #include <stddef.h>
546
diff --git a/meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/oe-ldflags.patch b/meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/oe-ldflags.patch
new file mode 100644
index 000000000..3a2fae64d
--- /dev/null
+++ b/meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/oe-ldflags.patch
@@ -0,0 +1,21 @@
1diff -urN openssl-0.9.8j.orig/Makefile.shared openssl-0.9.8j/Makefile.shared
2--- openssl-0.9.8j.orig/Makefile.shared 2008-09-17 15:56:40.000000000 +0000
3+++ openssl-0.9.8j/Makefile.shared 2009-04-02 13:44:48.000000000 +0000
4@@ -90,7 +90,7 @@
5 LINK_APP= \
6 ( $(SET_X); \
7 LIBDEPS="$${LIBDEPS:-$(LIBDEPS)}"; \
8- LDCMD="$${LDCMD:-$(CC)}"; LDFLAGS="$${LDFLAGS:-$(CFLAGS)}"; \
9+ LDCMD="$${LDCMD:-$(CC)}"; LDFLAGS="$(OE_LDFLAGS) $${LDFLAGS:-$(CFLAGS)}"; \
10 LIBPATH=`for x in $$LIBDEPS; do if echo $$x | grep '^ *-L' > /dev/null 2>&1; then echo $$x | sed -e 's/^ *-L//'; fi; done | uniq`; \
11 LIBPATH=`echo $$LIBPATH | sed -e 's/ /:/g'`; \
12 LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \
13@@ -100,7 +100,7 @@
14 ( $(SET_X); \
15 LIBDEPS="$${LIBDEPS:-$(LIBDEPS)}"; \
16 SHAREDCMD="$${SHAREDCMD:-$(CC)}"; \
17- SHAREDFLAGS="$${SHAREDFLAGS:-$(CFLAGS) $(SHARED_LDFLAGS)}"; \
18+ SHAREDFLAGS="$(OE_LDFLAGS) $${SHAREDFLAGS:-$(CFLAGS) $(SHARED_LDFLAGS)}"; \
19 LIBPATH=`for x in $$LIBDEPS; do if echo $$x | grep '^ *-L' > /dev/null 2>&1; then echo $$x | sed -e 's/^ *-L//'; fi; done | uniq`; \
20 LIBPATH=`echo $$LIBPATH | sed -e 's/ /:/g'`; \
21 LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \
diff --git a/meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/shared-libs.patch b/meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/shared-libs.patch
new file mode 100644
index 000000000..0aaef169c
--- /dev/null
+++ b/meta-oe/recipes-connectivity/openssl/openssl-0.9.8m/shared-libs.patch
@@ -0,0 +1,48 @@
1Index: openssl-0.9.8m/crypto/Makefile
2===================================================================
3--- openssl-0.9.8m.orig/crypto/Makefile 2008-09-18 01:10:55.000000000 +0800
4+++ openssl-0.9.8m/crypto/Makefile 2010-03-09 16:13:16.055652727 +0800
5@@ -103,7 +103,7 @@
6
7 shared: buildinf.h lib subdirs
8 if [ -n "$(SHARED_LIBS)" ]; then \
9- (cd ..; $(MAKE) $(SHARED_LIB)); \
10+ (cd ..; $(MAKE) -e $(SHARED_LIB)); \
11 fi
12
13 libs:
14Index: openssl-0.9.8m/Makefile.org
15===================================================================
16--- openssl-0.9.8m.orig/Makefile.org 2010-01-28 00:06:36.000000000 +0800
17+++ openssl-0.9.8m/Makefile.org 2010-03-09 16:14:22.065664019 +0800
18@@ -355,7 +355,7 @@
19 @if [ "$(SHLIB_TARGET)" != "" ]; then \
20 if [ "$(FIPSCANLIB)" = "libfips" ]; then \
21 $(ARD) libcrypto.a fipscanister.o ; \
22- $(MAKE) SHLIBDIRS='crypto' SHLIBDEPS='-lfips' build-shared; \
23+ $(MAKE) -e SHLIBDIRS='crypto' SHLIBDEPS='-lfips' build-shared; \
24 $(AR) libcrypto.a fips/fipscanister.o ; \
25 else \
26 if [ "$(FIPSCANLIB)" = "libcrypto" ]; then \
27@@ -373,7 +373,7 @@
28 @if [ "$(SHLIB_TARGET)" != "" ]; then \
29 shlibdeps=-lcrypto; \
30 [ "$(FIPSCANLIB)" = "libfips" ] && shlibdeps="$$shlibdeps -lfips"; \
31- $(MAKE) SHLIBDIRS=ssl SHLIBDEPS="$$shlibdeps" build-shared; \
32+ $(MAKE) -e SHLIBDIRS=ssl SHLIBDEPS="$$shlibdeps" build-shared; \
33 else \
34 echo "There's no support for shared libraries on this platform" >&2 ; \
35 exit 1; \
36Index: openssl-0.9.8m/ssl/Makefile
37===================================================================
38--- openssl-0.9.8m.orig/ssl/Makefile 2010-01-21 00:35:30.000000000 +0800
39+++ openssl-0.9.8m/ssl/Makefile 2010-03-09 16:13:16.065664772 +0800
40@@ -62,7 +62,7 @@
41
42 shared: lib
43 if [ -n "$(SHARED_LIBS)" ]; then \
44- (cd ..; $(MAKE) $(SHARED_LIB)); \
45+ (cd ..; $(MAKE) -e $(SHARED_LIB)); \
46 fi
47
48 files:
diff --git a/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/configure-targets.patch b/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/configure-targets.patch
new file mode 100644
index 000000000..22f8743e7
--- /dev/null
+++ b/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/configure-targets.patch
@@ -0,0 +1,31 @@
1
2The number of colons are important :)
3
4
5Index: openssl-1.0.0a/Configure
6===================================================================
7--- openssl-1.0.0a.orig/Configure
8+++ openssl-1.0.0a/Configure
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}",
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
13+ # Linux on ARM
14+"linux-elf-arm","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
15+"linux-elf-armeb","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
16+"linux-gnueabi-arm","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
17+"linux-gnueabi-armeb","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
18+"linux-uclibceabi-arm","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
19+"linux-uclibceabi-armeb","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
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).",
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+
29 #### *BSD [do see comment about ${BSDthreads} above!]
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)",
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/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/debian.patch b/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/debian.patch
new file mode 100644
index 000000000..1cd6e1196
--- /dev/null
+++ b/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/debian.patch
@@ -0,0 +1,515 @@
1Index: openssl-1.0.0/Makefile
2===================================================================
3--- openssl-1.0.0.orig/Makefile
4+++ openssl-1.0.0/Makefile
5@@ -26,10 +26,10 @@ HERE=.
6 # for, say, /usr/ and yet have everything installed to /tmp/somedir/usr/.
7 # Normally it is left empty.
8 INSTALL_PREFIX=
9-INSTALLTOP=/usr/local/ssl
10+INSTALLTOP=/usr
11
12 # Do not edit this manually. Use Configure --openssldir=DIR do change this!
13-OPENSSLDIR=/usr/local/ssl
14+OPENSSLDIR=/usr/lib/ssl
15
16 # NO_IDEA - Define to build without the IDEA algorithm
17 # NO_RC4 - Define to build without the RC4 algorithm
18@@ -133,12 +133,13 @@ TESTS = alltests
19
20 MAKEFILE= Makefile
21
22-MANDIR=$(OPENSSLDIR)/man
23+MANDIR=/usr/share/man
24 MAN1=1
25 MAN3=3
26-MANSUFFIX=
27+MANSUFFIX=ssl
28+MANSECTION=SSL
29 HTMLSUFFIX=html
30-HTMLDIR=$(OPENSSLDIR)/html
31+HTMLDIR=/usr/share/doc/openssl/html
32 SHELL=/bin/sh
33
34 TOP= .
35@@ -149,8 +150,8 @@ LIBS= libcrypto.a libssl.a
36 SHARED_CRYPTO=libcrypto$(SHLIB_EXT)
37 SHARED_SSL=libssl$(SHLIB_EXT)
38 SHARED_LIBS=
39-SHARED_LIBS_LINK_EXTS=
40-SHARED_LDFLAGS=
41+SHARED_LIBS_LINK_EXTS=.so
42+SHARED_LDFLAGS=-m64 -Wl,--version-script=openssl.ld
43
44 GENERAL= Makefile
45 BASENAME= openssl
46@@ -324,7 +325,8 @@ libcrypto.pc: Makefile
47 echo 'Description: OpenSSL cryptography library'; \
48 echo 'Version: '$(VERSION); \
49 echo 'Requires: '; \
50- echo 'Libs: -L$${libdir} -lcrypto $(EX_LIBS)'; \
51+ echo 'Libs: -L$${libdir} -lcrypto'; \
52+ echo 'Libs.private: $(EX_LIBS)'; \
53 echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libcrypto.pc
54
55 libssl.pc: Makefile
56@@ -337,7 +339,8 @@ libssl.pc: Makefile
57 echo 'Description: Secure Sockets Layer and cryptography libraries'; \
58 echo 'Version: '$(VERSION); \
59 echo 'Requires: '; \
60- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
61+ echo 'Libs: -L$${libdir} -lssl'; \
62+ echo 'Libs.private: -lcrypto $(EX_LIBS)'; \
63 echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libssl.pc
64
65 openssl.pc: Makefile
66@@ -350,7 +353,8 @@ openssl.pc: Makefile
67 echo 'Description: Secure Sockets Layer and cryptography libraries and tools'; \
68 echo 'Version: '$(VERSION); \
69 echo 'Requires: '; \
70- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
71+ echo 'Libs: -L$${libdir} -lssl -lcrypto'; \
72+ echo 'Libs.private: $(EX_LIBS)'; \
73 echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > openssl.pc
74
75 Makefile: Makefile.org Configure config
76@@ -499,7 +503,7 @@ install: all install_docs install_sw
77 install_sw:
78 @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \
79 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR) \
80- $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines \
81+ $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines \
82 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig \
83 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \
84 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc \
85@@ -608,7 +612,7 @@ install_docs:
86 echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
87 (cd `$(PERL) util/dirname.pl $$i`; \
88 sh -c "$$pod2man \
89- --section=$$sec --center=OpenSSL \
90+ --section=$${sec}$(MANSECTION) --center=OpenSSL \
91 --release=$(VERSION) `basename $$i`") \
92 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
93 $(PERL) util/extract-names.pl < $$i | \
94@@ -625,7 +629,7 @@ install_docs:
95 echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
96 (cd `$(PERL) util/dirname.pl $$i`; \
97 sh -c "$$pod2man \
98- --section=$$sec --center=OpenSSL \
99+ --section=$${sec}$(MANSECTION) --center=OpenSSL \
100 --release=$(VERSION) `basename $$i`") \
101 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
102 $(PERL) util/extract-names.pl < $$i | \
103Index: openssl-1.0.0/Configure
104===================================================================
105--- openssl-1.0.0.orig/Configure
106+++ openssl-1.0.0/Configure
107@@ -1,4 +1,4 @@
108-:
109+#!/usr/local/bin/perl
110 eval 'exec perl -S $0 ${1+"$@"}'
111 if $running_under_some_shell;
112 ##
113@@ -331,6 +331,44 @@ my %table=(
114 "osf1-alpha-cc", "cc:-std1 -tune host -O4 -readonly_strings::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${alpha_asm}:dlfcn:alpha-osf1-shared:::.so",
115 "tru64-alpha-cc", "cc:-std1 -tune host -fast -readonly_strings::-pthread:::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${alpha_asm}:dlfcn:alpha-osf1-shared::-msym:.so",
116
117+# Debian GNU/* (various architectures)
118+"debian-alpha","gcc:-DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
119+"debian-alpha-ev4","gcc:-DTERMIO -O3 -Wa,--noexecstack -mcpu=ev4 -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
120+"debian-alpha-ev5","gcc:-DTERMIO -O3 -Wa,--noexecstack -mcpu=ev5 -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
121+"debian-arm","gcc:-DL_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
122+"debian-armeb","gcc:-DB_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
123+"debian-armel","gcc:-DL_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
124+"debian-amd64", "gcc:-m64 -DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK RC4_CHAR BF_PTR2 DES_INT DES_UNROLL:${x86_64_asm}:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
125+"debian-kfreebsd-amd64","gcc:-m64 -DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -Wall -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK BF_PTR2 DES_INT DES_UNROLL:${x86_64_asm}:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
126+"debian-kfreebsd-i386","gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
127+"debian-hppa","gcc:-DB_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG MD2_CHAR RC4_INDEX:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
128+"debian-hurd-i386","gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
129+"debian-ia64","gcc:-DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK RC4_CHAR:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
130+"debian-i386","gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
131+"debian-i386-i486","gcc:-DL_ENDIAN -DTERMIO -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
132+"debian-i386-i586","gcc:-DL_ENDIAN -DTERMIO -O3 -march=i586 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
133+"debian-i386-i686/cmov","gcc:-DL_ENDIAN -DTERMIO -O3 -march=i686 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
134+"debian-m68k","gcc:-DB_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG MD2_CHAR RC4_INDEX:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
135+"debian-mips", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -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)",
136+"debian-mipsel", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -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)",
137+"debian-netbsd-i386", "gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486 -Wall::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:::::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
138+"debian-netbsd-m68k", "gcc:-DB_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -Wall::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
139+"debian-netbsd-sparc", "gcc:-DB_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -mv8 -Wall::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL:::::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
140+"debian-openbsd-alpha","gcc:-DTERMIOS -O3 -Wa,--noexecstack -g::(unknown):::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC2:::::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
141+"debian-openbsd-i386", "gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
142+"debian-openbsd-mips","gcc:-O2 -Wa,--noexecstack -g -DL_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC2 DES_PTR BF_PTR::::::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
143+"debian-powerpc","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_UNROLL DES_RISC2 DES_PTR MD2_CHAR RC4_INDEX::linux_ppc32.o:::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
144+"debian-ppc64","gcc:-m64 -DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL::linux_ppc64.o:::::::::::::dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
145+"debian-s390","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
146+"debian-sh3", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
147+"debian-sh4", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
148+"debian-sh3eb", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
149+"debian-sh4eb", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
150+"debian-m32r","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
151+"debian-sparc","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:::::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
152+"debian-sparc-v8","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -mcpu=v8 -g -Wall -DBN_DIV2W::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::sparcv8.o:des_enc-sparc.o fcrypt_b.o::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
153+"debian-sparc-v9","gcc:-DB_ENDIAN -DTERMIO -O3 -mcpu=v9 -Wa,--noexecstack -Wa,-Av8plus -g -Wall -DULTRASPARC -DBN_DIV2W::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::sparcv8plus.o:des_enc-sparc.o fcrypt_b.o:::md5-sparcv8plus.o:::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
154+
155 ####
156 #### Variety of LINUX:-)
157 ####
158@@ -529,7 +567,7 @@ my %table=(
159 # Cygwin
160 "Cygwin-pre1.3", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::(unknown):CYGWIN32::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${no_asm}:win32",
161 "Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall:::CYGWIN32::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_asm}:coff:dlfcn:cygwin-shared:-D_WINDLL:-shared:.dll.a",
162-"debug-Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -march=i486 -Wall -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DOPENSSL_NO_ASM -g -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror:::CYGWIN32:::${no_asm}:dlfcn:cygwin-shared:-D_WINDLL:-shared:.dll.a",
163+-"debug-Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -march=i486 -Wall -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DOPENSSL_NO_ASM -g -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror:::CYGWIN32:::${no_asm}:dlfcn:cygwin-shared:-D_WINDLL:-shared:.dll.a",
164
165 # NetWare from David Ward (dsward@novell.com)
166 # requires either MetroWerks NLM development tools, or gcc / nlmconv
167@@ -1465,6 +1503,8 @@ if ($strict_warnings)
168 }
169 }
170
171+$shared_ldflag .= " -Wl,--version-script=openssl.ld";
172+
173 open(IN,'<Makefile.org') || die "unable to read Makefile.org:$!\n";
174 unlink("$Makefile.new") || die "unable to remove old $Makefile.new:$!\n" if -e "$Makefile.new";
175 open(OUT,">$Makefile.new") || die "unable to create $Makefile.new:$!\n";
176@@ -1555,7 +1595,8 @@ while (<IN>)
177 elsif ($shared_extension ne "" && $shared_extension =~ /^\.s([ol])\.[^\.]*\.[^\.]*$/)
178 {
179 my $sotmp = $1;
180- s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_MAJOR) .s$sotmp/;
181+# s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_MAJOR) .s$sotmp/;
182+ s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp/;
183 }
184 elsif ($shared_extension ne "" && $shared_extension =~ /^\.[^\.]*\.[^\.]*\.dylib$/)
185 {
186@@ -1683,7 +1724,7 @@ while (<IN>)
187 }
188 elsif (/^#define\s+ENGINESDIR/)
189 {
190- my $foo = "$prefix/$libdir/engines";
191+ my $foo = "$prefix/lib/ssl/engines";
192 $foo =~ s/\\/\\\\/g;
193 print OUT "#define ENGINESDIR \"$foo\"\n";
194 }
195Index: openssl-1.0.0/config
196===================================================================
197--- openssl-1.0.0.orig/config
198+++ openssl-1.0.0/config
199@@ -170,8 +170,8 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${
200 echo "${MACHINE}-whatever-linux1"; exit 0
201 ;;
202
203- GNU*)
204- echo "hurd-x86"; exit 0;
205+ GNU:*|GNU/*:*)
206+ echo "${MACHINE}-gnuish"; exit 0;
207 ;;
208
209 LynxOS:*)
210Index: openssl-1.0.0/Makefile.org
211===================================================================
212--- openssl-1.0.0.orig/Makefile.org
213+++ openssl-1.0.0/Makefile.org
214@@ -131,12 +131,13 @@ TESTS = alltests
215
216 MAKEFILE= Makefile
217
218-MANDIR=$(OPENSSLDIR)/man
219+MANDIR=/usr/share/man
220 MAN1=1
221 MAN3=3
222-MANSUFFIX=
223+MANSUFFIX=ssl
224+MANSECTION=SSL
225 HTMLSUFFIX=html
226-HTMLDIR=$(OPENSSLDIR)/html
227+HTMLDIR=/usr/share/doc/openssl/html
228 SHELL=/bin/sh
229
230 TOP= .
231@@ -322,7 +323,8 @@ libcrypto.pc: Makefile
232 echo 'Description: OpenSSL cryptography library'; \
233 echo 'Version: '$(VERSION); \
234 echo 'Requires: '; \
235- echo 'Libs: -L$${libdir} -lcrypto $(EX_LIBS)'; \
236+ echo 'Libs: -L$${libdir} -lcrypto'; \
237+ echo 'Libs.private: $(EX_LIBS)'; \
238 echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libcrypto.pc
239
240 libssl.pc: Makefile
241@@ -335,7 +337,8 @@ libssl.pc: Makefile
242 echo 'Description: Secure Sockets Layer and cryptography libraries'; \
243 echo 'Version: '$(VERSION); \
244 echo 'Requires: '; \
245- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
246+ echo 'Libs: -L$${libdir} -lssl'; \
247+ echo 'Libs.private: -lcrypto $(EX_LIBS)'; \
248 echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libssl.pc
249
250 openssl.pc: Makefile
251@@ -348,7 +351,8 @@ openssl.pc: Makefile
252 echo 'Description: Secure Sockets Layer and cryptography libraries and tools'; \
253 echo 'Version: '$(VERSION); \
254 echo 'Requires: '; \
255- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
256+ echo 'Libs: -L$${libdir} -lssl -lcrypto'; \
257+ echo 'Libs.private: $(EX_LIBS)'; \
258 echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > openssl.pc
259
260 Makefile: Makefile.org Configure config
261@@ -497,7 +501,7 @@ install: all install_docs install_sw
262 install_sw:
263 @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \
264 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR) \
265- $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines \
266+ $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines \
267 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig \
268 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \
269 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc \
270@@ -606,7 +610,7 @@ install_docs:
271 echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
272 (cd `$(PERL) util/dirname.pl $$i`; \
273 sh -c "$$pod2man \
274- --section=$$sec --center=OpenSSL \
275+ --section=$${sec}$(MANSECTION) --center=OpenSSL \
276 --release=$(VERSION) `basename $$i`") \
277 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
278 $(PERL) util/extract-names.pl < $$i | \
279@@ -623,7 +627,7 @@ install_docs:
280 echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
281 (cd `$(PERL) util/dirname.pl $$i`; \
282 sh -c "$$pod2man \
283- --section=$$sec --center=OpenSSL \
284+ --section=$${sec}$(MANSECTION) --center=OpenSSL \
285 --release=$(VERSION) `basename $$i`") \
286 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
287 $(PERL) util/extract-names.pl < $$i | \
288Index: openssl-1.0.0/openssl.ld
289===================================================================
290--- /dev/null
291+++ openssl-1.0.0/openssl.ld
292@@ -0,0 +1,5 @@
293+OPENSSL_0.9.8 {
294+ global:
295+ *;
296+};
297+
298Index: openssl-1.0.0/engines/openssl.ld
299===================================================================
300--- /dev/null
301+++ openssl-1.0.0/engines/openssl.ld
302@@ -0,0 +1,5 @@
303+OPENSSL_0.9.8 {
304+ global:
305+ *;
306+};
307+
308Index: openssl-1.0.0/doc/Makefile
309===================================================================
310--- /dev/null
311+++ openssl-1.0.0/doc/Makefile
312@@ -0,0 +1,40 @@
313+VERSION =
314+
315+#PODS = $(wildcard *.pod)
316+#MANS = $(addsuffix .man, $(basename $(PODS)))
317+
318+MANS = openssl.1 ssl.3 crypto.3
319+
320+P2M = pod2man --center='OpenSSL Documentation' --release="OpenSSL $(VERSION)"
321+
322+all: manpages
323+
324+.PHONY: manpages
325+
326+manpages: openssl.1 crypto.3 ssl.3
327+
328+openssl.1:
329+ $(P2M) --section=1 openssl.pod > openssl.1
330+
331+crypto.3:
332+ $(P2M) --section=3 crypto.pod > crypto.3
333+
334+ssl.3:
335+ $(P2M) --section=3 ssl.pod > ssl.3
336+
337+.PHONY: install
338+install:
339+ mkdir -p $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man1
340+ mkdir -p $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man3
341+ install -m 644 -p openssl.1 $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man1
342+ install -m 644 -p crypto.3 $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man3
343+ install -m 644 -p ssl.3 $(INSTALL_PREFIX)$(INSTALLTOP)/share/man/man3
344+ rm -f $(MANS)
345+
346+.PHONY: clean
347+clean:
348+ rm -f $(MANS)
349+
350+.PHONY: realclean
351+realclean:
352+ -$(MAKE) clean
353Index: openssl-1.0.0/doc/apps/c_rehash.pod
354===================================================================
355--- /dev/null
356+++ openssl-1.0.0/doc/apps/c_rehash.pod
357@@ -0,0 +1,55 @@
358+
359+=pod
360+
361+=head1 NAME
362+
363+c_rehash - Create symbolic links to files named by the hash values
364+
365+=head1 SYNOPSIS
366+
367+B<c_rehash>
368+[directory] ...
369+
370+=head1 DESCRIPTION
371+
372+c_rehash scans directories and takes a hash value of each .pem and .crt file in the directory. It then creates symbolic links for each of the files named by the hash value. This is useful as many programs require directories to be set up like this in order to find the certificates they require.
373+
374+If any directories are named on the command line then these directories are processed in turn. If not then and the environment variable SSL_CERT_DIR is defined then that is consulted. This variable should be a colon (:) separated list of directories, all of which will be processed. If neither of these conditions are true then /usr/lib/ssl/certs is processed.
375+
376+For each directory that is to be processed he user must have write permissions on the directory, if they do not then nothing will be printed for that directory.
377+
378+Note that this program deletes all the symbolic links that look like ones that it creates before processing a directory. Beware that if you run the program on a directory that contains symbolic links for other purposes that are named in the same format as those created by this program they will be lost.
379+
380+The hashes for certificate files are of the form <hash>.<n> where n is an integer. If the hash value already exists then n will be incremented, unless the file is a duplicate. Duplicates are detected using the fingerprint of the certificate. A warning will be printed if a duplicate is detected. The hashes for CRL files are of the form <hash>.r<n> and have the same behavior.
381+
382+The program will also warn if there are files with extension .pem which are not certificate or CRL files.
383+
384+The program uses the openssl program to compute the hashes and fingerprints. It expects the executable to be named openssl and be on the PATH, or in the /usr/lib/ssl/bin directory. If the OPENSSL environment variable is defined then this is used instead as the executable that provides the hashes and fingerprints. When called as $OPENSSL x509 -hash -fingerprint -noout -in $file it must output the hash of $file on the first line followed by the fingerprint on the second line, optionally prefixed with some text and an equals sign (=).
385+
386+=head1 OPTIONS
387+
388+None
389+
390+=head1 ENVIRONMENT
391+
392+=over 4
393+
394+=item B<OPENSSL>
395+
396+The name (and path) of an executable to use to generate hashes and fingerprints (see above).
397+
398+=item B<SSL_CERT_DIR>
399+
400+Colon separated list of directories to operate on. Ignored if directories are listed on the command line.
401+
402+=head1 SEE ALSO
403+
404+L<openssl(1)|openssl(1)>, L<x509(1)|x509(1)>
405+
406+=back
407+
408+=head1 BUGS
409+
410+No known bugs
411+
412+=cut
413Index: openssl-1.0.0/crypto/opensslconf.h
414===================================================================
415--- openssl-1.0.0.orig/crypto/opensslconf.h
416+++ openssl-1.0.0/crypto/opensslconf.h
417@@ -11,6 +11,9 @@
418 #ifndef OPENSSL_NO_JPAKE
419 # define OPENSSL_NO_JPAKE
420 #endif
421+#ifndef OPENSSL_NO_IDEA
422+# define OPENSSL_NO_IDEA
423+#endif
424 #ifndef OPENSSL_NO_KRB5
425 # define OPENSSL_NO_KRB5
426 #endif
427@@ -44,6 +47,9 @@
428 # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
429 # define NO_JPAKE
430 # endif
431+# if defined(OPENSSL_NO_IDEA) && !defined(NO_IDEA)
432+# define NO_IDEA
433+# endif
434 # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
435 # define NO_KRB5
436 # endif
437@@ -68,8 +74,8 @@
438
439 #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
440 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
441-#define ENGINESDIR "/usr/local/ssl/lib/engines"
442-#define OPENSSLDIR "/usr/local/ssl"
443+#define ENGINESDIR "/usr/lib/ssl/engines"
444+#define OPENSSLDIR "/usr/lib/ssl"
445 #endif
446 #endif
447
448@@ -100,14 +106,14 @@
449 * - Intel P6 because partial register stalls are very expensive;
450 * - elder Alpha because it lacks byte load/store instructions;
451 */
452-#define RC4_INT unsigned int
453+#define RC4_INT unsigned char
454 #endif
455 #if !defined(RC4_CHUNK)
456 /*
457 * This enables code handling data aligned at natural CPU word
458 * boundary. See crypto/rc4/rc4_enc.c for further details.
459 */
460-#undef RC4_CHUNK
461+#define RC4_CHUNK unsigned long
462 #endif
463 #endif
464
465@@ -115,7 +121,7 @@
466 /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
467 * %20 speed up (longs are 8 bytes, int's are 4). */
468 #ifndef DES_LONG
469-#define DES_LONG unsigned long
470+#define DES_LONG unsigned int
471 #endif
472 #endif
473
474@@ -126,9 +132,9 @@
475 /* Should we define BN_DIV2W here? */
476
477 /* Only one for the following should be defined */
478-#undef SIXTY_FOUR_BIT_LONG
479+#define SIXTY_FOUR_BIT_LONG
480 #undef SIXTY_FOUR_BIT
481-#define THIRTY_TWO_BIT
482+#undef THIRTY_TWO_BIT
483 #endif
484
485 #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
486@@ -140,7 +146,7 @@
487
488 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
489 #define CONFIG_HEADER_BF_LOCL_H
490-#undef BF_PTR
491+#define BF_PTR2
492 #endif /* HEADER_BF_LOCL_H */
493
494 #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
495@@ -170,7 +176,7 @@ YOU SHOULD NOT HAVE BOTH DES_RISC1 AND D
496 /* Unroll the inner loop, this sometimes helps, sometimes hinders.
497 * Very mucy CPU dependant */
498 #ifndef DES_UNROLL
499-#undef DES_UNROLL
500+#define DES_UNROLL
501 #endif
502
503 /* These default values were supplied by
504Index: openssl-1.0.0/crypto/sha/sha.h
505===================================================================
506--- openssl-1.0.0.orig/crypto/sha/sha.h
507+++ openssl-1.0.0/crypto/sha/sha.h
508@@ -59,6 +59,7 @@
509 #ifndef HEADER_SHA_H
510 #define HEADER_SHA_H
511
512+#include <stddef.h>
513 #include <openssl/e_os2.h>
514 #include <stddef.h>
515
diff --git a/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/engines-install-in-libdir-ssl.patch b/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/engines-install-in-libdir-ssl.patch
new file mode 100644
index 000000000..949d6ad8c
--- /dev/null
+++ b/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/engines-install-in-libdir-ssl.patch
@@ -0,0 +1,53 @@
1Index: openssl-1.0.0/engines/Makefile
2===================================================================
3--- openssl-1.0.0.orig/engines/Makefile
4+++ openssl-1.0.0/engines/Makefile
5@@ -107,7 +107,7 @@
6 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
7 @if [ -n "$(SHARED_LIBS)" ]; then \
8 set -e; \
9- $(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines; \
10+ $(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines; \
11 for l in $(LIBNAMES); do \
12 ( echo installing $$l; \
13 pfx=lib; \
14@@ -119,13 +119,13 @@
15 *DSO_WIN32*) sfx="eay32.dll"; pfx=;; \
16 *) sfx=".bad";; \
17 esac; \
18- cp $$pfx$$l$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \
19+ cp $$pfx$$l$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/$$pfx$$l$$sfx.new; \
20 else \
21 sfx=".so"; \
22- cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \
23+ cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/$$pfx$$l$$sfx.new; \
24 fi; \
25- chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \
26- mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx ); \
27+ chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/$$pfx$$l$$sfx.new; \
28+ mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/$$pfx$$l$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/$$pfx$$l$$sfx ); \
29 done; \
30 fi
31 @target=install; $(RECURSIVE_MAKE)
32Index: openssl-1.0.0/engines/ccgost/Makefile
33===================================================================
34--- openssl-1.0.0.orig/engines/ccgost/Makefile
35+++ openssl-1.0.0/engines/ccgost/Makefile
36@@ -53,13 +53,13 @@
37 *DSO_WIN32*) sfx="eay32.dll"; pfx=;; \
38 *) sfx=".bad";; \
39 esac; \
40- cp $${pfx}$(LIBNAME)$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new; \
41+ cp $${pfx}$(LIBNAME)$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/$${pfx}$(LIBNAME)$$sfx.new; \
42 else \
43 sfx=".so"; \
44- cp cyg$(LIBNAME).dll $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new; \
45+ cp cyg$(LIBNAME).dll $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/$${pfx}$(LIBNAME)$$sfx.new; \
46 fi; \
47- chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new; \
48- mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx; \
49+ chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/$${pfx}$(LIBNAME)$$sfx.new; \
50+ mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/$${pfx}$(LIBNAME)$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/$${pfx}$(LIBNAME)$$sfx; \
51 fi
52
53 links:
diff --git a/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/libdeps-first.patch b/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/libdeps-first.patch
new file mode 100644
index 000000000..1fda69ba9
--- /dev/null
+++ b/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/libdeps-first.patch
@@ -0,0 +1,27 @@
1Links to previously staged 0.9.8* easily otherwise
2
3Index: openssl-1.0.0/Makefile.shared
4===================================================================
5--- openssl-1.0.0.orig/Makefile.shared
6+++ openssl-1.0.0/Makefile.shared
7@@ -96,7 +96,7 @@
8 LIBPATH=`for x in $$LIBDEPS; do echo $$x; done | sed -e 's/^ *-L//;t' -e d | uniq`; \
9 LIBPATH=`echo $$LIBPATH | sed -e 's/ /:/g'`; \
10 LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \
11- $${LDCMD} $${LDFLAGS} -o $${APPNAME:=$(APPNAME)} $(OBJECTS) $${LIBDEPS} )
12+ $${LDCMD} $${LIBDEPS} $${LDFLAGS} -o $${APPNAME:=$(APPNAME)} $(OBJECTS) )
13
14 LINK_SO= \
15 ( $(SET_X); \
16@@ -106,9 +106,9 @@
17 LIBPATH=`for x in $$LIBDEPS; do echo $$x; done | sed -e 's/^ *-L//;t' -e d | uniq`; \
18 LIBPATH=`echo $$LIBPATH | sed -e 's/ /:/g'`; \
19 LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \
20- $${SHAREDCMD} $${SHAREDFLAGS} \
21+ $${SHAREDCMD} $$LIBDEPS $${SHAREDFLAGS} \
22 -o $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX \
23- $$ALLSYMSFLAGS $$SHOBJECTS $$NOALLSYMSFLAGS $$LIBDEPS \
24+ $$ALLSYMSFLAGS $$SHOBJECTS $$NOALLSYMSFLAGS \
25 ) && $(SYMLINK_SO)
26
27 SYMLINK_SO= \
diff --git a/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/oe-ldflags.patch b/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/oe-ldflags.patch
new file mode 100644
index 000000000..3dd3bedab
--- /dev/null
+++ b/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/oe-ldflags.patch
@@ -0,0 +1,22 @@
1Index: openssl-1.0.0/Makefile.shared
2===================================================================
3--- openssl-1.0.0.orig/Makefile.shared
4+++ openssl-1.0.0/Makefile.shared
5@@ -92,7 +92,7 @@
6 LINK_APP= \
7 ( $(SET_X); \
8 LIBDEPS="$${LIBDEPS:-$(LIBDEPS)}"; \
9- LDCMD="$${LDCMD:-$(CC)}"; LDFLAGS="$${LDFLAGS:-$(CFLAGS)}"; \
10+ LDCMD="$${LDCMD:-$(CC)}"; LDFLAGS="$(OE_LDFLAGS) $${LDFLAGS:-$(CFLAGS)}"; \
11 LIBPATH=`for x in $$LIBDEPS; do echo $$x; done | sed -e 's/^ *-L//;t' -e d | uniq`; \
12 LIBPATH=`echo $$LIBPATH | sed -e 's/ /:/g'`; \
13 LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \
14@@ -102,7 +102,7 @@
15 ( $(SET_X); \
16 LIBDEPS="$${LIBDEPS:-$(LIBDEPS)}"; \
17 SHAREDCMD="$${SHAREDCMD:-$(CC)}"; \
18- SHAREDFLAGS="$${SHAREDFLAGS:-$(CFLAGS) $(SHARED_LDFLAGS)}"; \
19+ SHAREDFLAGS="$(OE_LDFLAGS) $${SHAREDFLAGS:-$(CFLAGS) $(SHARED_LDFLAGS)}"; \
20 LIBPATH=`for x in $$LIBDEPS; do echo $$x; done | sed -e 's/^ *-L//;t' -e d | uniq`; \
21 LIBPATH=`echo $$LIBPATH | sed -e 's/ /:/g'`; \
22 LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \
diff --git a/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/shared-libs.patch b/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/shared-libs.patch
new file mode 100644
index 000000000..7cd70d8fd
--- /dev/null
+++ b/meta-oe/recipes-connectivity/openssl/openssl-1.0.0c/shared-libs.patch
@@ -0,0 +1,48 @@
1Index: openssl-1.0.0/crypto/Makefile
2===================================================================
3--- openssl-1.0.0.orig/crypto/Makefile
4+++ openssl-1.0.0/crypto/Makefile
5@@ -104,7 +104,7 @@
6
7 shared: buildinf.h lib subdirs
8 if [ -n "$(SHARED_LIBS)" ]; then \
9- (cd ..; $(MAKE) $(SHARED_LIB)); \
10+ (cd ..; $(MAKE) -e $(SHARED_LIB)); \
11 fi
12
13 libs:
14Index: openssl-1.0.0/Makefile.org
15===================================================================
16--- openssl-1.0.0.orig/Makefile.org
17+++ openssl-1.0.0/Makefile.org
18@@ -260,7 +260,7 @@
19
20 libcrypto$(SHLIB_EXT): libcrypto.a
21 @if [ "$(SHLIB_TARGET)" != "" ]; then \
22- $(MAKE) SHLIBDIRS=crypto build-shared; \
23+ $(MAKE) -e SHLIBDIRS=crypto build-shared; \
24 else \
25 echo "There's no support for shared libraries on this platform" >&2; \
26 exit 1; \
27@@ -268,7 +268,7 @@
28
29 libssl$(SHLIB_EXT): libcrypto$(SHLIB_EXT) libssl.a
30 @if [ "$(SHLIB_TARGET)" != "" ]; then \
31- $(MAKE) SHLIBDIRS=ssl SHLIBDEPS='-lcrypto' build-shared; \
32+ $(MAKE) -e SHLIBDIRS=ssl SHLIBDEPS='-lcrypto' build-shared; \
33 else \
34 echo "There's no support for shared libraries on this platform" >&2; \
35 exit 1; \
36Index: openssl-1.0.0/ssl/Makefile
37===================================================================
38--- openssl-1.0.0.orig/ssl/Makefile
39+++ openssl-1.0.0/ssl/Makefile
40@@ -62,7 +62,7 @@
41
42 shared: lib
43 if [ -n "$(SHARED_LIBS)" ]; then \
44- (cd ..; $(MAKE) $(SHARED_LIB)); \
45+ (cd ..; $(MAKE) -e $(SHARED_LIB)); \
46 fi
47
48 files:
diff --git a/meta-oe/recipes-connectivity/openssl/openssl-native_1.0.0c.bb b/meta-oe/recipes-connectivity/openssl/openssl-native_1.0.0c.bb
new file mode 100644
index 000000000..8483293b9
--- /dev/null
+++ b/meta-oe/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/meta-oe/recipes-connectivity/openssl/openssl.inc b/meta-oe/recipes-connectivity/openssl/openssl.inc
new file mode 100644
index 000000000..86b29f0af
--- /dev/null
+++ b/meta-oe/recipes-connectivity/openssl/openssl.inc
@@ -0,0 +1,127 @@
1DESCRIPTION = "Secure Socket Layer (SSL) binary and related cryptographic tools."
2HOMEPAGE = "http://www.openssl.org/"
3SECTION = "libs/network"
4
5# "openssl | SSLeay" dual license
6LICENSE = "openssl"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=83d26c69f6f0172ee7f795790424b453"
8
9SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz;name=src"
10S = "${WORKDIR}/openssl-${PV}"
11
12inherit siteinfo
13
14INC_PR = "r13"
15
16AR_append = " r"
17CFLAG = "${@base_conditional('SITEINFO_ENDIANNESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)} \
18 -DTERMIO ${FULL_OPTIMIZATION} -Wall"
19
20# -02 does not work on mipsel: ssh hangs when it tries to read /dev/urandom
21CFLAG_mtx-1 := "${@'${CFLAG}'.replace('-O2', '')}"
22CFLAG_mtx-2 := "${@'${CFLAG}'.replace('-O2', '')}"
23
24export DIRS = "crypto ssl apps"
25BBCLASSEXTEND = "native nativesdk"
26
27export EX_LIBS = "-lgcc -ldl"
28export AS = "${CC} -c"
29
30PACKAGES =+ "libcrypto libssl ${PN}-misc"
31FILES_libcrypto = "${libdir}/libcrypto.so.*"
32FILES_libssl = "${libdir}/libssl.so.*"
33FILES_${PN}-misc = "${libdir}/ssl/misc ${libdir}/ssl/openssl.cnf"
34
35do_configure_prepend_darwin () {
36 sed -i -e '/version-script=openssl\.ld/d' Configure
37}
38
39do_configure () {
40 cd util
41 perl perlpath.pl ${STAGING_BINDIR_NATIVE}
42 cd ..
43 ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/
44
45 os=${HOST_OS}
46 if [ "x$os" = "xlinux-uclibc" ]; then
47 os=linux
48 elif [ "x$os" = "xlinux-uclibceabi" ]; then
49 os=linux
50 elif [ "x$os" = "xlinux-gnueabi" ]; then
51 os=linux
52 fi
53 target="$os-${HOST_ARCH}"
54 case $target in
55 linux-arm)
56 target=linux-elf-arm
57 ;;
58 linux-armeb)
59 target=linux-elf-armeb
60 ;;
61 linux-sh3)
62 target=debian-sh3
63 ;;
64 linux-sh4)
65 target=debian-sh4
66 ;;
67 linux-i486)
68 target=debian-i386-i486
69 ;;
70 linux-i586 | linux-viac3)
71 target=debian-i386-i586
72 ;;
73 linux-i686)
74 target=debian-i386-i686/cmov
75 ;;
76 linux-mips)
77 target=debian-mips
78 ;;
79 linux-mipsel)
80 target=debian-mipsel
81 ;;
82 linux-powerpc)
83 target=linux-ppc
84 ;;
85 linux-gnuspe-powerpc)
86 target=linux-ppc
87 ;;
88 linux-supersparc)
89 target=linux-sparcv8
90 ;;
91 linux-sparc)
92 target=linux-sparcv8
93 ;;
94 darwin-i386)
95 target=darwin-i386-cc
96 ;;
97 esac
98 # inject machine-specific flags
99 sed -i -e "s|^\(\"$target\",\s*\"[^:]\+\):\([^:]\+\)|\1:${CFLAG}|g" Configure
100 useprefix=${prefix}
101 if [ "x$useprefix" == "x" ]; then
102 useprefix=/
103 fi
104 perl ./Configure shared --prefix=$useprefix --openssldir=${libdir}/ssl $target
105}
106
107do_compile () {
108 oe_runmake
109}
110
111do_install () {
112 oe_runmake INSTALL_PREFIX="${D}" install
113
114 # On x86_64, move lib/* to lib64
115 if [ "${libdir}" != "${prefix}/lib" ]
116 then
117 install -d ${D}${libdir} ${D}${libdir}/pkgconfig
118 mv ${D}${prefix}/lib/lib* ${D}${libdir}
119 mv ${D}${prefix}/lib/pkgconfig/*.pc ${D}${libdir}/pkgconfig
120 fi
121
122 oe_libinstall -so libcrypto ${D}${libdir}
123 oe_libinstall -so libssl ${D}${libdir}
124
125 install -d ${D}${includedir}
126 cp --dereference -R include/openssl ${D}${includedir}
127}
diff --git a/meta-oe/recipes-connectivity/openssl/openssl_0.9.8m.bb b/meta-oe/recipes-connectivity/openssl/openssl_0.9.8m.bb
new file mode 100644
index 000000000..a7eb33285
--- /dev/null
+++ b/meta-oe/recipes-connectivity/openssl/openssl_0.9.8m.bb
@@ -0,0 +1,16 @@
1inherit pkgconfig
2
3require openssl.inc
4SRC_URI[src.md5sum] = "898bf125370926d5f692a2201124f8ec"
5SRC_URI[src.sha256sum] = "36037160281cf4977d964e403d2bc0680fbca0a7ff9f65e33136d75fae12cb5b"
6
7PR = "${INC_PR}.0"
8
9export OE_LDFLAGS="${LDFLAGS}"
10
11SRC_URI += "file://configure-targets.patch \
12 file://shared-libs.patch \
13 file://debian.patch \
14 file://oe-ldflags.patch"
15
16PARALLEL_MAKE = ""
diff --git a/meta-oe/recipes-connectivity/openssl/openssl_1.0.0c.bb b/meta-oe/recipes-connectivity/openssl/openssl_1.0.0c.bb
new file mode 100644
index 000000000..9348e53c8
--- /dev/null
+++ b/meta-oe/recipes-connectivity/openssl/openssl_1.0.0c.bb
@@ -0,0 +1,36 @@
1inherit pkgconfig
2
3require openssl.inc
4
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"
14
15DEFAULT_PREFERENCE = "-1"
16
17export DIRS = "crypto ssl apps engines"
18export OE_LDFLAGS="${LDFLAGS}"
19
20SRC_URI += "file://configure-targets.patch \
21 file://shared-libs.patch \
22 file://debian.patch \
23 file://oe-ldflags.patch \
24 file://libdeps-first.patch \
25 file://engines-install-in-libdir-ssl.patch \
26 "
27
28PARALLEL_MAKE = ""
29
30PACKAGES += " \
31 ${PN}-engines \
32 ${PN}-engines-dbg \
33 "
34
35FILES_${PN}-engines = "${libdir}/ssl/engines/*.so"
36FILES_${PN}-engines-dbg = "${libdir}/ssl/engines/.debug"