source: trunk/athena/bin/rkinit/include/rkinit_private.h @ 2269

Revision 2269, 1.1 KB checked in by qjb, 35 years ago (diff)
Initial revision
Line 
1/*
2 * $Header: /afs/dev.mit.edu/source/repository/athena/bin/rkinit/include/rkinit_private.h,v 1.1 1989-11-12 19:26:51 qjb Exp $
3 * $Source: /afs/dev.mit.edu/source/repository/athena/bin/rkinit/include/rkinit_private.h,v $
4 * $Author: qjb $
5 *
6 */
7
8/* Lowest and highest versions supported */
9#define RKINIT_LVERSION 3
10#define RKINIT_HVERSION 3
11
12/* Port to be used */
13#define SERVENT "rkinit"
14
15/* Key for kerberos authentication */
16#define KEY "rcmd"
17
18/* Packet format information */
19#define PKT_TYPE 0
20#define PKT_LEN 1
21#define PKT_DATA (PKT_LEN + sizeof(long))
22
23/*
24 * Message types for packets.  Make sure that rki_mt_to_string is right in
25 * rk_util.c
26 */
27#define MT_STATUS 0
28#define MT_CVERSION 1
29#define MT_SVERSION 2
30#define MT_RKINIT_INFO 3
31#define MT_SKDC 4
32#define MT_CKDC 5
33#define MT_AUTH 6
34
35/* Miscellaneous protocol constants */
36#define VERSION_INFO_SIZE 2
37
38/* Useful definitions */
39#define BCLEAR(a) bzero((char *)(a), sizeof(a))
40#define SBCLEAR(a) bzero((char *)&(a), sizeof(a))
41#define min(a,b) (((a) < (b)) ? (a) : (b))
42#define max(a,b) (((a) > (b)) ? (a) : (b))
43
44#ifndef TRUE
45#define TRUE 1
46#endif
47
48#ifndef FALSE
49#define FALSE 0
50#endif
Note: See TracBrowser for help on using the repository browser.