summarylogtreecommitdiffstats
path: root/cryptopp-bytes.patch
blob: d34e1553313f86a0541234b4962d5aaa25756fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git cryptopp_inc.h cryptopp_inc.h
index 1295d7c..51ab406 100644
--- cryptopp_inc.h
+++ cryptopp_inc.h
@@ -44,4 +44,9 @@
 #include CRYPTOPP_INCLUDE_ECCRYPTO
 #include CRYPTOPP_INCLUDE_OIDS
 #include CRYPTOPP_INCLUDE_DSA
-#endif
\ No newline at end of file
+#endif
+#if (CRYPTOPP_VERSION >= 600) && (__cplusplus >= 201103L)
+  using byte = CryptoPP::byte;
+#else
+  typedef unsigned char byte;
+#endif