summaryrefslogtreecommitdiff
path: root/sdk/recipes/patches
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2017-03-29 19:23:41 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2017-03-29 19:23:41 +0100
commit3b27b283d9f4dd4fcdf0c5c0da40322d9d5e7582 (patch)
tree95b2c794e3637f95b0fb27b2a29c549cf089e9f1 /sdk/recipes/patches
parentfc683bcd756550c4747d7118b69d6ad21bee8895 (diff)
downloadtoolchains-3b27b283d9f4dd4fcdf0c5c0da40322d9d5e7582.tar.gz
toolchains-3b27b283d9f4dd4fcdf0c5c0da40322d9d5e7582.tar.bz2
Fix OpenSSL random number generator on AmigaOS
This fixes an issue with libcurl 7.53.1 which refuses to connect due to weak random seed (previous versions would connect regardless) This patch is derived from the one used by AmiSSL
Diffstat (limited to 'sdk/recipes/patches')
-rw-r--r--sdk/recipes/patches/openssl/m68k-unknown-amigaos/crypto.rand.Makefile.p14
-rw-r--r--sdk/recipes/patches/openssl/m68k-unknown-amigaos/crypto.rand.rand_unix.c.p11
-rw-r--r--sdk/recipes/patches/openssl/ppc-amigaos/crypto.rand.Makefile.p14
-rw-r--r--sdk/recipes/patches/openssl/ppc-amigaos/crypto.rand.rand_unix.c.p11
4 files changed, 50 insertions, 0 deletions
diff --git a/sdk/recipes/patches/openssl/m68k-unknown-amigaos/crypto.rand.Makefile.p b/sdk/recipes/patches/openssl/m68k-unknown-amigaos/crypto.rand.Makefile.p
new file mode 100644
index 0000000..623f599
--- /dev/null
+++ b/sdk/recipes/patches/openssl/m68k-unknown-amigaos/crypto.rand.Makefile.p
@@ -0,0 +1,14 @@
+--- crypto/rand/Makefile 2017-03-29 18:44:57.752006689 +0100
++++ crypto/rand/Makefile 2017-03-29 18:45:23.976006610 +0100
+@@ -18,9 +18,9 @@ APPS=
+
+ LIB=$(TOP)/libcrypto.a
+ LIBSRC=md_rand.c randfile.c rand_lib.c rand_err.c rand_egd.c \
+- rand_win.c rand_unix.c rand_os2.c rand_nw.c
++ rand_win.c rand_unix.c rand_os2.c rand_nw.c rand_amiga.c
+ LIBOBJ=md_rand.o randfile.o rand_lib.o rand_err.o rand_egd.o \
+- rand_win.o rand_unix.o rand_os2.o rand_nw.o
++ rand_win.o rand_unix.o rand_os2.o rand_nw.o rand_amiga.o
+
+ SRC= $(LIBSRC)
+
diff --git a/sdk/recipes/patches/openssl/m68k-unknown-amigaos/crypto.rand.rand_unix.c.p b/sdk/recipes/patches/openssl/m68k-unknown-amigaos/crypto.rand.rand_unix.c.p
new file mode 100644
index 0000000..2caae57
--- /dev/null
+++ b/sdk/recipes/patches/openssl/m68k-unknown-amigaos/crypto.rand.rand_unix.c.p
@@ -0,0 +1,11 @@
+--- crypto/rand/rand_unix.c 2017-01-26 13:22:03.000000000 +0000
++++ crypto/rand/rand_unix.c 2017-03-29 17:42:59.932017575 +0100
+@@ -116,7 +116,7 @@
+ #include <openssl/rand.h>
+ #include "rand_lcl.h"
+
+-#if !(defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE))
++#if !(defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE) || defined(OPENSSL_SYS_AMIGAOS4) || defined(OPENSSL_SYS_AMIGAOS3))
+
+ # include <sys/types.h>
+ # include <sys/time.h>
diff --git a/sdk/recipes/patches/openssl/ppc-amigaos/crypto.rand.Makefile.p b/sdk/recipes/patches/openssl/ppc-amigaos/crypto.rand.Makefile.p
new file mode 100644
index 0000000..623f599
--- /dev/null
+++ b/sdk/recipes/patches/openssl/ppc-amigaos/crypto.rand.Makefile.p
@@ -0,0 +1,14 @@
+--- crypto/rand/Makefile 2017-03-29 18:44:57.752006689 +0100
++++ crypto/rand/Makefile 2017-03-29 18:45:23.976006610 +0100
+@@ -18,9 +18,9 @@ APPS=
+
+ LIB=$(TOP)/libcrypto.a
+ LIBSRC=md_rand.c randfile.c rand_lib.c rand_err.c rand_egd.c \
+- rand_win.c rand_unix.c rand_os2.c rand_nw.c
++ rand_win.c rand_unix.c rand_os2.c rand_nw.c rand_amiga.c
+ LIBOBJ=md_rand.o randfile.o rand_lib.o rand_err.o rand_egd.o \
+- rand_win.o rand_unix.o rand_os2.o rand_nw.o
++ rand_win.o rand_unix.o rand_os2.o rand_nw.o rand_amiga.o
+
+ SRC= $(LIBSRC)
+
diff --git a/sdk/recipes/patches/openssl/ppc-amigaos/crypto.rand.rand_unix.c.p b/sdk/recipes/patches/openssl/ppc-amigaos/crypto.rand.rand_unix.c.p
new file mode 100644
index 0000000..2caae57
--- /dev/null
+++ b/sdk/recipes/patches/openssl/ppc-amigaos/crypto.rand.rand_unix.c.p
@@ -0,0 +1,11 @@
+--- crypto/rand/rand_unix.c 2017-01-26 13:22:03.000000000 +0000
++++ crypto/rand/rand_unix.c 2017-03-29 17:42:59.932017575 +0100
+@@ -116,7 +116,7 @@
+ #include <openssl/rand.h>
+ #include "rand_lcl.h"
+
+-#if !(defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE))
++#if !(defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE) || defined(OPENSSL_SYS_AMIGAOS4) || defined(OPENSSL_SYS_AMIGAOS3))
+
+ # include <sys/types.h>
+ # include <sys/time.h>