Coda Distributed File System
|
#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>
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_EncryptionKey * | PWArray |
int | PWTime = 0 |
int | PWLen = 0 |
int | PWCount = 0 |
int | CheckOnly = 0 |
int GetViceId | ( | RPC2_CountedBS * | cIdent | ) |
char * GetVname | ( | int | id, |
char * | s | ||
) |
void InitPW | ( | int | firsttime | ) |
int IsAdministrator | ( | struct UserInfo * | pU | ) |
int IsAUser | ( | int | viceId | ) |
long PWChangePasswd | ( | RPC2_Handle | cid, |
RPC2_Integer | viceId, | ||
RPC2_String | Passwd | ||
) |
long PWChangeUser | ( | RPC2_Handle | cid, |
RPC2_Integer | viceId, | ||
RPC2_EncryptionKey | newKey, | ||
RPC2_String | otherInfo | ||
) |
long PWDeleteUser | ( | RPC2_Handle | cid, |
RPC2_Integer | 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 | ||
) |
int AdminID |
int CheckOnly = 0 |
char DefKey[RPC2_KEYSIZE] |
RPC2_EncryptionKey DeleteKey |
RPC2_EncryptionKey FileKey |
RPC2_EncryptionKey NullKey |
RPC2_EncryptionKey* PWArray |
int PWCount = 0 |
char* PWFile = NULL |
int PWLen = 0 |
int PWTime = 0 |