* For copying and distribution information, please see the file
* <mit-copyright.h>.
*
- * Server for user registration with SMS and Kerberos.
+ * Server for user registration with Moira and Kerberos.
*
* This file handles the processing of requests for the register
* server.
*/
#include <mit-copyright.h>
-#include "reg_svr.h"
+#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 <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
+#include "moira.h"
+#include "moira_site.h"
+#include "reg_svr.h"
#define NUM_REQUESTS_SAVED 100 /* Number of transactions to save */
#define CUR_REQ (requests[cur_request_index]) /* The current request */
/* Find out how much of the message to copy; truncate if too short. */
/* How much room is there left? */
len = *pktlenp - sizeof(U_32BIT)*3;
+ if (message == NULL) message = "";
if (len < strlen(message) + 1) /* Room for null terminator */
{
status = FAILURE; /* Message was truncated */
return status;
}
-/*
- * Local Variables:
- * mode: c
- * c-argdecl-indent: 2
- * c-brace-offset: -4
- * c-continued-statement-offset: 4
- * c-indent-level: 4
- * c-label-offset: -2
- * End:
- */
+
+u_long cur_req_sender()
+{
+ return (CUR_REQ.ip_address);
+}