The C and C++ Include Header Files
/usr/include/rpcsvc/key_prot.h
$ cat -n /usr/include/rpcsvc/key_prot.h 1 /* 2 * Please do not edit this file. 3 * It was generated using rpcgen. 4 */ 5 6 #ifndef _KEY_PROT_H_RPCGEN 7 #define _KEY_PROT_H_RPCGEN 8 9 #include
10 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 #if 0 17 #pragma ident "@(#)key_prot.x 1.7 94/04/29 SMI" 18 #endif 19 20 /* Copyright (c) 1990, 1991 Sun Microsystems, Inc. */ 21 22 /* 23 * Compiled from key_prot.x using rpcgen. 24 * DO NOT EDIT THIS FILE! 25 * This is NOT source code! 26 */ 27 #define PROOT 3 28 #define HEXMODULUS "d4a0ba0250b6fd2ec626e7efd637df76c716e22d0944b88b" 29 #define HEXKEYBYTES 48 30 #define KEYSIZE 192 31 #define KEYBYTES 24 32 #define KEYCHECKSUMSIZE 16 33 34 enum keystatus { 35 KEY_SUCCESS = 0, 36 KEY_NOSECRET = 1, 37 KEY_UNKNOWN = 2, 38 KEY_SYSTEMERR = 3, 39 }; 40 typedef enum keystatus keystatus; 41 42 typedef char keybuf[HEXKEYBYTES]; 43 44 typedef char *netnamestr; 45 46 struct cryptkeyarg { 47 netnamestr remotename; 48 des_block deskey; 49 }; 50 typedef struct cryptkeyarg cryptkeyarg; 51 52 struct cryptkeyarg2 { 53 netnamestr remotename; 54 netobj remotekey; 55 des_block deskey; 56 }; 57 typedef struct cryptkeyarg2 cryptkeyarg2; 58 59 struct cryptkeyres { 60 keystatus status; 61 union { 62 des_block deskey; 63 } cryptkeyres_u; 64 }; 65 typedef struct cryptkeyres cryptkeyres; 66 #define MAXGIDS 16 67 68 struct unixcred { 69 u_int uid; 70 u_int gid; 71 struct { 72 u_int gids_len; 73 u_int *gids_val; 74 } gids; 75 }; 76 typedef struct unixcred unixcred; 77 78 struct getcredres { 79 keystatus status; 80 union { 81 unixcred cred; 82 } getcredres_u; 83 }; 84 typedef struct getcredres getcredres; 85 86 struct key_netstarg { 87 keybuf st_priv_key; 88 keybuf st_pub_key; 89 netnamestr st_netname; 90 }; 91 typedef struct key_netstarg key_netstarg; 92 93 struct key_netstres { 94 keystatus status; 95 union { 96 key_netstarg knet; 97 } key_netstres_u; 98 }; 99 typedef struct key_netstres key_netstres; 100 101 #ifndef opaque 102 #define opaque char 103 #endif 104 105 106 #define KEY_PROG 100029 107 #define KEY_VERS 1 108 109 #if defined(__STDC__) || defined(__cplusplus) 110 #define KEY_SET 1 111 extern keystatus * key_set_1(char *, CLIENT *); 112 extern keystatus * key_set_1_svc(char *, struct svc_req *); 113 #define KEY_ENCRYPT 2 114 extern cryptkeyres * key_encrypt_1(cryptkeyarg *, CLIENT *); 115 extern cryptkeyres * key_encrypt_1_svc(cryptkeyarg *, struct svc_req *); 116 #define KEY_DECRYPT 3 117 extern cryptkeyres * key_decrypt_1(cryptkeyarg *, CLIENT *); 118 extern cryptkeyres * key_decrypt_1_svc(cryptkeyarg *, struct svc_req *); 119 #define KEY_GEN 4 120 extern des_block * key_gen_1(void *, CLIENT *); 121 extern des_block * key_gen_1_svc(void *, struct svc_req *); 122 #define KEY_GETCRED 5 123 extern getcredres * key_getcred_1(netnamestr *, CLIENT *); 124 extern getcredres * key_getcred_1_svc(netnamestr *, struct svc_req *); 125 extern int key_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); 126 127 #else /* K&R C */ 128 #define KEY_SET 1 129 extern keystatus * key_set_1(); 130 extern keystatus * key_set_1_svc(); 131 #define KEY_ENCRYPT 2 132 extern cryptkeyres * key_encrypt_1(); 133 extern cryptkeyres * key_encrypt_1_svc(); 134 #define KEY_DECRYPT 3 135 extern cryptkeyres * key_decrypt_1(); 136 extern cryptkeyres * key_decrypt_1_svc(); 137 #define KEY_GEN 4 138 extern des_block * key_gen_1(); 139 extern des_block * key_gen_1_svc(); 140 #define KEY_GETCRED 5 141 extern getcredres * key_getcred_1(); 142 extern getcredres * key_getcred_1_svc(); 143 extern int key_prog_1_freeresult (); 144 #endif /* K&R C */ 145 #define KEY_VERS2 2 146 147 #if defined(__STDC__) || defined(__cplusplus) 148 extern keystatus * key_set_2(char *, CLIENT *); 149 extern keystatus * key_set_2_svc(char *, struct svc_req *); 150 extern cryptkeyres * key_encrypt_2(cryptkeyarg *, CLIENT *); 151 extern cryptkeyres * key_encrypt_2_svc(cryptkeyarg *, struct svc_req *); 152 extern cryptkeyres * key_decrypt_2(cryptkeyarg *, CLIENT *); 153 extern cryptkeyres * key_decrypt_2_svc(cryptkeyarg *, struct svc_req *); 154 extern des_block * key_gen_2(void *, CLIENT *); 155 extern des_block * key_gen_2_svc(void *, struct svc_req *); 156 extern getcredres * key_getcred_2(netnamestr *, CLIENT *); 157 extern getcredres * key_getcred_2_svc(netnamestr *, struct svc_req *); 158 #define KEY_ENCRYPT_PK 6 159 extern cryptkeyres * key_encrypt_pk_2(cryptkeyarg2 *, CLIENT *); 160 extern cryptkeyres * key_encrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *); 161 #define KEY_DECRYPT_PK 7 162 extern cryptkeyres * key_decrypt_pk_2(cryptkeyarg2 *, CLIENT *); 163 extern cryptkeyres * key_decrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *); 164 #define KEY_NET_PUT 8 165 extern keystatus * key_net_put_2(key_netstarg *, CLIENT *); 166 extern keystatus * key_net_put_2_svc(key_netstarg *, struct svc_req *); 167 #define KEY_NET_GET 9 168 extern key_netstres * key_net_get_2(void *, CLIENT *); 169 extern key_netstres * key_net_get_2_svc(void *, struct svc_req *); 170 #define KEY_GET_CONV 10 171 extern cryptkeyres * key_get_conv_2(char *, CLIENT *); 172 extern cryptkeyres * key_get_conv_2_svc(char *, struct svc_req *); 173 extern int key_prog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t); 174 175 #else /* K&R C */ 176 extern keystatus * key_set_2(); 177 extern keystatus * key_set_2_svc(); 178 extern cryptkeyres * key_encrypt_2(); 179 extern cryptkeyres * key_encrypt_2_svc(); 180 extern cryptkeyres * key_decrypt_2(); 181 extern cryptkeyres * key_decrypt_2_svc(); 182 extern des_block * key_gen_2(); 183 extern des_block * key_gen_2_svc(); 184 extern getcredres * key_getcred_2(); 185 extern getcredres * key_getcred_2_svc(); 186 #define KEY_ENCRYPT_PK 6 187 extern cryptkeyres * key_encrypt_pk_2(); 188 extern cryptkeyres * key_encrypt_pk_2_svc(); 189 #define KEY_DECRYPT_PK 7 190 extern cryptkeyres * key_decrypt_pk_2(); 191 extern cryptkeyres * key_decrypt_pk_2_svc(); 192 #define KEY_NET_PUT 8 193 extern keystatus * key_net_put_2(); 194 extern keystatus * key_net_put_2_svc(); 195 #define KEY_NET_GET 9 196 extern key_netstres * key_net_get_2(); 197 extern key_netstres * key_net_get_2_svc(); 198 #define KEY_GET_CONV 10 199 extern cryptkeyres * key_get_conv_2(); 200 extern cryptkeyres * key_get_conv_2_svc(); 201 extern int key_prog_2_freeresult (); 202 #endif /* K&R C */ 203 204 /* the xdr functions */ 205 206 #if defined(__STDC__) || defined(__cplusplus) 207 extern bool_t xdr_keystatus (XDR *, keystatus*); 208 extern bool_t xdr_keybuf (XDR *, keybuf); 209 extern bool_t xdr_netnamestr (XDR *, netnamestr*); 210 extern bool_t xdr_cryptkeyarg (XDR *, cryptkeyarg*); 211 extern bool_t xdr_cryptkeyarg2 (XDR *, cryptkeyarg2*); 212 extern bool_t xdr_cryptkeyres (XDR *, cryptkeyres*); 213 extern bool_t xdr_unixcred (XDR *, unixcred*); 214 extern bool_t xdr_getcredres (XDR *, getcredres*); 215 extern bool_t xdr_key_netstarg (XDR *, key_netstarg*); 216 extern bool_t xdr_key_netstres (XDR *, key_netstres*); 217 218 #else /* K&R C */ 219 extern bool_t xdr_keystatus (); 220 extern bool_t xdr_keybuf (); 221 extern bool_t xdr_netnamestr (); 222 extern bool_t xdr_cryptkeyarg (); 223 extern bool_t xdr_cryptkeyarg2 (); 224 extern bool_t xdr_cryptkeyres (); 225 extern bool_t xdr_unixcred (); 226 extern bool_t xdr_getcredres (); 227 extern bool_t xdr_key_netstarg (); 228 extern bool_t xdr_key_netstres (); 229 230 #endif /* K&R C */ 231 232 #ifdef __cplusplus 233 } 234 #endif 235 236 #endif /* !_KEY_PROT_H_RPCGEN */
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2024 MyWebUniversity.com ™