Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / auth / keys.h
CommitLineData
805e021f
CE
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 __KEYS_AFS_INCL_
11#define __KEYS_AFS_INCL_ 1
12
13/* include file for getting keys from the server's key file in /usr/afs/etc/ServerKeys.
14 The format of server keys is a long count, followed by that many
15 structures containing a kvno long and a key. The key is treated
16 as an array of 8 chars, but the longs should be in network byte order.
17*/
18
19#define AFSCONF_MAXKEYS 8
20
21struct afsconf_key {
22 afs_int32 kvno;
23 char key[8];
24};
25
26struct afsconf_keys {
27 afs_int32 nkeys;
28 struct afsconf_key key[AFSCONF_MAXKEYS];
29};
30
31#define AFSCONF_KEYINUSE 512 /* Random error code - only "locally" unique */
32
33#endif /* __KEYS_AFS_INCL_ */