*
* Copyright (C) 1987 by the Massachusetts Institute of Technology
*
- * Server for user registration with SMS and Kerberos.
+ * Server for user registration with MOIRA and Kerberos.
*
* This file contains all the information needed by all source
* files for the user registration server.
*/
-#include <stdio.h>
-#include <strings.h>
-#include <ctype.h>
#include <sys/types.h>
-#include <sys/file.h>
-#include <krb.h>
-#include <des.h>
-#include <errno.h>
+#include <ctype.h>
#include "ureg_err.h"
#include "ureg_proto.h"
-#include "sms.h"
-#include "sms_app.h"
-#include "infodefs.h"
#ifndef TRUE
#define TRUE 1
#define LOGIN_LEN MAX_UNAME + 1 /* Leave room for a null */
#define UID_LEN 7 /* Allow room for a 16 bit number */
-#define DEBUG
-
extern char *strdup();
extern char *malloc();
extern char *whoami; /* Name of program - used by libraries */
extern int errno; /* Unix error number */
-/* This structure holds information from the SMS database that will be
+/* This structure holds information from the MOIRA database that will be
worth holding on to. An instance of it appears in the formatted
packet structure. */
struct db_data
int encrypted_len; /* Length of encrypted information in packet */
char *leftover; /* Leftover information sent in the packet */
int leftover_len; /* Length of leftover information */
- struct db_data db; /* Information from the SMS database */
+ struct db_data db; /* Information from the MOIRA database */
};
void failure_alert(); /* Log an unexplainable failure */
int verify_user(); /* Make sure user is allowed to register */
int reserve_user(); /* Reserve a login for this user */
int set_password(); /* Set this user's password */
+
+
+/* For logging successful database transactions */
+extern FILE *journal;
+