| 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 | #ifdef __cplusplus |
| 12 | extern "C" { |
| 13 | #endif |
| 14 | |
| 15 | |
| 16 | enum des_dir { |
| 17 | 	ENCRYPT_DES = 0, |
| 18 | 	DECRYPT_DES = 1 |
| 19 | }; |
| 20 | typedef enum des_dir des_dir; |
| 21 | |
| 22 | enum des_mode { |
| 23 | 	CBC_DES = 0, |
| 24 | 	ECB_DES = 1 |
| 25 | }; |
| 26 | typedef enum des_mode des_mode; |
| 27 | |
| 28 | struct desargs { |
| 29 | 	u_char des_key[8]; |
| 30 | 	des_dir des_dir; |
| 31 | 	des_mode des_mode; |
| 32 | 	u_char des_ivec[8]; |
| 33 | 	struct { |
| 34 | 		u_int desbuf_len; |
| 35 | 		char *desbuf_val; |
| 36 | 	} desbuf; |
| 37 | }; |
| 38 | typedef struct desargs desargs; |
| 39 | |
| 40 | struct desresp { |
| 41 | 	struct { |
| 42 | 		u_int desbuf_len; |
| 43 | 		char *desbuf_val; |
| 44 | 	} desbuf; |
| 45 | 	u_char des_ivec[8]; |
| 46 | 	int stat; |
| 47 | }; |
| 48 | typedef struct desresp desresp; |
| 49 | |
| 50 | #define	CRYPT_PROG ((unsigned long)(600100029)) |
| 51 | #define	CRYPT_VERS ((unsigned long)(1)) |
| 52 | |
| 53 | extern void crypt_prog_1(struct svc_req *rqstp, SVCXPRT *transp); |
| 54 | #define	DES_CRYPT ((unsigned long)(1)) |
| 55 | extern desresp * des_crypt_1(desargs *, CLIENT *); |
| 56 | extern desresp * des_crypt_1_svc(desargs *, struct svc_req *); |
| 57 | extern int crypt_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); |
| 58 | |
| 59 | /* the xdr functions */ |
| 60 | extern bool_t xdr_des_dir(XDR *, des_dir*); |
| 61 | extern bool_t xdr_des_mode(XDR *, des_mode*); |
| 62 | extern bool_t xdr_desargs(XDR *, desargs*); |
| 63 | extern bool_t xdr_desresp(XDR *, desresp*); |
| 64 | |
| 65 | #ifdef __cplusplus |
| 66 | } |
| 67 | #endif |
| 68 | |
| 69 | #endif /* !_CRYPT_H_RPCGEN */ |