summaryrefslogtreecommitdiff
path: root/devel/doxygen/files/patch-md5-dotgraph
blob: 6d4bd98839380f0085e44cac674cdb731f500a7d (plain) (blame)
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
--- src/dotgraph.cpp.orig	2022-08-11 20:14:32 UTC
+++ src/dotgraph.cpp
@@ -16,6 +16,7 @@
 #include <sstream>
 #include <mutex>
 #include <regex>
+#include <sys/types.h>
 
 #include "config.h"
 #include "doxygen.h"
@@ -155,12 +156,9 @@ bool DotGraph::prepareDotFile()
     term("Output dir %s does not exist!\n", m_dir.path().c_str());
   }
 
-  char sigStr[33];
-  uchar md5_sig[16];
-  // calculate md5
-  MD5Buffer(m_theGraph.data(), m_theGraph.length(), md5_sig);
-  // convert result to a string
-  MD5SigToString(md5_sig, sigStr);
+  QCString sigStr(33);
+  // calculate md5 and convert result to a string
+  MD5Data((const unsigned char*)m_theGraph.data(), m_theGraph.length(), sigStr.rawData());
 
   // already queued files are processed again in case the output format has changed