#ifndef lint
static char *rcsid_dispatch_c = "$Header$";
-#endif lint
+#endif
#include <mit-copyright.h>
#include <stdio.h>
+#include <stdlib.h>
#include <gdb.h>
#include <errno.h>
#include <string.h>
#include <termios.h>
#endif
#include "update.h"
+#include "des.h"
-extern int auth_001(), inst_001();
-extern int xfer_002(), xfer_003(), exec_002();
+extern int auth_002(), xfer_002(), xfer_003(), exec_002();
extern int sync_proc(), quit();
extern char *config_lookup();
extern void gdb_debug();
-extern int abort(), errno;
-#ifndef sun
-extern int exit();
-#endif
-extern STRING instructions;
+extern int errno;
CONNECTION conn;
-int code;
+int code, log_priority;
char *whoami;
int have_authorization = 0;
+C_Block session;
int have_file = 0;
-int have_instructions = 0;
int done = 0;
int uid = 0;
char *str;
int (*proc)();
} dispatch_table[] = {
- { "INST_001", inst_001 },
- { "AUTH_001", auth_001 },
+ { "AUTH_002", auth_002 },
{ "XFER_002", xfer_002 },
{ "XFER_003", xfer_003 },
{ "EXEC_002", exec_002 },
{ "quit", quit },
- { (char *)NULL, abort }
+ { (char *)NULL, (int (*)())abort }
};
/* general scratch space -- useful for building error messages et al... */
{
/* keep have_authorization around */
have_file = 0;
- have_instructions = 0;
done = 0;
- if (STRING_DATA(instructions) != (char *)NULL)
- string_free(&instructions);
}
(void) send_ok();
sever_connection(conn);
mr_log_info("Closing connection.");
- return(exit(0));
+ exit(0);
}