Coda Distributed File System
Functions | Variables
pwsupport.c File Reference
#include <sys/param.h>
#include <stdio.h>
#include <sys/file.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
#include <errno.h>
#include "coda_string.h"
#include <unistd.h>
#include <fcntl.h>
#include "coda_flock.h"
#include <rpc2/secure.h>
#include <ctype.h>
#include <util.h>
#include <prs.h>
#include <al.h>
#include "auth2.h"
#include "auth2.common.h"
#include "pwdefines.h"
#include <vice_file.h>
Include dependency graph for pwsupport.c:

Functions

int GetViceId (RPC2_CountedBS *cIdent)
 
int IsAdministrator (struct UserInfo *pU)
 
char * GetVname (int id, char *s)
 
void InitPW (int firsttime)
 
int IsAUser (int viceId)
 
long PWGetKeys (RPC2_CountedBS *cIdent, RPC2_EncryptionKey hKey, RPC2_EncryptionKey sKey)
 
long PWNewUser (RPC2_Handle cid, RPC2_Integer viceId, RPC2_EncryptionKey initKey, RPC2_String otherInfo)
 
long PWDeleteUser (RPC2_Handle cid, RPC2_Integer viceId)
 
long PWChangeUser (RPC2_Handle cid, RPC2_Integer viceId, RPC2_EncryptionKey newKey, RPC2_String otherInfo)
 
long PWChangePasswd (RPC2_Handle cid, RPC2_Integer viceId, RPC2_String Passwd)
 

Variables

char DefKey [RPC2_KEYSIZE]
 
RPC2_EncryptionKey FileKey
 
RPC2_EncryptionKey NullKey
 
RPC2_EncryptionKey DeleteKey
 
int AdminID
 
char * PWFile = NULL
 
RPC2_EncryptionKeyPWArray
 
int PWTime = 0
 
int PWLen = 0
 
int PWCount = 0
 
int CheckOnly = 0
 

Function Documentation

◆ GetViceId()

int GetViceId ( RPC2_CountedBS cIdent)

◆ GetVname()

char * GetVname ( int  id,
char *  s 
)

◆ InitPW()

void InitPW ( int  firsttime)

◆ IsAdministrator()

int IsAdministrator ( struct UserInfo pU)

◆ IsAUser()

int IsAUser ( int  viceId)

◆ PWChangePasswd()

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

◆ PWChangeUser()

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

◆ PWDeleteUser()

long PWDeleteUser ( RPC2_Handle  cid,
RPC2_Integer  viceId 
)

◆ PWGetKeys()

long PWGetKeys ( RPC2_CountedBS cIdent,
RPC2_EncryptionKey  hKey,
RPC2_EncryptionKey  sKey 
)

◆ PWNewUser()

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

Variable Documentation

◆ AdminID

int AdminID

◆ CheckOnly

int CheckOnly = 0

◆ DefKey

char DefKey[RPC2_KEYSIZE]
Initial value:
= { '\144', '\162', '\163', '\145',
'\165', '\163', '\163', '\040' }

◆ DeleteKey

RPC2_EncryptionKey DeleteKey

◆ FileKey

◆ NullKey

◆ PWArray

Initial value:
=
#define NULL
Definition: voltypes.h:44

◆ PWCount

int PWCount = 0

◆ PWFile

char* PWFile = NULL

◆ PWLen

int PWLen = 0

◆ PWTime

int PWTime = 0