818cfbb3dd65385161df72f606973f081207099e
[oftp] / libs / watt32 / rpc / key_prot.h
1 /*!\file rpc/key_prot.h
2  * RPC key exchange protocol.
3  */
4
5 /*
6  * This is a RPCGEN generated file. Do not edit.
7  *
8  * Generated: Sun Mar 14 19:22:40 1999
9  */
10
11 #ifndef __KEY_PROT_H
12 #define __KEY_PROT_H
13
14
15 /*
16  * Copyright (c) 1988 by Sun Microsystems, Inc.
17  */
18 #define PROOT                     3
19 #define HEXMODULUS                "d4a0ba0250b6fd2ec626e7efd637df76c716e22d0944b88b"
20 #define HEXKEYBYTES               48
21 #define KEYSIZE                   192
22 #define KEYBYTES                  24
23 #define KEYCHECKSUMSIZE           16
24
25 typedef enum keystatus {
26           KEY_SUCCESS = 0,
27           KEY_NOSECRET = 1,
28           KEY_UNKNOWN = 2,
29           KEY_SYSTEMERR = 3,
30       } keystatus;
31 bool_t xdr_keystatus();
32
33 #ifndef KERNEL
34
35 typedef char keybuf[HEXKEYBYTES];
36 bool_t xdr_keybuf();
37
38 #endif
39
40 typedef char *netnamestr;
41 bool_t xdr_netnamestr();
42
43
44 typedef struct cryptkeyarg {
45         netnamestr remotename;
46         des_block deskey;
47       } cryptkeyarg;
48 bool_t xdr_cryptkeyarg();
49
50
51 typedef struct cryptkeyres {
52         keystatus status;
53   union {
54     des_block deskey;
55     } cryptkeyres_u;
56   } cryptkeyres;
57 bool_t xdr_cryptkeyres();
58
59 #define MAXGIDS                   16
60
61 typedef struct unixcred {
62         long uid;
63         long gid;
64         struct {
65           u_long gids_len;
66           long *gids_val;
67         } gids;
68       } unixcred;
69 bool_t xdr_unixcred();
70
71
72 typedef struct getcredres {
73         keystatus status;
74   union {
75     unixcred cred;
76     } getcredres_u;
77   } getcredres;
78 bool_t xdr_getcredres();
79
80
81 #define KEY_PROG                  100029UL
82 #define KEY_VERS                  1UL
83 #define KEY_SET                   1UL
84 extern long *key_set_1();
85
86 #define KEY_ENCRYPT               2UL
87 extern cryptkeyres *key_encrypt_1();
88
89 #define KEY_DECRYPT               3UL
90 extern cryptkeyres *key_decrypt_1();
91
92 #define KEY_GEN                   4UL
93 extern des_block *key_gen_1();
94
95 #define KEY_GETCRED               5UL
96 extern getcredres *key_getcred_1();
97
98
99 #endif /* !__KEY_PROT_H */