extern clist zone_list; // of struct auth_zone
extern char *database_name;
+extern char *temp_key_file;
/* cmd.c */
uint auto_create_acct;
uint allow_passwd;
uint allow_tokens;
+ uint max_temp_validity;
};
struct auth_user {
bool auth_check_token(struct auth_token *at, const char *passwd);
extern struct auth_token *auth_fake_token;
+
+/* temp.c */
+
+void temp_init(void);
+char *temp_generate(const char *zone, const char *login, uint validity);
+const char *temp_check(const char *zone, const char *login, const char *token);