MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | #include "/sys/tls.h" |
2 | |||||
3 | deprecated string md5(mixed arg, varargs mixed* iterations) | ||||
4 | { | ||||
5 | if (extern_call()) | ||||
6 | set_this_object(previous_object()); | ||||
7 | |||||
8 | return hash(TLS_HASH_MD5, arg, iterations...); | ||||
9 | } | ||||
10 | |||||
11 | deprecated string sha1(mixed arg, varargs mixed* iterations) | ||||
12 | { | ||||
13 | if (extern_call()) | ||||
14 | set_this_object(previous_object()); | ||||
15 | |||||
16 | return hash(TLS_HASH_SHA1, arg, iterations...); | ||||
17 | } |