Mercurial > noffle
view src/authenticate.h @ 436:4426f4dc6e8b noffle
[svn] * src/protocol.c: Reading of long lines broken in Prt_getLn(). Fix and
change to split long lines rather than truncate. Also change
Prt_putTxtBuf() to work properly with long lines by removing all
fixed buffer dependencies.
author | bears |
---|---|
date | Wed, 25 Jun 2003 10:40:02 +0100 |
parents | c02c4eb95f95 |
children |
line wrap: on
line source
/* authenticate.h Do client authentication $Id: authenticate.h 420 2003-01-10 23:25:45Z bears $ */ #ifndef AUTHENTICATE_H #define AUTHENTICATE_H #include "common.h" enum AuthResult { AUTH_ERROR, AUTH_DISCONNECT, AUTH_FAILED, AUTH_OK }; /* Authenticate a user and password. */ enum AuthResult Auth_authenticate( const char *user, const char *pass ); /* Open authentication session. */ Bool Auth_open( void ); /* Authentication session now closed. */ void Auth_close( void ); /* Check we have appropriate privs for authentication. */ Bool Auth_checkPrivs( void ); /* Are are privs sufficient only for admin access? */ Bool Auth_admin( void ); /* Drop any privs required for authentication. */ Bool Auth_dropPrivs( void ); #endif