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 __KEYS_AFS_INCL_ 00011 #define __KEYS_AFS_INCL_ 1 00012 00013 /* include file for getting keys from the server's key file in /usr/afs/etc/ServerKeys. 00014 The format of server keys is a long count, followed by that many 00015 structures containing a kvno long and a key. The key is treated 00016 as an array of 8 chars, but the longs should be in network byte order. 00017 */ 00018 00019 #define AFSCONF_MAXKEYS 8 00020 00021 struct afsconf_key { 00022 afs_int32 kvno; 00023 char key[8]; 00024 }; 00025 00026 struct afsconf_keys { 00027 afs_int32 nkeys; 00028 struct afsconf_key key[AFSCONF_MAXKEYS]; 00029 }; 00030 00031 #define AFSCONF_KEYINUSE 512 /* Random error code - only "locally" unique */ 00032 00033 #endif /* __KEYS_AFS_INCL_ */