Imported Upstream version 1.10.2
[platform/upstream/krb5.git] / src / util / mac / k5_mig_types.h
1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /* $Copyright:
3  *
4  * Copyright 2004-2006 by the Massachusetts Institute of Technology.
5  *
6  * All rights reserved.
7  *
8  * Export of this software from the United States of America may require a
9  * specific license from the United States Government.  It is the
10  * responsibility of any person or organization contemplating export to
11  * obtain such a license before exporting.
12  *
13  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and distribute
14  * this software and its documentation for any purpose and without fee is
15  * hereby granted, provided that the above copyright notice appear in all
16  * copies and that both that copyright notice and this permission notice
17  * appear in supporting documentation, and that the name of M.I.T. not be
18  * used in advertising or publicity pertaining to distribution of the
19  * software without specific, written prior permission.  Furthermore if you
20  * modify this software you must label your software as modified software
21  * and not distribute it in such a fashion that it might be confused with
22  * the original MIT software. M.I.T. makes no representations about the
23  * suitability of this software for any purpose.  It is provided "as is"
24  * without express or implied warranty.
25  *
26  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
27  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
28  * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
29  *
30  * Individual source code files are copyright MIT, Cygnus Support,
31  * OpenVision, Oracle, Sun Soft, FundsXpress, and others.
32  *
33  * Project Athena, Athena, Athena MUSE, Discuss, Hesiod, Kerberos, Moira,
34  * and Zephyr are trademarks of the Massachusetts Institute of Technology
35  * (MIT).  No commercial use of these trademarks may be made without prior
36  * written permission of MIT.
37  *
38  * "Commercial use" means use of a name in a product or other for-profit
39  * manner.  It does NOT prevent a commercial firm from referring to the MIT
40  * trademarks in order to convey information (although in doing so,
41  * recognition of their trademark status should be given).
42  * $
43  */
44
45 #ifndef K5_MIG_TYPES_H
46 #define K5_MIG_TYPES_H
47
48 #define K5_IPC_MAX_MSG_SIZE 2048 + MAX_TRAILER_SIZE
49
50 #define K5_MIG_LOOKUP_SUFFIX  ".ipcLookup"
51 #define K5_MIG_SERVICE_SUFFIX ".ipcService"
52
53 #define K5_IPC_MAX_INL_MSG_SIZE 1024
54
55 typedef const char  k5_ipc_inl_request_t[K5_IPC_MAX_INL_MSG_SIZE];
56 typedef const char *k5_ipc_ool_request_t;
57 typedef char        k5_ipc_inl_reply_t[K5_IPC_MAX_INL_MSG_SIZE];
58 typedef char       *k5_ipc_ool_reply_t;
59
60 #endif /* K5_MIG_TYPES_H */