]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Registry: SHA256 isn't always available, use MD4 instead
authorTimePath <andrew.hardaker1995@gmail.com>
Mon, 28 Dec 2015 00:55:55 +0000 (11:55 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Mon, 28 Dec 2015 00:55:55 +0000 (11:55 +1100)
qcsrc/lib/registry.qh

index 7f38afe2a7c65553816dd0d61b7662ba805ac544..037cfe193fc4e537197160df56a30ee5fc2b0bd1 100644 (file)
@@ -142,7 +142,8 @@ void Registry_send(string id, string hash);
        string REGISTRY_HASH(id); \
        STATIC_INIT(Registry_check_##id) \
        { \
-               string algo = "SHA256"; \
+               /* Note: SHA256 isn't always available, use MD4 instead */ \
+               string algo = "MD4"; \
                string join = ":"; \
                string s = ""; \
                FOREACH(id, true, LAMBDA(s = strcat(s, join, it.registered_id))); \