cctools
password_cache.h
1 /*
2 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3 Copyright (C) 2005- The University of Notre Dame
4 This software is distributed under the GNU General Public License.
5 See the password COPYING for details.
6 */
7 
8 #ifndef PASSWORD_CACHE_H
9 #define PASSWORD_CACHE_H
10 
11 #include <sys/types.h>
12 
13 #include "int_sizes.h"
14 
16  char *username;
17  char *password;
18 };
19 
20 struct password_cache *password_cache_init(const char *uname, const char *pwd);
21 void password_cache_delete(struct password_cache *c);
22 void password_cache_cleanup(struct password_cache *c);
23 int password_cache_register(struct password_cache *p, const char *uname, const char *pwd);
24 int password_cache_full(struct password_cache *c);
25 
26 #endif
Definition: password_cache.h:15