aboutsummaryrefslogtreecommitdiffstats
path: root/main/openssl/1004-crypto-engine-autoload-padlock-dynamic-engine.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-03-27 15:26:41 +0200
committerTimo Teräs <timo.teras@iki.fi>2015-03-27 16:30:45 +0200
commit5891af54e70fd91c02e6f8ab9b2059662b0ecfd4 (patch)
tree027a30ea07a77155c709904664cf91257546cb1a /main/openssl/1004-crypto-engine-autoload-padlock-dynamic-engine.patch
parent1e6108c320c4099cc100e8970ca6d5b9ed3d5d74 (diff)
downloadaports-5891af54e70fd91c02e6f8ab9b2059662b0ecfd4.tar.bz2
aports-5891af54e70fd91c02e6f8ab9b2059662b0ecfd4.tar.xz
main/openssl: fix rpath and turn off ssl compression by default
System wide mitigation for CVE-2012-4929. While most affected programs turn off compression themselves, this is safer default.
Diffstat (limited to 'main/openssl/1004-crypto-engine-autoload-padlock-dynamic-engine.patch')
-rw-r--r--main/openssl/1004-crypto-engine-autoload-padlock-dynamic-engine.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/main/openssl/1004-crypto-engine-autoload-padlock-dynamic-engine.patch b/main/openssl/1004-crypto-engine-autoload-padlock-dynamic-engine.patch
new file mode 100644
index 0000000000..d0cdfb3b3a
--- /dev/null
+++ b/main/openssl/1004-crypto-engine-autoload-padlock-dynamic-engine.patch
@@ -0,0 +1,32 @@
+From a358a1267644829144d6ad35116733ceeef46bf1 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
+Date: Thu, 5 Feb 2015 09:43:37 +0200
+Subject: [PATCH] crypto/engine: autoload padlock dynamic engine
+
+---
+ crypto/engine/eng_all.c | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/crypto/engine/eng_all.c b/crypto/engine/eng_all.c
+index 195a3a9..bd05e4c 100644
+--- a/crypto/engine/eng_all.c
++++ b/crypto/engine/eng_all.c
+@@ -120,6 +120,15 @@ void ENGINE_load_builtin_engines(void)
+ ENGINE_load_capi();
+ # endif
+ #endif
++#ifdef OPENSSL_NO_STATIC_ENGINE
++ {
++ ENGINE *e = ENGINE_by_id("padlock");
++ if (e != NULL) {
++ ENGINE_add(e);
++ ENGINE_free(e);
++ }
++ }
++#endif
+ ENGINE_register_all_complete();
+ }
+
+--
+2.2.2
+