Coda Distributed File System
pwsupport.h
Go to the documentation of this file.
1/* BLURB gpl
2
3 Coda File System
4 Release 6
5
6 Copyright (c) 1987-2003 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU General Public Licence Version 2, as shown in the
11file LICENSE. The technical and financial contributors to Coda are
12listed in the file CREDITS.
13
14 Additional copyrights
15 none currently
16
17#*/
18
19/* include file to make definitions available in auth2.cc */
20#ifndef _PWSUPPORT_H
21#define _PWSUPPORT_H
22
23/* Coda Password support stuff */
24
25extern RPC2_EncryptionKey FileKey; /* unsigned char causes initialization probs */
26extern char *PWFile; /* name of password file */
27
28extern void InitPW(int firsttime);
29extern long PWGetKeys(RPC2_CountedBS *cIdent, RPC2_EncryptionKey hKey,
31extern long PWChangePasswd(RPC2_Handle cid, RPC2_Integer viceId,
32 RPC2_String Passwd);
33extern long PWNewUser(RPC2_Handle cid, RPC2_Integer viceId,
34 RPC2_EncryptionKey initKey, RPC2_String otherInfo);
35extern long PWDeleteUser(RPC2_Handle cid, RPC2_Integer viceId);
36extern long PWChangeUser(RPC2_Handle cid, RPC2_Integer viceId,
37 RPC2_EncryptionKey newKey, RPC2_String otherInfo);
38
39#endif
long PWGetKeys(RPC2_CountedBS *cIdent, RPC2_EncryptionKey hKey, RPC2_EncryptionKey sKey)
Definition: pwsupport.c:102
char * PWFile
Definition: pwsupport.c:78
long PWChangePasswd(RPC2_Handle cid, RPC2_Integer viceId, RPC2_String Passwd)
Definition: pwsupport.c:436
void InitPW(int firsttime)
Definition: pwsupport.c:136
RPC2_EncryptionKey FileKey
Definition: pwsupport.c:71
long PWNewUser(RPC2_Handle cid, RPC2_Integer viceId, RPC2_EncryptionKey initKey, RPC2_String otherInfo)
Definition: pwsupport.c:327
long PWChangeUser(RPC2_Handle cid, RPC2_Integer viceId, RPC2_EncryptionKey newKey, RPC2_String otherInfo)
Definition: pwsupport.c:393
long PWDeleteUser(RPC2_Handle cid, RPC2_Integer viceId)
Definition: pwsupport.c:362
RPC2_Byte RPC2_EncryptionKey[RPC2_KEYSIZE]
Definition: rpc2.h:336
int32_t RPC2_Integer
Definition: rpc2.h:297
RPC2_Integer RPC2_Handle
Definition: rpc2.h:345
RPC2_ByteSeq RPC2_String
Definition: rpc2.h:312
Definition: rpc2.h:316