OpenAFS
OpenAFS distributed network file system
|
00001 /* 00002 * Copyright 2000, International Business Machines Corporation and others. 00003 * All Rights Reserved. 00004 * 00005 * This software has been released under the terms of the IBM Public 00006 * License. For details, see the LICENSE file in the top-level source 00007 * directory or online at http://www.openafs.org/dl/license10.html 00008 */ 00009 00010 #ifndef _KAUTH_KADATABASE_H 00011 #define _KAUTH_KADATABASE_H 00012 extern int kawrite(struct ubik_trans *, afs_int32, char *, afs_int32); 00013 extern int karead(struct ubik_trans *, afs_int32, char *, afs_int32); 00014 extern int update_admin_count(struct ubik_trans *, int); 00015 00016 extern int ka_LookupKvno(struct ubik_trans *, char *, char *, afs_int32, 00017 struct ktc_encryptionKey *); 00018 00019 extern afs_int32 AllocBlock(struct ubik_trans *, struct kaentry *); 00020 extern afs_int32 FreeBlock(struct ubik_trans *, afs_int32); 00021 00022 extern afs_int32 FindBlock(struct ubik_trans *, char *, char *, afs_int32 *, 00023 struct kaentry *); 00024 extern afs_int32 ThreadBlock(struct ubik_trans *, afs_int32, struct kaentry *); 00025 00026 extern afs_int32 UnthreadBlock(struct ubik_trans *, struct kaentry *); 00027 00028 extern afs_int32 NextBlock(struct ubik_trans *, afs_int32, struct kaentry *, 00029 afs_int32 *); 00030 00031 extern afs_int32 ka_DelKey(struct ubik_trans *tt, afs_int32 tentryaddr, 00032 struct kaentry *tentry); 00033 00034 extern afs_int32 ka_LookupKvno(struct ubik_trans *tt, char *name, 00035 char *inst, afs_int32 kvno, 00036 struct ktc_encryptionKey *key); 00037 extern afs_int32 ka_LookupKey(struct ubik_trans *, char *, char *, 00038 afs_int32 *, struct ktc_encryptionKey *); 00039 00040 #endif