00001
00002
00003
00004
00005
00006
00007
00008 #ifndef PASSWORD_CACHE_H
00009 #define PASSWORD_CACHE_H
00010
00011 #include <sys/types.h>
00012
00013 #include "int_sizes.h"
00014
00015 struct password_cache {
00016 char *username;
00017 char *password;
00018 };
00019
00020 struct password_cache *password_cache_init(const char *uname, const char *pwd);
00021 void password_cache_delete(struct password_cache *c);
00022 void password_cache_cleanup(struct password_cache *c);
00023 int password_cache_register(struct password_cache *p, const char *uname, const char *pwd);
00024 int password_cache_full(struct password_cache *c);
00025
00026 #endif