1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 06:23:12 +02:00

Use SHA256 hash for cache/<object> instead of old MD5

This commit is contained in:
Bram Matthys
2021-08-21 09:45:44 +02:00
parent 090fe76739
commit c9c2106bb9
+2 -2
View File
@@ -874,9 +874,9 @@ char *unreal_getmodfilename(char *path)
char *unreal_mkcache(const char *url)
{
static char tempbuf[PATH_MAX+1];
char tmp2[33];
char tmp2[128];
snprintf(tempbuf, PATH_MAX, "%s/%s", CACHEDIR, md5hash(tmp2, url, strlen(url)));
snprintf(tempbuf, PATH_MAX, "%s/%s", CACHEDIR, sha256hash(tmp2, url, strlen(url)));
return tempbuf;
}