Allow users to specify their own configuration file ~/.krb5/config
[heimdal.git] / lib / krb5 / kcm.h
blobc5618776ff1e25d9247d5f282f82b128c9ac14d3
1 /*
2 * Copyright (c) 2005, PADL Software Pty Ltd.
3 * All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
16 * 3. Neither the name of PADL Software nor the names of its contributors
17 * may be used to endorse or promote products derived from this software
18 * without specific prior written permission.
20 * THIS SOFTWARE IS PROVIDED BY PADL SOFTWARE AND CONTRIBUTORS ``AS IS'' AND
21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL PADL SOFTWARE OR CONTRIBUTORS BE LIABLE
24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
33 #ifndef __KCM_H__
34 #define __KCM_H__
37 * KCM protocol definitions
40 #define KCM_PROTOCOL_VERSION_MAJOR 2
41 #define KCM_PROTOCOL_VERSION_MINOR 0
43 typedef unsigned char kcmuuid_t[16];
45 typedef enum kcm_operation {
46 KCM_OP_NOOP,
47 KCM_OP_GET_NAME,
48 KCM_OP_RESOLVE,
49 KCM_OP_GEN_NEW,
50 KCM_OP_INITIALIZE,
51 KCM_OP_DESTROY,
52 KCM_OP_STORE,
53 KCM_OP_RETRIEVE,
54 KCM_OP_GET_PRINCIPAL,
55 KCM_OP_GET_FIRST,
56 KCM_OP_GET_NEXT,
57 KCM_OP_END_GET,
58 KCM_OP_REMOVE_CRED,
59 KCM_OP_SET_FLAGS,
60 KCM_OP_CHOWN,
61 KCM_OP_CHMOD,
62 KCM_OP_GET_INITIAL_TICKET,
63 KCM_OP_GET_TICKET,
64 KCM_OP_MOVE_CACHE,
65 KCM_OP_MAX
66 } kcm_operation;
68 #define _PATH_KCM_SOCKET "/var/run/.kcm_socket"
69 #define _PATH_KCM_DOOR "/var/run/.kcm_door"
71 #endif /* __KCM_H__ */