OPENAFS-SA-2016-002 VldbListByAttributes information leak
[openafs.git] / src / libadmin / vos / vosutils.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 #include <afs/stds.h>
11 #include <afs/afs_Admin.h>
12 #include <afs/vlserver.h>
13 #include "../adminutil/afs_AdminInternal.h"
14
15 extern int VLDB_CreateEntry(afs_cell_handle_p cellHandle,
16                             struct nvldbentry *entryp, afs_status_p st);
17
18 extern int aVLDB_GetEntryByID(afs_cell_handle_p cellHandle, afs_uint32 volid,
19                              afs_int32 voltype, struct nvldbentry *entryp,
20                              afs_status_p st);
21
22
23 extern int aVLDB_GetEntryByName(afs_cell_handle_p cellHandle,
24                                char *namep, struct nvldbentry *entryp,
25                                afs_status_p st);
26
27 extern int VLDB_ReplaceEntry(afs_cell_handle_p cellHandle, afs_uint32 volid,
28                              afs_int32 voltype, struct nvldbentry *entryp,
29                              afs_int32 releasetype, afs_status_p st);
30
31 extern int VLDB_ListAttributes(afs_cell_handle_p cellHandle,
32                                VldbListByAttributes * attrp,
33                                afs_int32 * entriesp,
34                                nbulkentries * blkentriesp, afs_status_p st);
35
36 extern int VLDB_ListAttributesN2(afs_cell_handle_p cellHandle,
37                                  VldbListByAttributes * attrp, char *name,
38                                  afs_int32 thisindex, afs_int32 * nentriesp,
39                                  nbulkentries * blkentriesp,
40                                  afs_int32 * nextindexp, afs_status_p st);
41
42 extern int VLDB_IsSameAddrs(afs_cell_handle_p cellHandle, afs_int32 serv1,
43                             afs_int32 serv2, int *equal, afs_status_p st);
44
45 extern int GetVolumeInfo(afs_cell_handle_p cellHandle, unsigned int volid,
46                          struct nvldbentry *rentry, afs_int32 * server,
47                          afs_int32 * partition, afs_int32 * voltype,
48                          afs_status_p st);
49
50 extern int ValidateVolumeName(const char *volumeName, afs_status_p st);
51
52 extern int vsu_ExtractName(char *rname, char *name);
53
54 extern int RemoveBadAddresses(afs_int32 * totalp, bulkaddrs * addrsp);