diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-20 22:03:34 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-20 22:03:34 -0600 |
commit | 129370fc1900bc981d529ab7d4a82b6668c72183 (patch) | |
tree | f368dd73c0761fe03732d868e857a0161d7ac7f4 /system/openssl/1004-crypto-engine-autoload-padlock-dynamic-engine.patch | |
parent | 719252b7b29749389730057387d5a43b5516f7fe (diff) | |
download | packages-129370fc1900bc981d529ab7d4a82b6668c72183.tar.gz packages-129370fc1900bc981d529ab7d4a82b6668c72183.tar.bz2 packages-129370fc1900bc981d529ab7d4a82b6668c72183.tar.xz packages-129370fc1900bc981d529ab7d4a82b6668c72183.zip |
system/openssl: prepare for a new OpenSSL
Diffstat (limited to 'system/openssl/1004-crypto-engine-autoload-padlock-dynamic-engine.patch')
-rw-r--r-- | system/openssl/1004-crypto-engine-autoload-padlock-dynamic-engine.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/system/openssl/1004-crypto-engine-autoload-padlock-dynamic-engine.patch b/system/openssl/1004-crypto-engine-autoload-padlock-dynamic-engine.patch new file mode 100644 index 000000000..66f37451e --- /dev/null +++ b/system/openssl/1004-crypto-engine-autoload-padlock-dynamic-engine.patch @@ -0,0 +1,33 @@ +From a58658f191e83f4c6417d2cc879fa572f7978537 Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Thu, 4 Feb 2016 16:28:15 +0100 +Subject: [PATCH] crypto/engine: autoload padlock dynamic engine + +--- + crypto/engine/eng_all.c | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/crypto/engine/eng_all.c b/crypto/engine/eng_all.c +index 48ad0d2..822aa23 100644 +--- a/crypto/engine/eng_all.c ++++ b/crypto/engine/eng_all.c +@@ -120,6 +120,16 @@ 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); ++ ERR_clear_error(); ++ } ++ } ++#endif + ENGINE_register_all_complete(); + } + +-- +2.7.0 + |