opnsense-ports/devel/doxygen/files/patch-md5-dirdef
Franco Fichtner f8897ec618 devel/doxygen: sync with upstream
Taken from: HardenedBSD
2021-04-20 12:13:50 +02:00

28 lines
823 B
Text

--- src/dirdef.cpp.orig 2020-11-27 20:27:34 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"
@@ -180,10 +182,8 @@ void DirDefImpl::sort()
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