Kagera Session Manager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
616B

  1. /**
  2. * @PROJECT Session Manager
  3. * @COPYRIGHT See COPYING in the top level directory
  4. * @FILE sessmgr.h
  5. * @PURPOSE WebUI session manager
  6. * @DEVELOPERS Eric Bishop <eric@gargoyle-router.com>
  7. * Rafal Kupiec <belliash@asiotec.eu.org>
  8. */
  9. #ifndef __SESSMGR_H
  10. #define __SESSMGR_H
  11. #define DEFAULT_SESSION_TIMEOUT 15
  12. extern char* crypt(const char* key, const char* setting);
  13. char* get_cookie_time(time_t t);
  14. char* get_root_hash(void);
  15. char* get_root_hash_from_file(const char* passwd_file);
  16. void* safe_malloc(size_t size);
  17. char* safe_strcat(int num_strs, ...);
  18. char* safe_strdup(const char* str);
  19. #endif