summaryrefslogtreecommitdiffstats
path: root/main/openssl/0004-crypto-engine-autoload-padlock-dynamic-engine.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-06-04 18:11:32 +0300
committerTimo Teräs <timo.teras@iki.fi>2010-06-04 18:26:46 +0300
commit2d8adebb5ac89dda780d75c3b9cad107bfe28f7f (patch)
treeb8ee10a0875ee003f92f11911513ace10e9327d3 /main/openssl/0004-crypto-engine-autoload-padlock-dynamic-engine.patch
parent276b0dae0bde07ef8f4c294def3bbd5bca76f9ca (diff)
downloadaports-2d8adebb5ac89dda780d75c3b9cad107bfe28f7f.tar.bz2
aports-2d8adebb5ac89dda780d75c3b9cad107bfe28f7f.tar.xz
main/openssl: add padlock sha support, autoload dynamic padlock
Add new version of padlock patches which enable: - limited support of VIA C7 SHA acceleration - full support for VIA Nano SHA acceleration Openssl HMAC core is also patched to take full performance out of padlock. Speed application is updated for measuring hmac(sha1). Padlock was moved to be dynamic engine in openssl-1.0.0. So add some code that losfd automatically that engine.
Diffstat (limited to 'main/openssl/0004-crypto-engine-autoload-padlock-dynamic-engine.patch')
-rw-r--r--main/openssl/0004-crypto-engine-autoload-padlock-dynamic-engine.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/openssl/0004-crypto-engine-autoload-padlock-dynamic-engine.patch b/main/openssl/0004-crypto-engine-autoload-padlock-dynamic-engine.patch
new file mode 100644
index 000000000..c41d860ea
--- /dev/null
+++ b/main/openssl/0004-crypto-engine-autoload-padlock-dynamic-engine.patch
@@ -0,0 +1,33 @@
+From f6a5204b8dc94d73521f962183ee302533b2a196 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
+Date: Fri, 4 Jun 2010 18:02:39 +0300
+Subject: [PATCH 4/4] crypto/engine: autoload padlock dynamic engine
+
+---
+ crypto/engine/eng_all.c | 10 ++++++++++
+ 1 files changed, 10 insertions(+), 0 deletions(-)
+
+diff --git a/crypto/engine/eng_all.c b/crypto/engine/eng_all.c
+index 22c1204..827e447 100644
+--- a/crypto/engine/eng_all.c
++++ b/crypto/engine/eng_all.c
+@@ -112,6 +112,16 @@ void ENGINE_load_builtin_engines(void)
+ ENGINE_load_capi();
+ #endif
+ #endif
++#ifdef OPENSSL_NO_STATIC_ENGINE
++ {
++ ENGINE *e;
++ e = ENGINE_by_id("padlock");
++ if (e != NULL) {
++ ENGINE_add(e);
++ ENGINE_free(e);
++ }
++ }
++#endif
+ }
+
+ #if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)
+--
+1.7.0.4
+