summaryrefslogtreecommitdiff
path: root/devel/doxygen/files/patch-md5-dirdef
blob: 175fbb61f47ac7a75b205a50e91647d28eaab71a (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
27
28
29
--- src/dirdef.cpp.orig	2021-08-17 17:10:43 UTC
+++ src/dirdef.cpp
@@ -11,11 +11,13 @@
  * Documents produced by Doxygen are derivative works derived from the
  * input used in their production; they are not affected by this license.
  *
+#include <sys/types.h>
  */
 
 #include <algorithm>
 
 #include "dirdef.h"
+#include <sys/types.h>
 #include "md5.h"
 #include "filename.h"
 #include "doxygen.h"
@@ -178,10 +180,8 @@ void DirDefImpl::sort()
 static QCString encodeDirName(const QCString &anchor)
 {
   // convert to md5 hash
-  uchar md5_sig[16];
-  char sigStr[33];
-  MD5Buffer((const unsigned char *)anchor.data(),anchor.length(),md5_sig);
-  MD5SigToString(md5_sig,sigStr);
+  QCString sigStr(33);
+  MD5Data((const unsigned char *)anchor.data(),anchor.length(),sigStr.rawData());
   return sigStr;
 
   // old algorithm