Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

console_login.h File Reference


Detailed Description

Read a name and password from the console.

Go to the source code of this file.

Functions

int console_login (const char *service, char *name, int namelen, char *pass, int passlen)
 Read a name and password from the console.


Function Documentation

int console_login const char *  service,
char *  name,
int  namelen,
char *  pass,
int  passlen
 

Read a name and password from the console.

This routine will set the consoel to no-echo mode, carefully read a name and password, and then set the mode back.

Parameters:
service The name of the service to which the user is authenticating, such as a hostname.
name A pointer to a buffer to hold the user's name.
namelen The size of the name buffer in bytes.
pass A pointer to a buffer to hold the user's password.
passlen The size of the name buffer in bytes.
Returns:
True if the name and password were successfully read, false otherwise.


Generated on Fri Jun 26 09:33:42 2009 for cctools by  doxygen 1.3.9.1