cctools
|
00001 /* 00002 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin 00003 Copyright (C) 2005- The University of Notre Dame 00004 This software is distributed under the GNU General Public License. 00005 See the password COPYING for details. 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