Don't cast the return from realloc()
[openafs.git] / src / kauth / kadatabase.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef _KAUTH_KADATABASE_H
11 #define _KAUTH_KADATABASE_H
12 extern int kawrite(struct ubik_trans *, afs_int32, char *, afs_int32);
13 extern int karead(struct ubik_trans *, afs_int32, char *, afs_int32);
14 extern int update_admin_count(struct ubik_trans *, int);
15
16 extern int ka_LookupKvno(struct ubik_trans *, char *, char *, afs_int32,
17                          struct ktc_encryptionKey *);
18
19 extern afs_int32 AllocBlock(struct ubik_trans *, struct kaentry *);
20 extern afs_int32 FreeBlock(struct ubik_trans *, afs_int32);
21
22 extern afs_int32 FindBlock(struct ubik_trans *, char *, char *, afs_int32 *,
23                            struct kaentry *);
24 extern afs_int32 ThreadBlock(struct ubik_trans *, afs_int32, struct kaentry *);
25
26 extern afs_int32 UnthreadBlock(struct ubik_trans *, struct kaentry *);
27
28 extern afs_int32 NextBlock(struct ubik_trans *, afs_int32, struct kaentry *,
29                            afs_int32 *);
30
31 extern afs_int32 ka_DelKey(struct ubik_trans *tt, afs_int32 tentryaddr,
32                            struct kaentry *tentry);
33
34 extern afs_int32 ka_LookupKvno(struct ubik_trans *tt, char *name,
35                                char *inst, afs_int32 kvno,
36                                struct ktc_encryptionKey *key);
37 extern afs_int32 ka_LookupKey(struct ubik_trans *, char *, char *,
38                               afs_int32 *, struct ktc_encryptionKey *);
39
40 #endif