diff options
-rw-r--r-- | meta-networking/recipes-support/strongswan/files/0001-memory.h-Include-stdint.h-for-uintptr_t.patch | 8 | ||||
-rw-r--r-- | meta-networking/recipes-support/strongswan/files/fix-funtion-parameter.patch | 31 |
2 files changed, 19 insertions, 20 deletions
diff --git a/meta-networking/recipes-support/strongswan/files/0001-memory.h-Include-stdint.h-for-uintptr_t.patch b/meta-networking/recipes-support/strongswan/files/0001-memory.h-Include-stdint.h-for-uintptr_t.patch index 7ebc398180..00178c84a4 100644 --- a/meta-networking/recipes-support/strongswan/files/0001-memory.h-Include-stdint.h-for-uintptr_t.patch +++ b/meta-networking/recipes-support/strongswan/files/0001-memory.h-Include-stdint.h-for-uintptr_t.patch | |||
@@ -1,15 +1,16 @@ | |||
1 | From 2a3ab04bbdc4624792886aa51579eadb427ef99e Mon Sep 17 00:00:00 2001 | 1 | From 33a53dc13fd924949a582109b45fedd8d0bed59b Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Tue, 27 Jun 2017 07:42:11 -0700 | 3 | Date: Tue, 27 Jun 2017 07:42:11 -0700 |
4 | Subject: [PATCH] memory.h: Include stdint.h for uintptr_t | 4 | Subject: [PATCH] memory.h: Include stdint.h for uintptr_t |
5 | 5 | ||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
7 | |||
7 | --- | 8 | --- |
8 | src/libstrongswan/utils/utils/memory.h | 2 ++ | 9 | src/libstrongswan/utils/utils/memory.h | 2 ++ |
9 | 1 file changed, 2 insertions(+) | 10 | 1 file changed, 2 insertions(+) |
10 | 11 | ||
11 | diff --git a/src/libstrongswan/utils/utils/memory.h b/src/libstrongswan/utils/utils/memory.h | 12 | diff --git a/src/libstrongswan/utils/utils/memory.h b/src/libstrongswan/utils/utils/memory.h |
12 | index b978e7c..55aaaf5 100644 | 13 | index e840330..8a356a8 100644 |
13 | --- a/src/libstrongswan/utils/utils/memory.h | 14 | --- a/src/libstrongswan/utils/utils/memory.h |
14 | +++ b/src/libstrongswan/utils/utils/memory.h | 15 | +++ b/src/libstrongswan/utils/utils/memory.h |
15 | @@ -22,6 +22,8 @@ | 16 | @@ -22,6 +22,8 @@ |
@@ -21,6 +22,3 @@ index b978e7c..55aaaf5 100644 | |||
21 | /** | 22 | /** |
22 | * Helper function that compares two binary blobs for equality | 23 | * Helper function that compares two binary blobs for equality |
23 | */ | 24 | */ |
24 | -- | ||
25 | 2.13.2 | ||
26 | |||
diff --git a/meta-networking/recipes-support/strongswan/files/fix-funtion-parameter.patch b/meta-networking/recipes-support/strongswan/files/fix-funtion-parameter.patch index 846e0c6936..be660d1fd8 100644 --- a/meta-networking/recipes-support/strongswan/files/fix-funtion-parameter.patch +++ b/meta-networking/recipes-support/strongswan/files/fix-funtion-parameter.patch | |||
@@ -1,4 +1,7 @@ | |||
1 | fix the function parameter | 1 | From 9f97479373f3fceedc471074b81486d77a49618d Mon Sep 17 00:00:00 2001 |
2 | From: "Roy.Li" <rongqing.li@windriver.com> | ||
3 | Date: Tue, 4 Mar 2014 14:38:42 +0800 | ||
4 | Subject: [PATCH] fix the function parameter | ||
2 | 5 | ||
3 | Upstream-Status: pending | 6 | Upstream-Status: pending |
4 | 7 | ||
@@ -31,9 +34,10 @@ on PPC, Now we simply correct the number of parameters. | |||
31 | #11 0x4836c378 in process_message (this=0x514005f0, message=0x51500778) | 34 | #11 0x4836c378 in process_message (this=0x514005f0, message=0x51500778) |
32 | at sa/ike_sa.c:1317 | 35 | at sa/ike_sa.c:1317 |
33 | #12 0x48362270 in execute (this=0x515008d0) | 36 | #12 0x48362270 in execute (this=0x515008d0) |
34 | at processing/jobs/process_message_job.c:74 | 37 | at processing/jobs/process_message_job.c:74 |
35 | 38 | ||
36 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | 39 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> |
40 | |||
37 | --- | 41 | --- |
38 | src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c | 8 +++++++- | 42 | src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c | 8 +++++++- |
39 | src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h | 4 +++- | 43 | src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h | 4 +++- |
@@ -41,20 +45,20 @@ Signed-off-by: Roy.Li <rongqing.li@windriver.com> | |||
41 | 3 files changed, 11 insertions(+), 2 deletions(-) | 45 | 3 files changed, 11 insertions(+), 2 deletions(-) |
42 | 46 | ||
43 | diff --git a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c | 47 | diff --git a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c |
44 | index ff33824..bd21446 100644 | 48 | index 8e9c118..a73b038 100644 |
45 | --- a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c | 49 | --- a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c |
46 | +++ b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c | 50 | +++ b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c |
47 | @@ -142,7 +142,7 @@ METHOD(diffie_hellman_t, destroy, void, | 51 | @@ -192,7 +192,7 @@ METHOD(diffie_hellman_t, destroy, void, |
48 | /* | 52 | /* |
49 | * Described in header. | 53 | * Described in header. |
50 | */ | 54 | */ |
51 | -openssl_diffie_hellman_t *openssl_diffie_hellman_create( | 55 | -openssl_diffie_hellman_t *openssl_diffie_hellman_create( |
52 | +openssl_diffie_hellman_t *openssl_diffie_hellman_create_custom( | 56 | +openssl_diffie_hellman_t *openssl_diffie_hellman_create_custom( |
53 | diffie_hellman_group_t group, ...) | 57 | diffie_hellman_group_t group, ...) |
54 | { | 58 | { |
55 | private_openssl_diffie_hellman_t *this; | 59 | private_openssl_diffie_hellman_t *this; |
56 | @@ -197,5 +197,11 @@ openssl_diffie_hellman_t *openssl_diffie_hellman_create( | 60 | @@ -255,5 +255,11 @@ openssl_diffie_hellman_t *openssl_diffie_hellman_create( |
57 | 61 | DBG2(DBG_LIB, "size of DH secret exponent: %d bits", BN_num_bits(privkey)); | |
58 | return &this->public; | 62 | return &this->public; |
59 | } | 63 | } |
60 | +openssl_diffie_hellman_t *openssl_diffie_hellman_create( diffie_hellman_group_t group) | 64 | +openssl_diffie_hellman_t *openssl_diffie_hellman_create( diffie_hellman_group_t group) |
@@ -66,26 +70,26 @@ index ff33824..bd21446 100644 | |||
66 | 70 | ||
67 | #endif /* OPENSSL_NO_DH */ | 71 | #endif /* OPENSSL_NO_DH */ |
68 | diff --git a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h | 72 | diff --git a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h |
69 | index 53dc59c..eb69eaa 100644 | 73 | index 5de5520..22586e0 100644 |
70 | --- a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h | 74 | --- a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h |
71 | +++ b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h | 75 | +++ b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.h |
72 | @@ -44,8 +44,10 @@ struct openssl_diffie_hellman_t { | 76 | @@ -43,8 +43,10 @@ struct openssl_diffie_hellman_t { |
73 | * @param ... expects generator and prime as chunk_t if MODP_CUSTOM | 77 | * @param ... expects generator and prime as chunk_t if MODP_CUSTOM |
74 | * @return openssl_diffie_hellman_t object, NULL if not supported | 78 | * @return openssl_diffie_hellman_t object, NULL if not supported |
75 | */ | 79 | */ |
76 | -openssl_diffie_hellman_t *openssl_diffie_hellman_create( | 80 | -openssl_diffie_hellman_t *openssl_diffie_hellman_create( |
77 | +openssl_diffie_hellman_t *openssl_diffie_hellman_create_custom( | 81 | +openssl_diffie_hellman_t *openssl_diffie_hellman_create_custom( |
78 | diffie_hellman_group_t group, ...); | 82 | diffie_hellman_group_t group, ...); |
79 | +openssl_diffie_hellman_t *openssl_diffie_hellman_create( | 83 | +openssl_diffie_hellman_t *openssl_diffie_hellman_create( |
80 | + diffie_hellman_group_t group); | 84 | + diffie_hellman_group_t group); |
81 | 85 | ||
82 | #endif /** OPENSSL_DIFFIE_HELLMAN_H_ @}*/ | 86 | #endif /** OPENSSL_DIFFIE_HELLMAN_H_ @}*/ |
83 | 87 | ||
84 | diff --git a/src/libstrongswan/plugins/openssl/openssl_plugin.c b/src/libstrongswan/plugins/openssl/openssl_plugin.c | 88 | diff --git a/src/libstrongswan/plugins/openssl/openssl_plugin.c b/src/libstrongswan/plugins/openssl/openssl_plugin.c |
85 | index ff25086..c76873d 100644 | 89 | index 8b0a7c5..114d575 100644 |
86 | --- a/src/libstrongswan/plugins/openssl/openssl_plugin.c | 90 | --- a/src/libstrongswan/plugins/openssl/openssl_plugin.c |
87 | +++ b/src/libstrongswan/plugins/openssl/openssl_plugin.c | 91 | +++ b/src/libstrongswan/plugins/openssl/openssl_plugin.c |
88 | @@ -388,6 +388,7 @@ METHOD(plugin_t, get_features, int, | 92 | @@ -609,6 +609,7 @@ METHOD(plugin_t, get_features, int, |
89 | PLUGIN_PROVIDE(DH, MODP_1024_BIT), | 93 | PLUGIN_PROVIDE(DH, MODP_1024_BIT), |
90 | PLUGIN_PROVIDE(DH, MODP_1024_160), | 94 | PLUGIN_PROVIDE(DH, MODP_1024_160), |
91 | PLUGIN_PROVIDE(DH, MODP_768_BIT), | 95 | PLUGIN_PROVIDE(DH, MODP_768_BIT), |
@@ -93,6 +97,3 @@ index ff25086..c76873d 100644 | |||
93 | PLUGIN_PROVIDE(DH, MODP_CUSTOM), | 97 | PLUGIN_PROVIDE(DH, MODP_CUSTOM), |
94 | #endif | 98 | #endif |
95 | #ifndef OPENSSL_NO_RSA | 99 | #ifndef OPENSSL_NO_RSA |
96 | -- | ||
97 | 1.8.3 | ||
98 | |||