ruby: bump version to 2.4.1
[buildroot-gz.git] / package / vboot-utils / 0003-Avoid-RSA-type-redefinition.patch
blob86374ca85415a6ed3fff9f69c52a2d8872ea6257
1 From 593407d2b3ea3b871d55ec399671e48c84b900a7 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Thu, 21 Jan 2016 22:01:37 +0100
4 Subject: [PATCH] Avoid RSA type redefinition
6 The host_key.h headers does:
8 typedef struct rsa_st RSA;
10 But this type definition is already done by the OpenSSL headers.
12 While such a type redefinition is legal with recent gcc versions, it
13 doesn't build with older gcc versions such as gcc 4.4.
15 To work around this problem, we instead use a forward declaration of
16 "struct rsa_st", and change the only place where the RSA type was used
17 by "struct rsa_st".
19 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
20 ---
21 host/lib/include/host_key.h | 4 ++--
22 1 file changed, 2 insertions(+), 2 deletions(-)
24 diff --git a/host/lib/include/host_key.h b/host/lib/include/host_key.h
25 index 9f98ccc..c2d01a5 100644
26 --- a/host/lib/include/host_key.h
27 +++ b/host/lib/include/host_key.h
28 @@ -12,11 +12,11 @@
29 #include "vboot_struct.h"
32 -typedef struct rsa_st RSA;
33 +struct rsa_st;
35 /* Private key data */
36 typedef struct VbPrivateKey {
37 - RSA* rsa_private_key; /* Private key data */
38 + struct rsa_rt* rsa_private_key; /* Private key data */
39 uint64_t algorithm; /* Algorithm to use when signing */
40 } VbPrivateKey;
42 --
43 2.6.4