OpenAFS
OpenAFS distributed network file system
|
00001 /* Machine generated file -- Do NOT edit */ 00002 00003 #ifndef _RXGEN_KAUTH_ 00004 #define _RXGEN_KAUTH_ 00005 00006 #ifdef KERNEL 00007 /* The following 'ifndefs' are not a good solution to the vendor's omission of surrounding all system includes with 'ifndef's since it requires that this file is included after the system includes...*/ 00008 #include <afsconfig.h> 00009 #include "afs/param.h" 00010 #ifdef UKERNEL 00011 #include "afs/sysincludes.h" 00012 #include "rx/xdr.h" 00013 #include "rx/rx.h" 00014 #include "rx/rx_globals.h" 00015 #include <ubik.h> 00016 #else /* UKERNEL */ 00017 #include "h/types.h" 00018 #ifndef SOCK_DGRAM /* XXXXX */ 00019 #include "h/socket.h" 00020 #endif 00021 struct ubik_client; 00022 #ifndef DTYPE_SOCKET /* XXXXX */ 00023 #ifndef AFS_LINUX22_ENV 00024 #include "h/file.h" 00025 #endif 00026 #endif 00027 #ifndef S_IFMT /* XXXXX */ 00028 #include "h/stat.h" 00029 #endif 00030 #if defined (AFS_OBSD_ENV) && !defined (MLEN) 00031 #include "sys/mbuf.h" 00032 #endif 00033 #ifndef IPPROTO_UDP /* XXXXX */ 00034 #include "netinet/in.h" 00035 #endif 00036 #ifndef DST_USA /* XXXXX */ 00037 #include "h/time.h" 00038 #endif 00039 #ifndef AFS_LINUX22_ENV 00040 #include "rpc/types.h" 00041 #endif /* AFS_LINUX22_ENV */ 00042 #ifndef XDR_GETLONG /* XXXXX */ 00043 #ifdef AFS_LINUX22_ENV 00044 #ifndef quad_t 00045 #define quad_t __quad_t 00046 #define u_quad_t __u_quad_t 00047 #endif 00048 #endif 00049 #include "rx/xdr.h" 00050 #endif /* XDR_GETLONG */ 00051 #endif /* UKERNEL */ 00052 #include "afs/rxgen_consts.h" 00053 #include "afs_osi.h" 00054 #include "rx/rx.h" 00055 #include "rx/rx_globals.h" 00056 #else /* KERNEL */ 00057 #include <afs/param.h> 00058 #include <afs/stds.h> 00059 #include <sys/types.h> 00060 #include <rx/xdr.h> 00061 #include <rx/rx.h> 00062 #include <rx/rx_globals.h> 00063 #include <afs/rxgen_consts.h> 00064 #include <ubik.h> 00065 #endif /* KERNEL */ 00066 00067 #ifdef AFS_NT40_ENV 00068 #ifndef AFS_RXGEN_EXPORT 00069 #define AFS_RXGEN_EXPORT __declspec(dllimport) 00070 #endif /* AFS_RXGEN_EXPORT */ 00071 #else /* AFS_NT40_ENV */ 00072 #define AFS_RXGEN_EXPORT 00073 #endif /* AFS_NT40_ENV */ 00074 00075 00076 struct ka_CBS { 00077 afs_int32 SeqLen; 00078 char *SeqBody; 00079 }; 00080 typedef struct ka_CBS ka_CBS; 00081 bool_t xdr_ka_CBS(XDR *xdrs, ka_CBS *objp); 00082 00083 00084 struct ka_BBS { 00085 afs_int32 MaxSeqLen; 00086 afs_int32 SeqLen; 00087 char *SeqBody; 00088 }; 00089 typedef struct ka_BBS ka_BBS; 00090 bool_t xdr_ka_BBS(XDR *xdrs, ka_BBS *objp); 00091 00092 #define MAXKAKVNO 127 00093 #define KAFNORMAL 0x001 00094 #define KAFFREE 0x002 00095 #define KAFOLDKEYS 0x010 00096 #define KAFSPECIAL 0x100 00097 #define KAFASSOCROOT 0x200 00098 #define KAFASSOC 0x400 00099 #define KAFADMIN 0x004 00100 #define KAFNOTGS 0x008 00101 #define KAFNOSEAL 0x020 00102 #define KAFNOCPW 0x040 00103 #define KAFNEWASSOC 0x080 00104 #define KAF_SETTABLE_FLAGS (KAFADMIN | KAFNOTGS | KAFNOSEAL | KAFNOCPW | KAFNEWASSOC) 00105 00106 struct EncryptionKey { 00107 char key[8]; 00108 }; 00109 typedef struct EncryptionKey EncryptionKey; 00110 bool_t xdr_EncryptionKey(XDR *xdrs, EncryptionKey *objp); 00111 00112 #define KAMAJORVERSION 5 00113 #define KAMINORVERSION 2 00114 #ifndef NEVERDATE 00115 #define NEVERDATE 037777777777 /* a date that will never come */ 00116 #endif 00117 #ifndef Date 00118 #define Date afs_uint32 00119 #endif 00120 #if !defined(AFS_HPUX_ENV) && !defined(AFS_NT40_ENV) && !defined(AFS_LINUX20_ENV) 00121 #define AUTH_DBM_LOG 00122 #endif 00123 00124 typedef char *kaname; 00125 bool_t xdr_kaname(XDR *xdrs, kaname *objp); 00126 00127 00128 struct kaident { 00129 char name[64]; 00130 char instance[64]; 00131 }; 00132 typedef struct kaident kaident; 00133 bool_t xdr_kaident(XDR *xdrs, kaident *objp); 00134 00135 00136 struct kaentryinfo { 00137 afs_int32 minor_version; 00138 afs_int32 flags; 00139 afs_uint32 user_expiration; 00140 afs_uint32 modification_time; 00141 struct kaident modification_user; 00142 afs_uint32 change_password_time; 00143 afs_int32 max_ticket_lifetime; 00144 afs_int32 key_version; 00145 EncryptionKey key; 00146 afs_uint32 keyCheckSum; 00147 afs_uint32 misc_auth_bytes; 00148 afs_int32 reserved3; 00149 afs_int32 reserved4; 00150 }; 00151 typedef struct kaentryinfo kaentryinfo; 00152 bool_t xdr_kaentryinfo(XDR *xdrs, kaentryinfo *objp); 00153 00154 00155 struct kasstats { 00156 afs_int32 minor_version; 00157 afs_int32 allocs; 00158 afs_int32 frees; 00159 afs_int32 cpws; 00160 afs_int32 reserved1; 00161 afs_int32 reserved2; 00162 afs_int32 reserved3; 00163 afs_int32 reserved4; 00164 }; 00165 typedef struct kasstats kasstats; 00166 bool_t xdr_kasstats(XDR *xdrs, kasstats *objp); 00167 00168 00169 struct katimeval { 00170 afs_int32 tv_sec; 00171 afs_int32 tv_usec; 00172 }; 00173 typedef struct katimeval katimeval; 00174 bool_t xdr_katimeval(XDR *xdrs, katimeval *objp); 00175 00176 00177 struct karpcstats { 00178 int requests; 00179 int aborts; 00180 }; 00181 typedef struct karpcstats karpcstats; 00182 bool_t xdr_karpcstats(XDR *xdrs, karpcstats *objp); 00183 00184 00185 struct kadstats { 00186 afs_int32 minor_version; 00187 afs_int32 host; 00188 afs_uint32 start_time; 00189 afs_int32 hashTableUtilization; 00190 struct karpcstats Authenticate; 00191 struct karpcstats ChangePassword; 00192 struct karpcstats GetTicket; 00193 struct karpcstats CreateUser; 00194 struct karpcstats SetPassword; 00195 struct karpcstats SetFields; 00196 struct karpcstats DeleteUser; 00197 struct karpcstats GetEntry; 00198 struct karpcstats ListEntry; 00199 struct karpcstats GetStats; 00200 struct karpcstats GetPassword; 00201 struct karpcstats GetRandomKey; 00202 struct karpcstats Debug; 00203 struct karpcstats UAuthenticate; 00204 struct karpcstats UGetTicket; 00205 struct karpcstats Unlock; 00206 struct karpcstats LockStatus; 00207 afs_int32 string_checks; 00208 afs_int32 reserved1; 00209 afs_int32 reserved2; 00210 afs_int32 reserved3; 00211 afs_int32 reserved4; 00212 }; 00213 typedef struct kadstats kadstats; 00214 bool_t xdr_kadstats(XDR *xdrs, kadstats *objp); 00215 00216 #define KADEBUGKCINFOSIZE 25 00217 00218 struct ka_kcInfo { 00219 afs_uint32 used; 00220 afs_int32 kvno; 00221 char primary; 00222 char keycksum; 00223 char principal[64]; 00224 }; 00225 typedef struct ka_kcInfo ka_kcInfo; 00226 bool_t xdr_ka_kcInfo(XDR *xdrs, ka_kcInfo *objp); 00227 00228 00229 struct ka_debugInfo { 00230 afs_int32 minorVersion; 00231 afs_int32 host; 00232 afs_uint32 startTime; 00233 int noAuth; 00234 afs_uint32 lastTrans; 00235 char lastOperation[16]; 00236 char lastAuth[256]; 00237 char lastUAuth[256]; 00238 char lastTGS[256]; 00239 char lastUTGS[256]; 00240 char lastAdmin[256]; 00241 char lastTGSServer[256]; 00242 char lastUTGSServer[256]; 00243 afs_uint32 nextAutoCPW; 00244 int updatesRemaining; 00245 afs_uint32 dbHeaderRead; 00246 afs_int32 dbVersion; 00247 afs_int32 dbFreePtr; 00248 afs_int32 dbEofPtr; 00249 afs_int32 dbKvnoPtr; 00250 afs_int32 dbSpecialKeysVersion; 00251 afs_int32 cheader_lock; 00252 afs_int32 keycache_lock; 00253 afs_int32 kcVersion; 00254 int kcSize; 00255 int kcUsed; 00256 struct ka_kcInfo kcInfo[KADEBUGKCINFOSIZE]; 00257 afs_int32 reserved1; 00258 afs_int32 reserved2; 00259 afs_int32 reserved3; 00260 afs_int32 reserved4; 00261 }; 00262 typedef struct ka_debugInfo ka_debugInfo; 00263 bool_t xdr_ka_debugInfo(XDR *xdrs, ka_debugInfo *objp); 00264 00265 #define KAA_STATINDEX 18 00266 00267 extern int KAA_Authenticate_old( 00268 /*IN */ struct rx_connection *z_conn, 00269 /*IN 0*/ kaname name, 00270 /*IN 0*/ kaname instance, 00271 /*IN 0*/ afs_uint32 start_time, 00272 /*IN 0*/ afs_uint32 end_time, 00273 /*IN 0*/ struct ka_CBS * request, 00274 /*I/O*/ struct ka_BBS * answer); 00275 00276 extern int ubik_KAA_Authenticate_old( 00277 struct ubik_client *aclient, afs_int32 aflags, 00278 /*IN 2*/ kaname name, 00279 /*IN 2*/ kaname instance, 00280 /*IN 2*/ afs_uint32 start_time, 00281 /*IN 2*/ afs_uint32 end_time, 00282 /*IN 2*/ struct ka_CBS * request, 00283 /*I/O*/ struct ka_BBS * answer); 00284 00285 extern afs_int32 SKAA_Authenticate_old( 00286 /*IN */ struct rx_call *z_call, 00287 /*IN 3*/ kaname name, 00288 /*IN 3*/ kaname instance, 00289 /*IN 3*/ afs_uint32 start_time, 00290 /*IN 3*/ afs_uint32 end_time, 00291 /*IN 3*/ struct ka_CBS * request, 00292 /*I/O*/ struct ka_BBS * answer); 00293 00294 extern int KAA_Authenticate( 00295 /*IN */ struct rx_connection *z_conn, 00296 /*IN 0*/ kaname name, 00297 /*IN 0*/ kaname instance, 00298 /*IN 0*/ afs_uint32 start_time, 00299 /*IN 0*/ afs_uint32 end_time, 00300 /*IN 0*/ struct ka_CBS * request, 00301 /*I/O*/ struct ka_BBS * answer); 00302 00303 extern int ubik_KAA_Authenticate( 00304 struct ubik_client *aclient, afs_int32 aflags, 00305 /*IN 2*/ kaname name, 00306 /*IN 2*/ kaname instance, 00307 /*IN 2*/ afs_uint32 start_time, 00308 /*IN 2*/ afs_uint32 end_time, 00309 /*IN 2*/ struct ka_CBS * request, 00310 /*I/O*/ struct ka_BBS * answer); 00311 00312 extern afs_int32 SKAA_Authenticate( 00313 /*IN */ struct rx_call *z_call, 00314 /*IN 3*/ kaname name, 00315 /*IN 3*/ kaname instance, 00316 /*IN 3*/ afs_uint32 start_time, 00317 /*IN 3*/ afs_uint32 end_time, 00318 /*IN 3*/ struct ka_CBS * request, 00319 /*I/O*/ struct ka_BBS * answer); 00320 00321 extern int KAA_AuthenticateV2( 00322 /*IN */ struct rx_connection *z_conn, 00323 /*IN 0*/ kaname name, 00324 /*IN 0*/ kaname instance, 00325 /*IN 0*/ afs_uint32 start_time, 00326 /*IN 0*/ afs_uint32 end_time, 00327 /*IN 0*/ struct ka_CBS * request, 00328 /*I/O*/ struct ka_BBS * answer); 00329 00330 extern int ubik_KAA_AuthenticateV2( 00331 struct ubik_client *aclient, afs_int32 aflags, 00332 /*IN 2*/ kaname name, 00333 /*IN 2*/ kaname instance, 00334 /*IN 2*/ afs_uint32 start_time, 00335 /*IN 2*/ afs_uint32 end_time, 00336 /*IN 2*/ struct ka_CBS * request, 00337 /*I/O*/ struct ka_BBS * answer); 00338 00339 extern afs_int32 SKAA_AuthenticateV2( 00340 /*IN */ struct rx_call *z_call, 00341 /*IN 3*/ kaname name, 00342 /*IN 3*/ kaname instance, 00343 /*IN 3*/ afs_uint32 start_time, 00344 /*IN 3*/ afs_uint32 end_time, 00345 /*IN 3*/ struct ka_CBS * request, 00346 /*I/O*/ struct ka_BBS * answer); 00347 00348 extern int KAA_ChangePassword( 00349 /*IN */ struct rx_connection *z_conn, 00350 /*IN 0*/ kaname name, 00351 /*IN 0*/ kaname instance, 00352 /*IN 0*/ struct ka_CBS * arequest, 00353 /*I/O*/ struct ka_BBS * oanswer); 00354 00355 extern int ubik_KAA_ChangePassword( 00356 struct ubik_client *aclient, afs_int32 aflags, 00357 /*IN 2*/ kaname name, 00358 /*IN 2*/ kaname instance, 00359 /*IN 2*/ struct ka_CBS * arequest, 00360 /*I/O*/ struct ka_BBS * oanswer); 00361 00362 extern afs_int32 SKAA_ChangePassword( 00363 /*IN */ struct rx_call *z_call, 00364 /*IN 3*/ kaname name, 00365 /*IN 3*/ kaname instance, 00366 /*IN 3*/ struct ka_CBS * arequest, 00367 /*I/O*/ struct ka_BBS * oanswer); 00368 #define KAT_STATINDEX 19 00369 00370 extern int KAT_GetTicket_old( 00371 /*IN */ struct rx_connection *z_conn, 00372 /*IN 0*/ afs_int32 kvno, 00373 /*IN 0*/ kaname auth_domain, 00374 /*IN 0*/ struct ka_CBS * aticket, 00375 /*IN 0*/ kaname name, 00376 /*IN 0*/ kaname instance, 00377 /*IN 0*/ struct ka_CBS * atimes, 00378 /*I/O*/ struct ka_BBS * oanswer); 00379 00380 extern int ubik_KAT_GetTicket_old( 00381 struct ubik_client *aclient, afs_int32 aflags, 00382 /*IN 2*/ afs_int32 kvno, 00383 /*IN 2*/ kaname auth_domain, 00384 /*IN 2*/ struct ka_CBS * aticket, 00385 /*IN 2*/ kaname name, 00386 /*IN 2*/ kaname instance, 00387 /*IN 2*/ struct ka_CBS * atimes, 00388 /*I/O*/ struct ka_BBS * oanswer); 00389 00390 extern afs_int32 SKAT_GetTicket_old( 00391 /*IN */ struct rx_call *z_call, 00392 /*IN 3*/ afs_int32 kvno, 00393 /*IN 3*/ kaname auth_domain, 00394 /*IN 3*/ struct ka_CBS * aticket, 00395 /*IN 3*/ kaname name, 00396 /*IN 3*/ kaname instance, 00397 /*IN 3*/ struct ka_CBS * atimes, 00398 /*I/O*/ struct ka_BBS * oanswer); 00399 00400 extern int KAT_GetTicket( 00401 /*IN */ struct rx_connection *z_conn, 00402 /*IN 0*/ afs_int32 kvno, 00403 /*IN 0*/ kaname auth_domain, 00404 /*IN 0*/ struct ka_CBS * aticket, 00405 /*IN 0*/ kaname name, 00406 /*IN 0*/ kaname instance, 00407 /*IN 0*/ struct ka_CBS * atimes, 00408 /*I/O*/ struct ka_BBS * oanswer); 00409 00410 extern int ubik_KAT_GetTicket( 00411 struct ubik_client *aclient, afs_int32 aflags, 00412 /*IN 2*/ afs_int32 kvno, 00413 /*IN 2*/ kaname auth_domain, 00414 /*IN 2*/ struct ka_CBS * aticket, 00415 /*IN 2*/ kaname name, 00416 /*IN 2*/ kaname instance, 00417 /*IN 2*/ struct ka_CBS * atimes, 00418 /*I/O*/ struct ka_BBS * oanswer); 00419 00420 extern afs_int32 SKAT_GetTicket( 00421 /*IN */ struct rx_call *z_call, 00422 /*IN 3*/ afs_int32 kvno, 00423 /*IN 3*/ kaname auth_domain, 00424 /*IN 3*/ struct ka_CBS * aticket, 00425 /*IN 3*/ kaname name, 00426 /*IN 3*/ kaname instance, 00427 /*IN 3*/ struct ka_CBS * atimes, 00428 /*I/O*/ struct ka_BBS * oanswer); 00429 #define KAM_STATINDEX 20 00430 00431 extern int KAM_SetPassword( 00432 /*IN */ struct rx_connection *z_conn, 00433 /*IN 0*/ kaname name, 00434 /*IN 0*/ kaname instance, 00435 /*IN 0*/ afs_int32 kvno, 00436 /*IN 0*/ EncryptionKey password); 00437 00438 extern int ubik_KAM_SetPassword( 00439 struct ubik_client *aclient, afs_int32 aflags, 00440 /*IN 2*/ kaname name, 00441 /*IN 2*/ kaname instance, 00442 /*IN 2*/ afs_int32 kvno, 00443 /*IN 2*/ EncryptionKey password); 00444 00445 extern afs_int32 SKAM_SetPassword( 00446 /*IN */ struct rx_call *z_call, 00447 /*IN 3*/ kaname name, 00448 /*IN 3*/ kaname instance, 00449 /*IN 3*/ afs_int32 kvno, 00450 /*IN 3*/ EncryptionKey password); 00451 00452 extern int KAM_SetFields( 00453 /*IN */ struct rx_connection *z_conn, 00454 /*IN 0*/ kaname name, 00455 /*IN 0*/ kaname instance, 00456 /*IN 0*/ afs_int32 flags, 00457 /*IN 0*/ afs_uint32 user_expiration, 00458 /*IN 0*/ afs_int32 max_ticket_lifetime, 00459 /*IN 0*/ afs_int32 maxAssociates, 00460 /*IN 0*/ afs_uint32 misc_auth_bytes, 00461 /*IN 0*/ afs_int32 spare2); 00462 00463 extern int ubik_KAM_SetFields( 00464 struct ubik_client *aclient, afs_int32 aflags, 00465 /*IN 2*/ kaname name, 00466 /*IN 2*/ kaname instance, 00467 /*IN 2*/ afs_int32 flags, 00468 /*IN 2*/ afs_uint32 user_expiration, 00469 /*IN 2*/ afs_int32 max_ticket_lifetime, 00470 /*IN 2*/ afs_int32 maxAssociates, 00471 /*IN 2*/ afs_uint32 misc_auth_bytes, 00472 /*IN 2*/ afs_int32 spare2); 00473 00474 extern afs_int32 SKAM_SetFields( 00475 /*IN */ struct rx_call *z_call, 00476 /*IN 3*/ kaname name, 00477 /*IN 3*/ kaname instance, 00478 /*IN 3*/ afs_int32 flags, 00479 /*IN 3*/ afs_uint32 user_expiration, 00480 /*IN 3*/ afs_int32 max_ticket_lifetime, 00481 /*IN 3*/ afs_int32 maxAssociates, 00482 /*IN 3*/ afs_uint32 misc_auth_bytes, 00483 /*IN 3*/ afs_int32 spare2); 00484 00485 extern int KAM_CreateUser( 00486 /*IN */ struct rx_connection *z_conn, 00487 /*IN 0*/ kaname name, 00488 /*IN 0*/ kaname instance, 00489 /*IN 0*/ EncryptionKey password); 00490 00491 extern int ubik_KAM_CreateUser( 00492 struct ubik_client *aclient, afs_int32 aflags, 00493 /*IN 2*/ kaname name, 00494 /*IN 2*/ kaname instance, 00495 /*IN 2*/ EncryptionKey password); 00496 00497 extern afs_int32 SKAM_CreateUser( 00498 /*IN */ struct rx_call *z_call, 00499 /*IN 3*/ kaname name, 00500 /*IN 3*/ kaname instance, 00501 /*IN 3*/ EncryptionKey password); 00502 00503 extern int KAM_DeleteUser( 00504 /*IN */ struct rx_connection *z_conn, 00505 /*IN 0*/ kaname name, 00506 /*IN 0*/ kaname instance); 00507 00508 extern int ubik_KAM_DeleteUser( 00509 struct ubik_client *aclient, afs_int32 aflags, 00510 /*IN 2*/ kaname name, 00511 /*IN 2*/ kaname instance); 00512 00513 extern afs_int32 SKAM_DeleteUser( 00514 /*IN */ struct rx_call *z_call, 00515 /*IN 3*/ kaname name, 00516 /*IN 3*/ kaname instance); 00517 00518 extern int KAM_GetEntry( 00519 /*IN */ struct rx_connection *z_conn, 00520 /*IN 0*/ kaname name, 00521 /*IN 0*/ kaname instance, 00522 /*IN 0*/ afs_int32 major_version, 00523 /*OUT*/ struct kaentryinfo * entry); 00524 00525 extern int ubik_KAM_GetEntry( 00526 struct ubik_client *aclient, afs_int32 aflags, 00527 /*IN 2*/ kaname name, 00528 /*IN 2*/ kaname instance, 00529 /*IN 2*/ afs_int32 major_version, 00530 /*OUT*/ struct kaentryinfo * entry); 00531 00532 extern afs_int32 SKAM_GetEntry( 00533 /*IN */ struct rx_call *z_call, 00534 /*IN 3*/ kaname name, 00535 /*IN 3*/ kaname instance, 00536 /*IN 3*/ afs_int32 major_version, 00537 /*OUT*/ struct kaentryinfo * entry); 00538 00539 extern int KAM_ListEntry( 00540 /*IN */ struct rx_connection *z_conn, 00541 /*IN 0*/ afs_int32 previous_index, 00542 /*OUT*/ afs_int32 * index, 00543 /*OUT*/ afs_int32 * count, 00544 /*OUT*/ kaident * name); 00545 00546 extern int ubik_KAM_ListEntry( 00547 struct ubik_client *aclient, afs_int32 aflags, 00548 /*IN 2*/ afs_int32 previous_index, 00549 /*OUT*/ afs_int32 * index, 00550 /*OUT*/ afs_int32 * count, 00551 /*OUT*/ kaident * name); 00552 00553 extern afs_int32 SKAM_ListEntry( 00554 /*IN */ struct rx_call *z_call, 00555 /*IN 3*/ afs_int32 previous_index, 00556 /*OUT*/ afs_int32 * index, 00557 /*OUT*/ afs_int32 * count, 00558 /*OUT*/ kaident * name); 00559 00560 extern int KAM_GetStats( 00561 /*IN */ struct rx_connection *z_conn, 00562 /*IN 0*/ afs_int32 major_version, 00563 /*OUT*/ afs_int32 * admin_accounts, 00564 /*OUT*/ struct kasstats * statics, 00565 /*OUT*/ struct kadstats * dynamics); 00566 00567 extern int ubik_KAM_GetStats( 00568 struct ubik_client *aclient, afs_int32 aflags, 00569 /*IN 2*/ afs_int32 major_version, 00570 /*OUT*/ afs_int32 * admin_accounts, 00571 /*OUT*/ struct kasstats * statics, 00572 /*OUT*/ struct kadstats * dynamics); 00573 00574 extern afs_int32 SKAM_GetStats( 00575 /*IN */ struct rx_call *z_call, 00576 /*IN 3*/ afs_int32 major_version, 00577 /*OUT*/ afs_int32 * admin_accounts, 00578 /*OUT*/ struct kasstats * statics, 00579 /*OUT*/ struct kadstats * dynamics); 00580 00581 extern int KAM_Debug( 00582 /*IN */ struct rx_connection *z_conn, 00583 /*IN 0*/ afs_int32 major_version, 00584 /*IN 0*/ int checkDB, 00585 /*OUT*/ struct ka_debugInfo * info); 00586 00587 extern int ubik_KAM_Debug( 00588 struct ubik_client *aclient, afs_int32 aflags, 00589 /*IN 2*/ afs_int32 major_version, 00590 /*IN 2*/ int checkDB, 00591 /*OUT*/ struct ka_debugInfo * info); 00592 00593 extern afs_int32 SKAM_Debug( 00594 /*IN */ struct rx_call *z_call, 00595 /*IN 3*/ afs_int32 major_version, 00596 /*IN 3*/ int checkDB, 00597 /*OUT*/ struct ka_debugInfo * info); 00598 00599 extern int KAM_GetPassword( 00600 /*IN */ struct rx_connection *z_conn, 00601 /*IN 0*/ kaname name, 00602 /*OUT*/ EncryptionKey * password); 00603 00604 extern int ubik_KAM_GetPassword( 00605 struct ubik_client *aclient, afs_int32 aflags, 00606 /*IN 2*/ kaname name, 00607 /*OUT*/ EncryptionKey * password); 00608 00609 extern afs_int32 SKAM_GetPassword( 00610 /*IN */ struct rx_call *z_call, 00611 /*IN 3*/ kaname name, 00612 /*OUT*/ EncryptionKey * password); 00613 00614 extern int KAM_GetRandomKey( 00615 /*IN */ struct rx_connection *z_conn, 00616 /*OUT*/ EncryptionKey * password); 00617 00618 extern int ubik_KAM_GetRandomKey( 00619 struct ubik_client *aclient, afs_int32 aflags, 00620 /*OUT*/ EncryptionKey * password); 00621 00622 extern afs_int32 SKAM_GetRandomKey( 00623 /*IN */ struct rx_call *z_call, 00624 /*OUT*/ EncryptionKey * password); 00625 00626 extern int KAM_Unlock( 00627 /*IN */ struct rx_connection *z_conn, 00628 /*IN 0*/ kaname name, 00629 /*IN 0*/ kaname instance, 00630 /*IN 0*/ afs_int32 spare1, 00631 /*IN 0*/ afs_int32 spare2, 00632 /*IN 0*/ afs_int32 spare3, 00633 /*IN 0*/ afs_int32 spare4); 00634 00635 extern int ubik_KAM_Unlock( 00636 struct ubik_client *aclient, afs_int32 aflags, 00637 /*IN 2*/ kaname name, 00638 /*IN 2*/ kaname instance, 00639 /*IN 2*/ afs_int32 spare1, 00640 /*IN 2*/ afs_int32 spare2, 00641 /*IN 2*/ afs_int32 spare3, 00642 /*IN 2*/ afs_int32 spare4); 00643 00644 extern afs_int32 SKAM_Unlock( 00645 /*IN */ struct rx_call *z_call, 00646 /*IN 3*/ kaname name, 00647 /*IN 3*/ kaname instance, 00648 /*IN 3*/ afs_int32 spare1, 00649 /*IN 3*/ afs_int32 spare2, 00650 /*IN 3*/ afs_int32 spare3, 00651 /*IN 3*/ afs_int32 spare4); 00652 00653 extern int KAM_LockStatus( 00654 /*IN */ struct rx_connection *z_conn, 00655 /*IN 0*/ kaname name, 00656 /*IN 0*/ kaname instance, 00657 /*OUT*/ afs_int32 * lockeduntil, 00658 /*IN 0*/ afs_int32 spare1, 00659 /*IN 0*/ afs_int32 spare2, 00660 /*IN 0*/ afs_int32 spare3, 00661 /*IN 0*/ afs_int32 spare4); 00662 00663 extern int ubik_KAM_LockStatus( 00664 struct ubik_client *aclient, afs_int32 aflags, 00665 /*IN 2*/ kaname name, 00666 /*IN 2*/ kaname instance, 00667 /*OUT*/ afs_int32 * lockeduntil, 00668 /*IN 2*/ afs_int32 spare1, 00669 /*IN 2*/ afs_int32 spare2, 00670 /*IN 2*/ afs_int32 spare3, 00671 /*IN 2*/ afs_int32 spare4); 00672 00673 extern afs_int32 SKAM_LockStatus( 00674 /*IN */ struct rx_call *z_call, 00675 /*IN 3*/ kaname name, 00676 /*IN 3*/ kaname instance, 00677 /*OUT*/ afs_int32 * lockeduntil, 00678 /*IN 3*/ afs_int32 spare1, 00679 /*IN 3*/ afs_int32 spare2, 00680 /*IN 3*/ afs_int32 spare3, 00681 /*IN 3*/ afs_int32 spare4); 00682 00683 struct KAA_stats{ 00684 int statsver; 00685 }; 00686 extern int KAA_ExecuteRequest(struct rx_call *); 00687 00688 extern int KAA_OpCodeIndex(int op); 00689 00690 struct KAT_stats{ 00691 int statsver; 00692 }; 00693 extern int KAT_ExecuteRequest(struct rx_call *); 00694 00695 extern int KAT_OpCodeIndex(int op); 00696 00697 extern int KAM_ExecuteRequest(struct rx_call *); 00698 00699 /* Opcode-related useful stats for package: KAA_ */ 00700 #define KAA_LOWEST_OPCODE 1 00701 #define KAA_HIGHEST_OPCODE 22 00702 #define KAA_NUMBER_OPCODES 4 00703 00704 #define opcode_KAA_Authenticate_old ((afs_uint64)((20LL << 32) + KAA_OpCodeIndex(1))) 00705 #define opcode_KAA_Authenticate ((afs_uint64)((20LL << 32) + KAA_OpCodeIndex(21))) 00706 #define opcode_KAA_AuthenticateV2 ((afs_uint64)((20LL << 32) + KAA_OpCodeIndex(22))) 00707 #define opcode_KAA_ChangePassword ((afs_uint64)((20LL << 32) + KAA_OpCodeIndex(2))) 00708 #define KAA_NO_OF_STAT_FUNCS 4 00709 00710 AFS_RXGEN_EXPORT 00711 extern const char *KAA_function_names[]; 00712 00713 00714 /* Opcode-related useful stats for package: KAT_ */ 00715 #define KAT_LOWEST_OPCODE 3 00716 #define KAT_HIGHEST_OPCODE 23 00717 #define KAT_NUMBER_OPCODES 2 00718 00719 #define opcode_KAT_GetTicket_old ((afs_uint64)((20LL << 32) + KAT_OpCodeIndex(3))) 00720 #define opcode_KAT_GetTicket ((afs_uint64)((20LL << 32) + KAT_OpCodeIndex(23))) 00721 #define KAT_NO_OF_STAT_FUNCS 2 00722 00723 AFS_RXGEN_EXPORT 00724 extern const char *KAT_function_names[]; 00725 00726 00727 /* Opcode-related useful stats for package: KAM_ */ 00728 #define KAM_LOWEST_OPCODE 4 00729 #define KAM_HIGHEST_OPCODE 15 00730 #define KAM_NUMBER_OPCODES 12 00731 00732 #define opcode_KAM_SetPassword ((afs_uint64)((20LL << 32) + KAM_OpCodeIndex(4))) 00733 #define opcode_KAM_SetFields ((afs_uint64)((20LL << 32) + KAM_OpCodeIndex(5))) 00734 #define opcode_KAM_CreateUser ((afs_uint64)((20LL << 32) + KAM_OpCodeIndex(6))) 00735 #define opcode_KAM_DeleteUser ((afs_uint64)((20LL << 32) + KAM_OpCodeIndex(7))) 00736 #define opcode_KAM_GetEntry ((afs_uint64)((20LL << 32) + KAM_OpCodeIndex(8))) 00737 #define opcode_KAM_ListEntry ((afs_uint64)((20LL << 32) + KAM_OpCodeIndex(9))) 00738 #define opcode_KAM_GetStats ((afs_uint64)((20LL << 32) + KAM_OpCodeIndex(10))) 00739 #define opcode_KAM_Debug ((afs_uint64)((20LL << 32) + KAM_OpCodeIndex(11))) 00740 #define opcode_KAM_GetPassword ((afs_uint64)((20LL << 32) + KAM_OpCodeIndex(12))) 00741 #define opcode_KAM_GetRandomKey ((afs_uint64)((20LL << 32) + KAM_OpCodeIndex(13))) 00742 #define opcode_KAM_Unlock ((afs_uint64)((20LL << 32) + KAM_OpCodeIndex(14))) 00743 #define opcode_KAM_LockStatus ((afs_uint64)((20LL << 32) + KAM_OpCodeIndex(15))) 00744 #define KAM_NO_OF_STAT_FUNCS 12 00745 00746 AFS_RXGEN_EXPORT 00747 extern const char *KAM_function_names[]; 00748 00749 #endif /* _RXGEN_KAUTH_ */