blob: 51bbf60316f949642cde7aaa95813fc6504032c9 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001#include "/sys/tls.h"
2
3deprecated 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
11deprecated 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}