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:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user