summaryrefslogtreecommitdiff
path: root/recipes-bsp/tegrarcm/tegrarcm/0001-cryptopp-use-relative-path-for-cryptopp-headers.patch
blob: 743bfeeee23241b56e4d7b07f9b1931235ea6fcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
From 42e6130629fef6802839df51911f76a66da9c986 Mon Sep 17 00:00:00 2001
From: Max Krummenacher <max.krummenacher@toradex.com>
Date: Mon, 13 Mar 2017 22:02:59 +0100
Subject: [PATCH] cryptopp: use relative path for cryptopp headers

This works around having to specify an additional include directory
into the native recipe specific sysroot.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
---
 src/aes-cmac.cpp | 12 ++++++------
 src/rsa-pss.cpp  | 20 ++++++++++----------
 2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/src/aes-cmac.cpp b/src/aes-cmac.cpp
index 24c89f8..f8171da 100644
--- a/src/aes-cmac.cpp
+++ b/src/aes-cmac.cpp
@@ -40,26 +40,26 @@ using std::string;
 #include <cstdlib>
 using std::exit;
 
-#include "cryptlib.h"
+#include "cryptopp/cryptlib.h"
 using CryptoPP::Exception;
 
-#include "cmac.h"
+#include "cryptopp/cmac.h"
 using CryptoPP::CMAC;
 
-#include "aes.h"
+#include "cryptopp/aes.h"
 using CryptoPP::AES;
 
-#include "hex.h"
+#include "cryptopp/hex.h"
 using CryptoPP::HexEncoder;
 using CryptoPP::HexDecoder;
 
-#include "filters.h"
+#include "cryptopp/filters.h"
 using CryptoPP::StringSink;
 using CryptoPP::StringSource;
 using CryptoPP::HashFilter;
 using CryptoPP::HashVerificationFilter;
 
-#include "secblock.h"
+#include "cryptopp/secblock.h"
 using CryptoPP::SecByteBlock;
 
 extern "C" int cmac_hash(const unsigned char *msg, int len, unsigned char *cmac_buf)
diff --git a/src/rsa-pss.cpp b/src/rsa-pss.cpp
index ab0a680..1025cc3 100644
--- a/src/rsa-pss.cpp
+++ b/src/rsa-pss.cpp
@@ -40,36 +40,36 @@ using std::string;
 #include <cstdlib>
 using std::exit;
 
-#include "cryptlib.h"
+#include "cryptopp/cryptlib.h"
 using CryptoPP::Exception;
 
-#include "integer.h"
+#include "cryptopp/integer.h"
 using CryptoPP::Integer;
 
-#include "files.h"
+#include "cryptopp/files.h"
 using CryptoPP::FileSource;
 
-#include "filters.h"
+#include "cryptopp/filters.h"
 using CryptoPP::StringSink;
 using CryptoPP::SignerFilter;
 
-#include "queue.h"
+#include "cryptopp/queue.h"
 using CryptoPP::ByteQueue;
 
-#include "rsa.h"
+#include "cryptopp/rsa.h"
 using CryptoPP::RSA;
 using CryptoPP::RSASS;
 
-#include "pssr.h"
+#include "cryptopp/pssr.h"
 using CryptoPP::PSS;
 
-#include "sha.h"
+#include "cryptopp/sha.h"
 using CryptoPP::SHA256;
 
-#include "secblock.h"
+#include "cryptopp/secblock.h"
 using CryptoPP::SecByteBlock;
 
-#include "osrng.h"
+#include "cryptopp/osrng.h"
 using CryptoPP::AutoSeededRandomPool;
 
 #include "rsa-pss.h"
-- 
2.6.6