#if !defined(UKERNEL)
/* Return an appropriate security class and index */
afs_int32
-afsconf_ServerAuth(register struct afsconf_dir *adir,
+afsconf_ServerAuth(void *arock,
struct rx_securityClass **astr,
afs_int32 *aindex)
{
+ struct afsconf_dir *adir = (struct afsconf_dir *) arock;
register struct rx_securityClass *tclass;
LOCK_GLOBAL_MUTEX;
* appropriate security class and index
*/
afs_int32
-afsconf_ClientAuth(struct afsconf_dir * adir, struct rx_securityClass ** astr,
+afsconf_ClientAuth(void *arock, struct rx_securityClass ** astr,
afs_int32 * aindex)
{
+ struct afsconf_dir * adir = (struct afsconf_dir *) arock;
afs_int32 rc;
LOCK_GLOBAL_MUTEX;
* tells rxkad to encrypt the data, too.
*/
afs_int32
-afsconf_ClientAuthSecure(struct afsconf_dir *adir,
+afsconf_ClientAuthSecure(void *arock,
struct rx_securityClass **astr,
afs_int32 *aindex)
{
+ struct afsconf_dir *adir = (struct afsconf_dir *) arock;
afs_int32 rc;
LOCK_GLOBAL_MUTEX;
#include <cm_dns.h>
#endif /* AFS_AFSDB_ENV */
#endif
+#include <rx/rx.h>
+#include <rx/rxkad.h>
+
static struct afsconf_servPair serviceTable[] = {
{"afs", 7000,},
{"afscb", 7001,},
char akey[8], afs_int32 overwrite);
extern int afsconf_DeleteKey(struct afsconf_dir *adir, afs_int32 akvno);
+/* authcon.c */
struct rx_securityClass;
-extern afs_int32 afsconf_ClientAuth(struct afsconf_dir *adir,
+extern afs_int32 afsconf_ServerAuth(void *arock,
+ struct rx_securityClass **,
+ afs_int32 *);
+extern afs_int32 afsconf_ClientAuth(void *arock,
struct rx_securityClass **astr,
afs_int32 * aindex);
-
-
+extern afs_int32 afsconf_ClientAuthSecure(void *arock,
+ struct rx_securityClass **astr,
+ afs_int32 * aindex);
+
+/* writeconfig.c */
+int afsconf_SetExtendedCellInfo(struct afsconf_dir *adir, const char *apath,
+ struct afsconf_cell *acellInfo, char clones[]);
+int afsconf_SetCellInfo(struct afsconf_dir *adir, const char *apath,
+ struct afsconf_cell *acellInfo);
+
+
+/* userok.c */
+
+struct rx_call;
+extern int afsconf_CheckAuth(void *arock, struct rx_call *acall);
+extern int afsconf_GetNoAuthFlag(struct afsconf_dir *adir);
+extern void afsconf_SetNoAuthFlag(struct afsconf_dir *adir, int aflag);
+extern int afsconf_DeleteUser(struct afsconf_dir *adir, register char *auser);
+extern int afsconf_GetNthUser(struct afsconf_dir *adir, afs_int32 an,
+ char *abuffer, afs_int32 abufferLen);
+extern int afsconf_AddUser(struct afsconf_dir *adir, char *aname);
+extern int afsconf_SuperUser(struct afsconf_dir *adir, struct rx_call *acall,
+ char *namep);
/* some well-known ports and their names; new additions to table in cellconfig.c, too */
#define AFSCONF_FILESERVICE "afs"
#include "auth.h"
#include <afs/venus.h>
#include <afs/afsutil.h>
+#include <afs/sys_prototypes.h>
#endif /* defined(UKERNEL) */
{
struct ViceIoctl iob;
char tbuffer[MAXPIOCTLTOKENLEN];
- register afs_int32 code;
+ register afs_int32 code = 0;
int index;
char *stp, *cellp; /* secret token ptr */
struct ClearToken ct;
{
struct ViceIoctl iob;
char tbuffer[MAXPIOCTLTOKENLEN];
- register afs_int32 code;
+ register afs_int32 code = 0 ;
register char *tp;
afs_int32 temp, index;
#include <errno.h>
#include <string.h>
#include <ctype.h>
-
+#include <unistd.h>
+
#include <rx/xdr.h>
#include <rx/rx.h>
#include <stdio.h>
#if !defined(UKERNEL)
int
-afsconf_CheckAuth(register struct afsconf_dir *adir,
- register struct rx_call *acall)
+afsconf_CheckAuth(void *arock, struct rx_call *acall)
{
+ struct afsconf_dir *adir = (struct afsconf_dir *) arock;
int rc;
LOCK_GLOBAL_MUTEX;
rc = ((afsconf_SuperUser(adir, acall, NULL) == 0) ? 10029 : 0);