* admin_server.c, kadm_func.c: Declare functions static that are
local to file.
* acl_files.c: Include kadm_server.h for prototypes. Flush out
static prototype for acl_abort.
* kadm_supp.c: Include kadm_server.h for prototypes.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13539
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-07-01 Ezra Peisach <epeisach@mit.edu>
+
+ * kadm_server.h: Add prototypes for missing acl_ functions.
+
+ * admin_server.c, kadm_func.c: Declare functions static that are
+ local to file.
+
+ * acl_files.c: Include kadm_server.h for prototypes. Flush out
+ static prototype for acl_abort.
+
+ * kadm_supp.c: Include kadm_server.h for prototypes.
+
2001-06-21 Ezra Peisach <epeisach@mit.edu>
* kadm_supp.c (prin_vals): Pass time_t * to localtime instead of
#include <ctype.h>
#include <fcntl.h>
#include "krb.h"
+#include "kadm_server.h"
#ifndef KRB_REALM
#define KRB_REALM "ATHENA.MIT.EDU"
extern time_t time();
-static int acl_abort();
+static int acl_abort(char *, FILE *);
/* Canonicalize a principal name */
/* If instance is missing, it becomes "" */
}
return(acl_commit(acl, new));
}
-
static void cleanexit(int);
static int kadm_listen(void);
+static void process_client(int, struct sockaddr_in *);
+static void kill_children(void);
/* close the system log file */
-void close_syslog()
+static void close_syslog()
{
syslog(LOG_INFO, "Shutting down V4 admin server");
}
-void byebye() /* say goodnight gracie */
+static void byebye() /* say goodnight gracie */
{
printf("Admin Server (kadm server) has completed operation.\n");
}
static int exit_now = 0;
-krb5_sigtype
+static krb5_sigtype
doexit(sig)
int sig;
{
fd_set mask, readfds;
struct sockaddr_in peer;
int addrlen;
- void process_client(), kill_children();
int pid;
krb5_sigtype do_child();
#ifdef POSIX_SIGNALS
/*NOTREACHED*/
}
-void process_client(fd, who)
+static void process_client(fd, who)
int fd;
struct sockaddr_in *who;
{
exit(val);
}
-void
+static void
kill_children()
{
register int i;
* Convert a kadm5_principal_ent_t to a Principal. Assumes that princ
* is already allocated.
*/
-krb5_error_code
+static krb5_error_code
kadm_entry2princ(entry, princ)
kadm5_principal_ent_t entry;
Principal *princ;
return 0;
}
-int check_access(pname, pinst, prealm, acltype)
+static int check_access(pname, pinst, prealm, acltype)
char *pname;
char *pinst;
char *prealm;
return(acl_check(filename, checkname));
}
-int wildcard(str)
+static int wildcard(str)
char *str;
{
if (!strcmp(str, WILDCARD_STR))
#undef failchange
#endif /* !KADM5 */
-int
+static int
check_pw(newpw, checkstr)
des_cblock newpw;
char *checkstr;
#endif /* NOENCRYPTION */
}
-char *reverse(str)
+static char *reverse(str)
char *str;
{
static char newstr[80];
return(newstr);
}
-int lower(str)
+static int lower(str)
char *str;
{
register char *cp;
return(effect);
}
-int
+static int
des_check_gecos(gecos, newpw)
char *gecos;
des_cblock newpw;
return(0);
}
-int
+static int
str_check_gecos(gecos, pwstr)
char *gecos;
char *pwstr;
* (relatively) reasonable assumption that both the name and the
* instance will not contain '.' or '@'.
*/
-int kadm_check_srvtab(name, instance)
+static int kadm_check_srvtab(name, instance)
char *name;
char *instance;
{
int vts_char(u_char, u_char **, int);
/* acl_files.c */
+int acl_add(char *, char *);
+int acl_delete(char *, char *);
int acl_check(char *, char *);
+void acl_canonicalize_principal(char *, char *);
+int acl_exact_match(char *, char *);
+int acl_initialize(char *, int);
/* admin_server.c */
#ifdef KADM5
#include "kadm.h"
#include "krb_db.h"
+#include "kadm_server.h"
/*
prin_vals: