#define aRECLAIM 21
#define a2DCHOICE 22
#define aMAXSKEW 23
+#define aUSETOKENS 24
+#define aCELL 25
+#define aKEYFILE 26
static int CommandProc (as, arock)
char *arock;
cParms->callTest = (as->parms[aCALLTEST].items != 0);
cParms->hijackTest = (as->parms[aHIJACKTEST].items != 0);
cParms->stopServer = (as->parms[aSTOPSERVER].items != 0);
+ cParms->useTokens = (as->parms[aUSETOKENS].items != 0);
if (as->parms[aMELT1b].items)
meltdown_1pkt = 0;
if (as->parms[aMINSERVERAUTH].items)
sParms->authentication =
StringToAuth (as->parms[aMINSERVERAUTH].items->data);
+ if (as->parms[aKEYFILE].items)
+ sParms->keyfile = as->parms[aKEYFILE].items->data;
#ifdef AFS_PTHREAD_ENV
{
if (as->parms[aAUTHENTICATION].items)
cParms->authentication =
StringToAuth (as->parms[aAUTHENTICATION].items->data);
+ cParms->cell = RXKST_CLIENT_CELL;
+ if (as->parms[aCELL].items)
+ cParms->cell = as->parms[aCELL].items->data;
code = rxkst_StartClient (cParms);
if (code) {
initialize_RXK_error_table();
initialize_RKS_error_table();
initialize_CMD_error_table();
+ initialize_KTC_error_table();
code = rx_Init (0);
rx_SetRxDeadTime(120);
cmd_AddParm (ts, "-noreclaim", CMD_FLAG, CMD_OPTIONAL, "dont aggressively reclaim packets");
cmd_AddParm (ts, "-no2dchoice", CMD_FLAG, CMD_OPTIONAL, "disable rx_getcall 2d choice code");
cmd_AddParm (ts, "-maxskew", CMD_SINGLE, CMD_OPTIONAL, "max client server skew in seconds");
+ cmd_AddParm (ts, "-usetokens", CMD_FLAG, CMD_OPTIONAL, "use ktc tokens");
+ cmd_AddParm (ts, "-cell", CMD_SINGLE, CMD_OPTIONAL, "name of test cell");
+ cmd_AddParm (ts, "-keyfile", CMD_SINGLE, CMD_OPTIONAL, "read server key from file");
code = cmd_Dispatch (argc, argv);
exit (code!=0);