aboutsummaryrefslogtreecommitdiffstats
path: root/devel/doxygen/files/patch-md5-dirdef
blob: 26661181a192f2af770db43e77429dfc63d466db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- src/dirdef.cpp.orig 2015-01-03 22:38:57 UTC
+++ src/dirdef.cpp
@@ -1,3 +1,4 @@
+#include <sys/types.h>
 #include "md5.h"
 
 #include "dirdef.h"
@@ -81,10 +82,8 @@ void DirDef::addFile(FileDef *fd)
 static QCString encodeDirName(const QCString &anchor)
 {
   // convert to md5 hash
-  uchar md5_sig[16];
   QCString sigStr(33);
-  MD5Buffer((const unsigned char *)anchor.data(),anchor.length(),md5_sig);
-  MD5SigToString(md5_sig,sigStr.rawData(),33);
+  MD5Data((const unsigned char *)anchor.data(),anchor.length(),sigStr.rawData());
   return sigStr;
 
   // old algorithm