diff options
author | Timo Teräs <timo.teras@iki.fi> | 2010-07-28 10:50:42 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2010-07-28 10:50:42 +0300 |
commit | c27aacffd3a052ea590bcec29c488cff8cb3eb17 (patch) | |
tree | 911aa4156ec2c6d5d18821b00d44f095d543ba29 /main/openssl/0005-crypto-engine-autoload-padlock-dynamic-engine.patch | |
parent | b2a88afe1a1189c5f504a3a10c5ae258ffce4af9 (diff) | |
download | aports-c27aacffd3a052ea590bcec29c488cff8cb3eb17.tar.bz2 aports-c27aacffd3a052ea590bcec29c488cff8cb3eb17.tar.xz |
main/openssl: refresh padlock patches
The new feature is support for VIA Nano Padlock in 64-bit mode.
Diffstat (limited to 'main/openssl/0005-crypto-engine-autoload-padlock-dynamic-engine.patch')
-rw-r--r-- | main/openssl/0005-crypto-engine-autoload-padlock-dynamic-engine.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/main/openssl/0005-crypto-engine-autoload-padlock-dynamic-engine.patch b/main/openssl/0005-crypto-engine-autoload-padlock-dynamic-engine.patch new file mode 100644 index 0000000000..3c72ce26aa --- /dev/null +++ b/main/openssl/0005-crypto-engine-autoload-padlock-dynamic-engine.patch @@ -0,0 +1,33 @@ +From b96276c8f11e656e4296955bf1a8d0ac2b6094fe 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 5/5] 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 + |