home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 2
/
goldfish_vol2_cd1.bin
/
files
/
util
/
misc
/
multiuser
/
src
/
library
/
passwd.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-07
|
1KB
|
47 lines
/************************************************************
* MultiUser - MultiUser Task/File Support System *
* --------------------------------------------------------- *
* Password Management *
* --------------------------------------------------------- *
* © Copyright 1993-1994 Geert Uytterhoeven *
* All Rights Reserved. *
************************************************************/
#include "Passwd.h"
#include "Server.h"
#include "Misc.h"
/*
* Change the Password for a User
*
* Public Library Function
*/
BOOL __asm __saveds muPasswd(register __a0 STRPTR oldpwd,
register __a1 STRPTR newpwd)
{
return((BOOL)SendServerPacket(muSAction_Passwd, (LONG)oldpwd, (LONG)newpwd,
NULL, NULL));
}
/*
* Check the Password of the current User
*
* Public Library Function
*/
BOOL __asm __saveds muCheckPasswd(register __a0 struct TagItem *taglist)
{
struct muTags tags;
InterpreteTagList(taglist, &tags);
if (tags.Password)
return((BOOL)SendServerPacket(muSAction_CheckPasswd, (LONG)tags.Password,
NULL, NULL, NULL));
else
return(FALSE);
}