summarylogtreecommitdiffstats
path: root/md5-bytes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'md5-bytes.patch')
-rw-r--r--md5-bytes.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/md5-bytes.patch b/md5-bytes.patch
new file mode 100644
index 000000000000..d4b88fe7dfed
--- /dev/null
+++ b/md5-bytes.patch
@@ -0,0 +1,25 @@
+diff --git md5.h md5.h
+index d8b96df..86103da 100644
+--- md5.h
++++ md5.h
+@@ -124,6 +124,13 @@ private:
+ #include CRYPTOPP_INCLUDE_MD5
+ #endif
+
++#if (CRYPTOPP_VERSION >= 600) && (__cplusplus >= 201103L)
++ using byte = CryptoPP::byte;
++#else
++ typedef unsigned char byte;
++#endif
++
++
+ class MD5 {
+
+ public:
+@@ -151,4 +158,4 @@ private:
+
+ #endif //DO_NOT_USE_CRYPTOPP_MD5
+
+-#endif //MD5_H
+\ No newline at end of file
++#endif //MD5_H