Coda Distributed File System
Macros | Functions | Variables
auth2.c File Reference
#include <stdio.h>
#include <sys/file.h>
#include <sys/types.h>
#include <sys/param.h>
#include <netinet/in.h>
#include <sys/stat.h>
#include <time.h>
#include <sys/signal.h>
#include <errno.h>
#include "coda_string.h"
#include <unistd.h>
#include <stdlib.h>
#include <ctype.h>
#include <lwp/lwp.h>
#include <rpc2/rpc2.h>
#include <rpc2/rpc2_addrinfo.h>
#include <util.h>
#include <prs.h>
#include <al.h>
#include "auth2.h"
#include "auth2.common.h"
#include "pwdefines.h"
#include "pwsupport.h"
#include <codaconf.h>
#include <vice_file.h>
#include <coda_getservbyname.h>
#include "codatoken.h"
Include dependency graph for auth2.c:

Macros

#define MAXNUMCLIENT   10
 

Functions

long GetKeys (RPC2_Integer *AuthenticationType, RPC2_CountedBS *cIdent, RPC2_EncryptionKey hKey, RPC2_EncryptionKey sKey)
 
long LogFailures (RPC2_Integer AuthenticationType, RPC2_CountedBS *cIdent, RPC2_Integer eType, RPC2_HostIdent *pHost, RPC2_PortIdent *pPort)
 
int GetViceId (RPC2_CountedBS *cIdent)
 
void ReadConfigFile (void)
 
int main (int argc, char **argv)
 
long S_AuthNewConn (RPC2_Handle cid, RPC2_Integer seType, RPC2_Integer secLevel, RPC2_Integer encType, RPC2_Integer AuthType, RPC2_CountedBS *cIdent)
 
long S_AuthQuit (RPC2_Handle cid)
 
long S_AuthGetTokens (RPC2_Handle cid, EncryptedSecretToken est, ClearToken *cToken)
 
long S_AuthChangePasswd (RPC2_Handle cid, RPC2_Integer viceId, RPC2_String Passwd)
 
long S_AuthNewUser (RPC2_Handle cid, RPC2_Integer viceId, RPC2_EncryptionKey initKey, RPC2_String otherInfo)
 
int IsAdministrator (struct UserInfo *pU)
 
char * GetVname (int id, char *s)
 
int IsAUser (int viceId)
 
long S_AuthDeleteUser (RPC2_Handle cid, RPC2_Integer viceId)
 
long S_AuthChangeUser (RPC2_Handle cid, RPC2_Integer viceId, RPC2_EncryptionKey newKey, RPC2_String otherInfo)
 
long S_AuthNameToId (RPC2_Handle cid, RPC2_String sUser, RPC2_Integer *sId)
 

Variables

int AL_DebugLevel
 
struct UserInfoclient [MAXNUMCLIENT]
 
int client_idx
 

Macro Definition Documentation

◆ MAXNUMCLIENT

#define MAXNUMCLIENT   10

Function Documentation

◆ GetKeys()

long GetKeys ( RPC2_Integer AuthenticationType,
RPC2_CountedBS cIdent,
RPC2_EncryptionKey  hKey,
RPC2_EncryptionKey  sKey 
)

◆ GetViceId()

int GetViceId ( RPC2_CountedBS cIdent)

◆ GetVname()

char * GetVname ( int  id,
char *  s 
)

◆ IsAdministrator()

int IsAdministrator ( struct UserInfo pU)

◆ IsAUser()

int IsAUser ( int  viceId)

◆ LogFailures()

long LogFailures ( RPC2_Integer  AuthenticationType,
RPC2_CountedBS cIdent,
RPC2_Integer  eType,
RPC2_HostIdent pHost,
RPC2_PortIdent pPort 
)

◆ main()

int main ( int  argc,
char **  argv 
)

◆ ReadConfigFile()

void ReadConfigFile ( void  )

◆ S_AuthChangePasswd()

long S_AuthChangePasswd ( RPC2_Handle  cid,
RPC2_Integer  viceId,
RPC2_String  Passwd 
)

◆ S_AuthChangeUser()

long S_AuthChangeUser ( RPC2_Handle  cid,
RPC2_Integer  viceId,
RPC2_EncryptionKey  newKey,
RPC2_String  otherInfo 
)

◆ S_AuthDeleteUser()

long S_AuthDeleteUser ( RPC2_Handle  cid,
RPC2_Integer  viceId 
)

◆ S_AuthGetTokens()

long S_AuthGetTokens ( RPC2_Handle  cid,
EncryptedSecretToken  est,
ClearToken *  cToken 
)

◆ S_AuthNameToId()

long S_AuthNameToId ( RPC2_Handle  cid,
RPC2_String  sUser,
RPC2_Integer sId 
)

◆ S_AuthNewConn()

long S_AuthNewConn ( RPC2_Handle  cid,
RPC2_Integer  seType,
RPC2_Integer  secLevel,
RPC2_Integer  encType,
RPC2_Integer  AuthType,
RPC2_CountedBS cIdent 
)

◆ S_AuthNewUser()

long S_AuthNewUser ( RPC2_Handle  cid,
RPC2_Integer  viceId,
RPC2_EncryptionKey  initKey,
RPC2_String  otherInfo 
)

◆ S_AuthQuit()

long S_AuthQuit ( RPC2_Handle  cid)

Variable Documentation

◆ AL_DebugLevel

int AL_DebugLevel
extern

◆ client

struct UserInfo* client[MAXNUMCLIENT]

◆ client_idx

int client_idx