Back to index

glibc  2.9
key_prot.h
Go to the documentation of this file.
00001 /*
00002  * Please do not edit this file.
00003  * It was generated using rpcgen.
00004  */
00005 
00006 #ifndef _KEY_PROT_H_RPCGEN
00007 #define _KEY_PROT_H_RPCGEN
00008 
00009 #include <rpc/rpc.h>
00010 
00011 /*
00012  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
00013  * unrestricted use provided that this legend is included on all tape
00014  * media and as a part of the software program in whole or part.  Users
00015  * may copy or modify Sun RPC without charge, but are not authorized
00016  * to license or distribute it to anyone else except as part of a product or
00017  * program developed by the user.
00018  *
00019  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
00020  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
00021  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
00022  *
00023  * Sun RPC is provided with no support and without any obligation on the
00024  * part of Sun Microsystems, Inc. to assist in its use, correction,
00025  * modification or enhancement.
00026  *
00027  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
00028  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
00029  * OR ANY PART THEREOF.
00030  *
00031  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
00032  * or profits or other special, indirect and consequential damages, even if
00033  * Sun has been advised of the possibility of such damages.
00034  *
00035  * Sun Microsystems, Inc.
00036  * 2550 Garcia Avenue
00037  * Mountain View, California  94043
00038  */
00039 #if 0
00040 #pragma ident "@(#)key_prot.x      1.7    94/04/29 SMI"
00041 #endif
00042 /* Copyright (c)  1990, 1991 Sun Microsystems, Inc. */
00043 
00044 /* 
00045  * Compiled from key_prot.x using rpcgen.
00046  * DO NOT EDIT THIS FILE!
00047  * This is NOT source code!
00048  */
00049 #define PROOT 3
00050 #define HEXMODULUS "d4a0ba0250b6fd2ec626e7efd637df76c716e22d0944b88b"
00051 #define HEXKEYBYTES 48
00052 #define KEYSIZE 192
00053 #define KEYBYTES 24
00054 #define KEYCHECKSUMSIZE 16
00055 
00056 enum keystatus {
00057        KEY_SUCCESS = 0,
00058        KEY_NOSECRET = 1,
00059        KEY_UNKNOWN = 2,
00060        KEY_SYSTEMERR = 3,
00061 };
00062 typedef enum keystatus keystatus;
00063 #ifdef __cplusplus 
00064 extern "C" bool_t xdr_keystatus(XDR *, keystatus*);
00065 #elif __STDC__ 
00066 extern  bool_t xdr_keystatus(XDR *, keystatus*);
00067 #else /* Old Style C */ 
00068 bool_t xdr_keystatus();
00069 #endif /* Old Style C */ 
00070 
00071 
00072 typedef char keybuf[HEXKEYBYTES];
00073 #ifdef __cplusplus 
00074 extern "C" bool_t xdr_keybuf(XDR *, keybuf);
00075 #elif __STDC__ 
00076 extern  bool_t xdr_keybuf(XDR *, keybuf);
00077 #else /* Old Style C */ 
00078 bool_t xdr_keybuf();
00079 #endif /* Old Style C */ 
00080 
00081 
00082 typedef char *netnamestr;
00083 #ifdef __cplusplus 
00084 extern "C" bool_t xdr_netnamestr(XDR *, netnamestr*);
00085 #elif __STDC__ 
00086 extern  bool_t xdr_netnamestr(XDR *, netnamestr*);
00087 #else /* Old Style C */ 
00088 bool_t xdr_netnamestr();
00089 #endif /* Old Style C */ 
00090 
00091 
00092 struct cryptkeyarg {
00093        netnamestr remotename;
00094        des_block deskey;
00095 };
00096 typedef struct cryptkeyarg cryptkeyarg;
00097 #ifdef __cplusplus 
00098 extern "C" bool_t xdr_cryptkeyarg(XDR *, cryptkeyarg*);
00099 #elif __STDC__ 
00100 extern  bool_t xdr_cryptkeyarg(XDR *, cryptkeyarg*);
00101 #else /* Old Style C */ 
00102 bool_t xdr_cryptkeyarg();
00103 #endif /* Old Style C */ 
00104 
00105 
00106 struct cryptkeyarg2 {
00107        netnamestr remotename;
00108        netobj remotekey;
00109        des_block deskey;
00110 };
00111 typedef struct cryptkeyarg2 cryptkeyarg2;
00112 #ifdef __cplusplus 
00113 extern "C" bool_t xdr_cryptkeyarg2(XDR *, cryptkeyarg2*);
00114 #elif __STDC__ 
00115 extern  bool_t xdr_cryptkeyarg2(XDR *, cryptkeyarg2*);
00116 #else /* Old Style C */ 
00117 bool_t xdr_cryptkeyarg2();
00118 #endif /* Old Style C */ 
00119 
00120 
00121 struct cryptkeyres {
00122        keystatus status;
00123        union {
00124               des_block deskey;
00125        } cryptkeyres_u;
00126 };
00127 typedef struct cryptkeyres cryptkeyres;
00128 #ifdef __cplusplus 
00129 extern "C" bool_t xdr_cryptkeyres(XDR *, cryptkeyres*);
00130 #elif __STDC__ 
00131 extern  bool_t xdr_cryptkeyres(XDR *, cryptkeyres*);
00132 #else /* Old Style C */ 
00133 bool_t xdr_cryptkeyres();
00134 #endif /* Old Style C */ 
00135 
00136 #define MAXGIDS 16
00137 
00138 struct unixcred {
00139        u_int uid;
00140        u_int gid;
00141        struct {
00142               u_int gids_len;
00143               u_int *gids_val;
00144        } gids;
00145 };
00146 typedef struct unixcred unixcred;
00147 #ifdef __cplusplus 
00148 extern "C" bool_t xdr_unixcred(XDR *, unixcred*);
00149 #elif __STDC__ 
00150 extern  bool_t xdr_unixcred(XDR *, unixcred*);
00151 #else /* Old Style C */ 
00152 bool_t xdr_unixcred();
00153 #endif /* Old Style C */ 
00154 
00155 
00156 struct getcredres {
00157        keystatus status;
00158        union {
00159               unixcred cred;
00160        } getcredres_u;
00161 };
00162 typedef struct getcredres getcredres;
00163 #ifdef __cplusplus 
00164 extern "C" bool_t xdr_getcredres(XDR *, getcredres*);
00165 #elif __STDC__ 
00166 extern  bool_t xdr_getcredres(XDR *, getcredres*);
00167 #else /* Old Style C */ 
00168 bool_t xdr_getcredres();
00169 #endif /* Old Style C */ 
00170 
00171 
00172 struct key_netstarg {
00173        keybuf st_priv_key;
00174        keybuf st_pub_key;
00175        netnamestr st_netname;
00176 };
00177 typedef struct key_netstarg key_netstarg;
00178 #ifdef __cplusplus 
00179 extern "C" bool_t xdr_key_netstarg(XDR *, key_netstarg*);
00180 #elif __STDC__ 
00181 extern  bool_t xdr_key_netstarg(XDR *, key_netstarg*);
00182 #else /* Old Style C */ 
00183 bool_t xdr_key_netstarg();
00184 #endif /* Old Style C */ 
00185 
00186 
00187 struct key_netstres {
00188        keystatus status;
00189        union {
00190               key_netstarg knet;
00191        } key_netstres_u;
00192 };
00193 typedef struct key_netstres key_netstres;
00194 #ifdef __cplusplus 
00195 extern "C" bool_t xdr_key_netstres(XDR *, key_netstres*);
00196 #elif __STDC__ 
00197 extern  bool_t xdr_key_netstres(XDR *, key_netstres*);
00198 #else /* Old Style C */ 
00199 bool_t xdr_key_netstres();
00200 #endif /* Old Style C */ 
00201 
00202 
00203 #ifndef opaque
00204 #define opaque char
00205 #endif
00206 
00207 
00208 #define KEY_PROG ((u_long)100029)
00209 #define KEY_VERS ((u_long)1)
00210 
00211 #ifdef __cplusplus
00212 #define KEY_SET ((u_long)1)
00213 extern "C" keystatus * key_set_1(opaque *, CLIENT *);
00214 extern "C" keystatus * key_set_1_svc(opaque *, struct svc_req *);
00215 #define KEY_ENCRYPT ((u_long)2)
00216 extern "C" cryptkeyres * key_encrypt_1(cryptkeyarg *, CLIENT *);
00217 extern "C" cryptkeyres * key_encrypt_1_svc(cryptkeyarg *, struct svc_req *);
00218 #define KEY_DECRYPT ((u_long)3)
00219 extern "C" cryptkeyres * key_decrypt_1(cryptkeyarg *, CLIENT *);
00220 extern "C" cryptkeyres * key_decrypt_1_svc(cryptkeyarg *, struct svc_req *);
00221 #define KEY_GEN ((u_long)4)
00222 extern "C" des_block * key_gen_1(void *, CLIENT *);
00223 extern "C" des_block * key_gen_1_svc(void *, struct svc_req *);
00224 #define KEY_GETCRED ((u_long)5)
00225 extern "C" getcredres * key_getcred_1(netnamestr *, CLIENT *);
00226 extern "C" getcredres * key_getcred_1_svc(netnamestr *, struct svc_req *);
00227 
00228 #elif __STDC__
00229 #define KEY_SET ((u_long)1)
00230 extern  keystatus * key_set_1(opaque *, CLIENT *);
00231 extern  keystatus * key_set_1_svc(opaque *, struct svc_req *);
00232 #define KEY_ENCRYPT ((u_long)2)
00233 extern  cryptkeyres * key_encrypt_1(cryptkeyarg *, CLIENT *);
00234 extern  cryptkeyres * key_encrypt_1_svc(cryptkeyarg *, struct svc_req *);
00235 #define KEY_DECRYPT ((u_long)3)
00236 extern  cryptkeyres * key_decrypt_1(cryptkeyarg *, CLIENT *);
00237 extern  cryptkeyres * key_decrypt_1_svc(cryptkeyarg *, struct svc_req *);
00238 #define KEY_GEN ((u_long)4)
00239 extern  des_block * key_gen_1(void *, CLIENT *);
00240 extern  des_block * key_gen_1_svc(void *, struct svc_req *);
00241 #define KEY_GETCRED ((u_long)5)
00242 extern  getcredres * key_getcred_1(netnamestr *, CLIENT *);
00243 extern  getcredres * key_getcred_1_svc(netnamestr *, struct svc_req *);
00244 
00245 #else /* Old Style C */ 
00246 #define KEY_SET ((u_long)1)
00247 extern  keystatus * key_set_1();
00248 extern  keystatus * key_set_1_svc();
00249 #define KEY_ENCRYPT ((u_long)2)
00250 extern  cryptkeyres * key_encrypt_1();
00251 extern  cryptkeyres * key_encrypt_1_svc();
00252 #define KEY_DECRYPT ((u_long)3)
00253 extern  cryptkeyres * key_decrypt_1();
00254 extern  cryptkeyres * key_decrypt_1_svc();
00255 #define KEY_GEN ((u_long)4)
00256 extern  des_block * key_gen_1();
00257 extern  des_block * key_gen_1_svc();
00258 #define KEY_GETCRED ((u_long)5)
00259 extern  getcredres * key_getcred_1();
00260 extern  getcredres * key_getcred_1_svc();
00261 #endif /* Old Style C */ 
00262 #define KEY_VERS2 ((u_long)2)
00263 
00264 #ifdef __cplusplus
00265 extern "C" keystatus * key_set_2(opaque *, CLIENT *);
00266 extern "C" keystatus * key_set_2_svc(opaque *, struct svc_req *);
00267 extern "C" cryptkeyres * key_encrypt_2(cryptkeyarg *, CLIENT *);
00268 extern "C" cryptkeyres * key_encrypt_2_svc(cryptkeyarg *, struct svc_req *);
00269 extern "C" cryptkeyres * key_decrypt_2(cryptkeyarg *, CLIENT *);
00270 extern "C" cryptkeyres * key_decrypt_2_svc(cryptkeyarg *, struct svc_req *);
00271 extern "C" des_block * key_gen_2(void *, CLIENT *);
00272 extern "C" des_block * key_gen_2_svc(void *, struct svc_req *);
00273 extern "C" getcredres * key_getcred_2(netnamestr *, CLIENT *);
00274 extern "C" getcredres * key_getcred_2_svc(netnamestr *, struct svc_req *);
00275 #define KEY_ENCRYPT_PK ((u_long)6)
00276 extern "C" cryptkeyres * key_encrypt_pk_2(cryptkeyarg2 *, CLIENT *);
00277 extern "C" cryptkeyres * key_encrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
00278 #define KEY_DECRYPT_PK ((u_long)7)
00279 extern "C" cryptkeyres * key_decrypt_pk_2(cryptkeyarg2 *, CLIENT *);
00280 extern "C" cryptkeyres * key_decrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
00281 #define KEY_NET_PUT ((u_long)8)
00282 extern "C" keystatus * key_net_put_2(key_netstarg *, CLIENT *);
00283 extern "C" keystatus * key_net_put_2_svc(key_netstarg *, struct svc_req *);
00284 #define KEY_NET_GET ((u_long)9)
00285 extern "C" key_netstres * key_net_get_2(void *, CLIENT *);
00286 extern "C" key_netstres * key_net_get_2_svc(void *, struct svc_req *);
00287 #define KEY_GET_CONV ((u_long)10)
00288 extern "C" cryptkeyres * key_get_conv_2(opaque *, CLIENT *);
00289 extern "C" cryptkeyres * key_get_conv_2_svc(opaque *, struct svc_req *);
00290 
00291 #elif __STDC__
00292 extern  keystatus * key_set_2(opaque *, CLIENT *);
00293 extern  keystatus * key_set_2_svc(opaque *, struct svc_req *);
00294 extern  cryptkeyres * key_encrypt_2(cryptkeyarg *, CLIENT *);
00295 extern  cryptkeyres * key_encrypt_2_svc(cryptkeyarg *, struct svc_req *);
00296 extern  cryptkeyres * key_decrypt_2(cryptkeyarg *, CLIENT *);
00297 extern  cryptkeyres * key_decrypt_2_svc(cryptkeyarg *, struct svc_req *);
00298 extern  des_block * key_gen_2(void *, CLIENT *);
00299 extern  des_block * key_gen_2_svc(void *, struct svc_req *);
00300 extern  getcredres * key_getcred_2(netnamestr *, CLIENT *);
00301 extern  getcredres * key_getcred_2_svc(netnamestr *, struct svc_req *);
00302 #define KEY_ENCRYPT_PK ((u_long)6)
00303 extern  cryptkeyres * key_encrypt_pk_2(cryptkeyarg2 *, CLIENT *);
00304 extern  cryptkeyres * key_encrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
00305 #define KEY_DECRYPT_PK ((u_long)7)
00306 extern  cryptkeyres * key_decrypt_pk_2(cryptkeyarg2 *, CLIENT *);
00307 extern  cryptkeyres * key_decrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
00308 #define KEY_NET_PUT ((u_long)8)
00309 extern  keystatus * key_net_put_2(key_netstarg *, CLIENT *);
00310 extern  keystatus * key_net_put_2_svc(key_netstarg *, struct svc_req *);
00311 #define KEY_NET_GET ((u_long)9)
00312 extern  key_netstres * key_net_get_2(void *, CLIENT *);
00313 extern  key_netstres * key_net_get_2_svc(void *, struct svc_req *);
00314 #define KEY_GET_CONV ((u_long)10)
00315 extern  cryptkeyres * key_get_conv_2(opaque *, CLIENT *);
00316 extern  cryptkeyres * key_get_conv_2_svc(opaque *, struct svc_req *);
00317 
00318 #else /* Old Style C */ 
00319 extern  keystatus * key_set_2();
00320 extern  keystatus * key_set_2_svc();
00321 extern  cryptkeyres * key_encrypt_2();
00322 extern  cryptkeyres * key_encrypt_2_svc();
00323 extern  cryptkeyres * key_decrypt_2();
00324 extern  cryptkeyres * key_decrypt_2_svc();
00325 extern  des_block * key_gen_2();
00326 extern  des_block * key_gen_2_svc();
00327 extern  getcredres * key_getcred_2();
00328 extern  getcredres * key_getcred_2_svc();
00329 #define KEY_ENCRYPT_PK ((u_long)6)
00330 extern  cryptkeyres * key_encrypt_pk_2();
00331 extern  cryptkeyres * key_encrypt_pk_2_svc();
00332 #define KEY_DECRYPT_PK ((u_long)7)
00333 extern  cryptkeyres * key_decrypt_pk_2();
00334 extern  cryptkeyres * key_decrypt_pk_2_svc();
00335 #define KEY_NET_PUT ((u_long)8)
00336 extern  keystatus * key_net_put_2();
00337 extern  keystatus * key_net_put_2_svc();
00338 #define KEY_NET_GET ((u_long)9)
00339 extern  key_netstres * key_net_get_2();
00340 extern  key_netstres * key_net_get_2_svc();
00341 #define KEY_GET_CONV ((u_long)10)
00342 extern  cryptkeyres * key_get_conv_2();
00343 extern  cryptkeyres * key_get_conv_2_svc();
00344 #endif /* Old Style C */ 
00345 
00346 #endif /* !_KEY_PROT_H_RPCGEN */