summaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/openssl/openssl-qoriq/qoriq/0001-remove-double-initialization-of-cryptodev-engine.patch
diff options
context:
space:
mode:
authorCristian Stoica <cristian.stoica@nxp.com>2016-01-25 13:33:46 +0200
committerZhenhua Luo <zhenhua.luo@nxp.com>2016-06-23 10:58:51 +0800
commit84cb2cc407cf85459fb463be2aabedd4f12ade77 (patch)
tree5bcdd8c2673052d6c3670b7ef9a48767a8f685b6 /recipes-connectivity/openssl/openssl-qoriq/qoriq/0001-remove-double-initialization-of-cryptodev-engine.patch
parent4cc0cf8255a3726fe3f6cbbe1a877fe2fab7edc6 (diff)
downloadmeta-fsl-ppc-84cb2cc407cf85459fb463be2aabedd4f12ade77.tar.gz
openssl-qoriq: upgrade to 1.0.2h plus fsl patches
upstream recipe extended with patches from fsl and CIOCHASH feature. Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
Diffstat (limited to 'recipes-connectivity/openssl/openssl-qoriq/qoriq/0001-remove-double-initialization-of-cryptodev-engine.patch')
-rw-r--r--recipes-connectivity/openssl/openssl-qoriq/qoriq/0001-remove-double-initialization-of-cryptodev-engine.patch63
1 files changed, 32 insertions, 31 deletions
diff --git a/recipes-connectivity/openssl/openssl-qoriq/qoriq/0001-remove-double-initialization-of-cryptodev-engine.patch b/recipes-connectivity/openssl/openssl-qoriq/qoriq/0001-remove-double-initialization-of-cryptodev-engine.patch
index e7b874f..5e99d91 100644
--- a/recipes-connectivity/openssl/openssl-qoriq/qoriq/0001-remove-double-initialization-of-cryptodev-engine.patch
+++ b/recipes-connectivity/openssl/openssl-qoriq/qoriq/0001-remove-double-initialization-of-cryptodev-engine.patch
@@ -1,7 +1,7 @@
1From 9297e3834518ff0558d6e7004a62adfd107e659a Mon Sep 17 00:00:00 2001 1From 45e4b0835ad965cf9cc813a31df354f1e6d14513 Mon Sep 17 00:00:00 2001
2From: Cristian Stoica <cristian.stoica@freescale.com> 2From: Cristian Stoica <cristian.stoica@freescale.com>
3Date: Tue, 10 Sep 2013 12:46:46 +0300 3Date: Tue, 10 Sep 2013 12:46:46 +0300
4Subject: [PATCH 01/26] remove double initialization of cryptodev engine 4Subject: [PATCH 01/48] remove double initialization of cryptodev engine
5 5
6cryptodev engine is initialized together with the other engines in 6cryptodev engine is initialized together with the other engines in
7ENGINE_load_builtin_engines. The initialization done through 7ENGINE_load_builtin_engines. The initialization done through
@@ -11,65 +11,66 @@ Change-Id: Ic9488500967595543ff846f147b36f383db7cb27
11Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com> 11Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com>
12Reviewed-on: http://git.am.freescale.net:8181/17222 12Reviewed-on: http://git.am.freescale.net:8181/17222
13--- 13---
14 crypto/engine/eng_all.c | 11 ----------- 14 crypto/engine/eng_all.c | 12 ------------
15 crypto/engine/engine.h | 4 ---- 15 crypto/engine/engine.h | 4 ----
16 crypto/evp/c_all.c | 5 ----- 16 crypto/evp/c_all.c | 5 -----
17 util/libeay.num | 2 +- 17 util/libeay.num | 2 +-
18 4 files changed, 1 insertion(+), 21 deletions(-) 18 4 files changed, 1 insertion(+), 22 deletions(-)
19 19
20diff --git a/crypto/engine/eng_all.c b/crypto/engine/eng_all.c 20diff --git a/crypto/engine/eng_all.c b/crypto/engine/eng_all.c
21index 6093376..f16c043 100644 21index 48ad0d2..a198c5f 100644
22--- a/crypto/engine/eng_all.c 22--- a/crypto/engine/eng_all.c
23+++ b/crypto/engine/eng_all.c 23+++ b/crypto/engine/eng_all.c
24@@ -122,14 +122,3 @@ void ENGINE_load_builtin_engines(void) 24@@ -122,15 +122,3 @@ void ENGINE_load_builtin_engines(void)
25 #endif 25 #endif
26 ENGINE_register_all_complete(); 26 ENGINE_register_all_complete();
27 } 27 }
28- 28-
29-#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV) 29-#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)
30-void ENGINE_setup_bsd_cryptodev(void) { 30-void ENGINE_setup_bsd_cryptodev(void)
31- static int bsd_cryptodev_default_loaded = 0; 31-{
32- if (!bsd_cryptodev_default_loaded) { 32- static int bsd_cryptodev_default_loaded = 0;
33- ENGINE_load_cryptodev(); 33- if (!bsd_cryptodev_default_loaded) {
34- ENGINE_register_all_complete(); 34- ENGINE_load_cryptodev();
35- } 35- ENGINE_register_all_complete();
36- bsd_cryptodev_default_loaded=1; 36- }
37- bsd_cryptodev_default_loaded = 1;
37-} 38-}
38-#endif 39-#endif
39diff --git a/crypto/engine/engine.h b/crypto/engine/engine.h 40diff --git a/crypto/engine/engine.h b/crypto/engine/engine.h
40index f8be497..237a6c9 100644 41index bd7b591..020d912 100644
41--- a/crypto/engine/engine.h 42--- a/crypto/engine/engine.h
42+++ b/crypto/engine/engine.h 43+++ b/crypto/engine/engine.h
43@@ -740,10 +740,6 @@ typedef int (*dynamic_bind_engine)(ENGINE *e, const char *id, 44@@ -857,10 +857,6 @@ typedef int (*dynamic_bind_engine) (ENGINE *e, const char *id,
44 * values. */ 45 */
45 void *ENGINE_get_static_state(void); 46 void *ENGINE_get_static_state(void);
46 47
47-#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV) 48-# if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)
48-void ENGINE_setup_bsd_cryptodev(void); 49-void ENGINE_setup_bsd_cryptodev(void);
49-#endif 50-# endif
50- 51-
51 /* BEGIN ERROR CODES */ 52 /* BEGIN ERROR CODES */
52 /* The following lines are auto generated by the script mkerr.pl. Any changes 53 /*
53 * made after this point may be overwritten when the script is next run. 54 * The following lines are auto generated by the script mkerr.pl. Any changes
54diff --git a/crypto/evp/c_all.c b/crypto/evp/c_all.c 55diff --git a/crypto/evp/c_all.c b/crypto/evp/c_all.c
55index 766c4ce..5d6c21b 100644 56index a3ed00d..719e34d 100644
56--- a/crypto/evp/c_all.c 57--- a/crypto/evp/c_all.c
57+++ b/crypto/evp/c_all.c 58+++ b/crypto/evp/c_all.c
58@@ -82,9 +82,4 @@ void OPENSSL_add_all_algorithms_noconf(void) 59@@ -82,9 +82,4 @@ void OPENSSL_add_all_algorithms_noconf(void)
59 OPENSSL_cpuid_setup(); 60 OPENSSL_cpuid_setup();
60 OpenSSL_add_all_ciphers(); 61 OpenSSL_add_all_ciphers();
61 OpenSSL_add_all_digests(); 62 OpenSSL_add_all_digests();
62-#ifndef OPENSSL_NO_ENGINE 63-#ifndef OPENSSL_NO_ENGINE
63-# if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV) 64-# if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)
64- ENGINE_setup_bsd_cryptodev(); 65- ENGINE_setup_bsd_cryptodev();
65-# endif 66-# endif
66-#endif 67-#endif
67 } 68 }
68diff --git a/util/libeay.num b/util/libeay.num 69diff --git a/util/libeay.num b/util/libeay.num
69index aa86b2b..ae50040 100755 70index 2094ab3..2742cf5 100755
70--- a/util/libeay.num 71--- a/util/libeay.num
71+++ b/util/libeay.num 72+++ b/util/libeay.num
72@@ -2801,7 +2801,7 @@ BIO_indent 3242 EXIST::FUNCTION: 73@@ -2805,7 +2805,7 @@ BIO_indent 3242 EXIST::FUNCTION:
73 BUF_strlcpy 3243 EXIST::FUNCTION: 74 BUF_strlcpy 3243 EXIST::FUNCTION:
74 OpenSSLDie 3244 EXIST::FUNCTION: 75 OpenSSLDie 3244 EXIST::FUNCTION:
75 OPENSSL_cleanse 3245 EXIST::FUNCTION: 76 OPENSSL_cleanse 3245 EXIST::FUNCTION:
@@ -79,5 +80,5 @@ index aa86b2b..ae50040 100755
79 EVP_aes_128_cfb8 3248 EXIST::FUNCTION:AES 80 EVP_aes_128_cfb8 3248 EXIST::FUNCTION:AES
80 FIPS_corrupt_rsa 3249 NOEXIST::FUNCTION: 81 FIPS_corrupt_rsa 3249 NOEXIST::FUNCTION:
81-- 82--
822.3.5 832.7.0
83 84