23static stralloc key = {0};
24static char strnum[FMT_ULONG];
25static char newcookie[
COOKIE];
34 if (!
seed)
return (
char *) 0;
36 strnum[fmt_ulong(strnum,
num)] =
'\0';
38 switch (openreadclose(
"key",&key,32)) {
44 if (byte_diff(hash,
COOKIE,newcookie))
return "";
45 else return (
char *) 0;
Error messages. If you translate these, I would urge you to keep the English version as well....
void cookie(char *hash, const char *key, unsigned int keylen, const char *date, const char *addr, const char *action)
const char * checktag(const char *dir, unsigned long num, unsigned long listno, const char *action, const char *seed, const char *hash)