1 /*
2  * Please do not edit this file.
3  * It was generated using rpcgen.
4  */
5 
6 #ifndef _CRYPT_H_RPCGEN
7 #define _CRYPT_H_RPCGEN
8 
9 #include <rpc/rpc.h>
10 
11 #ifndef IXDR_GET_INT32
12 #define IXDR_GET_INT32(buf) IXDR_GET_LONG((buf))
13 #endif
14 #ifndef IXDR_PUT_INT32
15 #define IXDR_PUT_INT32(buf, v) IXDR_PUT_LONG((buf), (v))
16 #endif
17 #ifndef IXDR_GET_U_INT32
18 #define IXDR_GET_U_INT32(buf) IXDR_GET_U_LONG((buf))
19 #endif
20 #ifndef IXDR_PUT_U_INT32
21 #define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_U_LONG((buf), (v))
22 #endif
23 
24 enum des_dir {
25 	ENCRYPT_DES = 0,
26 	DECRYPT_DES = 1,
27 };
28 typedef enum des_dir des_dir;
29 #ifdef __cplusplus
30 extern "C" bool_t xdr_des_dir(XDR *, des_dir*);
31 #elif __STDC__
32 extern  bool_t xdr_des_dir(XDR *, des_dir*);
33 #else /* Old Style C */
34 bool_t xdr_des_dir();
35 #endif /* Old Style C */
36 
37 
38 enum des_mode {
39 	CBC_DES = 0,
40 	ECB_DES = 1,
41 };
42 typedef enum des_mode des_mode;
43 #ifdef __cplusplus
44 extern "C" bool_t xdr_des_mode(XDR *, des_mode*);
45 #elif __STDC__
46 extern  bool_t xdr_des_mode(XDR *, des_mode*);
47 #else /* Old Style C */
48 bool_t xdr_des_mode();
49 #endif /* Old Style C */
50 
51 
52 struct desargs {
53 	u_char des_key[8];
54 	des_dir des_dir;
55 	des_mode des_mode;
56 	u_char des_ivec[8];
57 	struct {
58 		u_int desbuf_len;
59 		char *desbuf_val;
60 	} desbuf;
61 };
62 typedef struct desargs desargs;
63 #ifdef __cplusplus
64 extern "C" bool_t xdr_desargs(XDR *, desargs*);
65 #elif __STDC__
66 extern  bool_t xdr_desargs(XDR *, desargs*);
67 #else /* Old Style C */
68 bool_t xdr_desargs();
69 #endif /* Old Style C */
70 
71 
72 struct desresp {
73 	struct {
74 		u_int desbuf_len;
75 		char *desbuf_val;
76 	} desbuf;
77 	u_char des_ivec[8];
78 	int stat;
79 };
80 typedef struct desresp desresp;
81 #ifdef __cplusplus
82 extern "C" bool_t xdr_desresp(XDR *, desresp*);
83 #elif __STDC__
84 extern  bool_t xdr_desresp(XDR *, desresp*);
85 #else /* Old Style C */
86 bool_t xdr_desresp();
87 #endif /* Old Style C */
88 
89 
90 #define CRYPT_PROG ((u_int32_t)600100029)
91 #define CRYPT_VERS ((u_int32_t)1)
92 
93 #ifdef __cplusplus
94 #define DES_CRYPT ((u_int32_t)1)
95 extern "C" desresp * des_crypt_1(desargs *, CLIENT *);
96 extern "C" desresp * des_crypt_1_svc(desargs *, struct svc_req *);
97 
98 #elif __STDC__
99 #define DES_CRYPT ((u_int32_t)1)
100 extern  desresp * des_crypt_1(desargs *, CLIENT *);
101 extern  desresp * des_crypt_1_svc(desargs *, struct svc_req *);
102 
103 #else /* Old Style C */
104 #define DES_CRYPT ((u_int32_t)1)
105 extern  desresp * des_crypt_1();
106 extern  desresp * des_crypt_1_svc();
107 #endif /* Old Style C */
108 
109 #endif /* !_CRYPT_H_RPCGEN */
110