]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - crypto/heimdal/lib/krb5/kcm.h
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / crypto / heimdal / lib / krb5 / kcm.h
1 /*
2  * Copyright (c) 2005, PADL Software Pty Ltd.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * 1. Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions and the following disclaimer.
11  *
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.
15  *
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.
19  *
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.
31  */
32
33 #ifndef __KCM_H__
34 #define __KCM_H__
35
36 /*
37  * KCM protocol definitions
38  */
39
40 #define KCM_PROTOCOL_VERSION_MAJOR      1
41 #define KCM_PROTOCOL_VERSION_MINOR      0
42
43 typedef enum kcm_operation {
44     KCM_OP_NOOP,
45     KCM_OP_GET_NAME,
46     KCM_OP_RESOLVE,
47     KCM_OP_GEN_NEW,
48     KCM_OP_INITIALIZE,
49     KCM_OP_DESTROY,
50     KCM_OP_STORE,
51     KCM_OP_RETRIEVE,
52     KCM_OP_GET_PRINCIPAL,
53     KCM_OP_GET_FIRST,
54     KCM_OP_GET_NEXT,
55     KCM_OP_END_GET,
56     KCM_OP_REMOVE_CRED,
57     KCM_OP_SET_FLAGS,
58     KCM_OP_CHOWN,
59     KCM_OP_CHMOD,
60     KCM_OP_GET_INITIAL_TICKET,
61     KCM_OP_GET_TICKET,
62     KCM_OP_MAX
63 } kcm_operation;
64
65 #define _PATH_KCM_SOCKET      "/var/run/.kcm_socket"
66 #define _PATH_KCM_DOOR      "/var/run/.kcm_door"
67
68 #endif /* __KCM_H__ */
69